To change that, (and thus to save a little amount of memory) print the following vt-sequence: \e[?1049h. This sequence will switch the terminal control to an alternate buffer mode, in which the ...