Why does running vi cause the number of lines displayed to shrink?

When accessing a Linux server via the appliance, running certain programs like VI causes the screen to shrink, sometimes to half of the screen size. When accessing the same server via SSH, the problem does not occur. This is because VI is unable to determine your terminal type when accessing via a serial connection, so it uses default rows and columns. To prevent this from happening, run the resize command before running VI. This command should be available on your Linux server and will prevent VI from resizing the screen.

Last updated on 2015-01-16 16:08:28 UTC.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments