improve cecho and get_console_size