Added terminal_size_get function