I run centos linux 7

Kernel 3.10.0-957

Graphics are nvidia, resolution 2560,1440

echo $TERM returns linux

In all of my ctrl+alt+f# virtual consoles, the text scrolls past the bottom of the display. This is difficult to describe, but it seems as if the monitor is showing only the top part of the display.

My prompt starts at the top of my monitor. Then I hit enter and get a new prompt right below that one (no surprises so far!). However, if I keep doing this, when the prompt reaches the bottom of the display, it does not scroll. Similar behavior if I cat some long file ... the prompt disappears below the display. I recover my prompt by typing 'clear' or 'reset'.

Note that vim works properly ... its : prompt appears at the bottom of the display as it should.

I have followed some tutorials on setting GRUB_GFXMODE to adjust the console resolution, but this had no effect.

Please help me correct this problem with my virtual consoles.

  • I'm not an expert on terminals but it might be worth editing your question to include the results of echo $LINES (run from Bash shell) and :echo &lines (run from Vim) to see what each program thinks is the length of the terminal. BTW, the ones you're asking about (available via Ctrl+Alt+F) are referred to as virtual consoles. – Anthony Geoghegan Jul 12 at 16:46
  • echo $LINES returns 25. vim :echo &lines returns 25. I counted the lines by hand, and there are indeed 25. – Michael Ehrlichman Jul 15 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.