http://lists.gnu.org/archive/html/bug-readline/2013-09/msg00004.html sh_set_lines_and_columns() sets "LINES" and "COLUMNS". This makes gdb needlessly less transparent to its debugged programs. readline upstream suggests a workaround: > disable readline's SIGWINCH > processing (rl_handle_sigwinch = 0), use its own SIGWINCH handler, and > set readline's idea of the screen dimensions using rl_set_screen_size().