Problem
I have connected to my OpenServer 6.0.0 server using an
ssh based Terminal Emulator. If I attempt to edit a file
using vi(C), the editor will only display the first 8
lines of the file in the text window.If I connect using telnet within the Terminal Emulator I don't see this problem.
Cause
vi(C) defaults to an 8 line text window at slow connection
speeds (600 baud or lower). Some Terminal Emulators do not
negotiate the line speed of ssh connections correctly
resulting in a line speed of 300 being used. Solution
There are a number of ways to resolve this issue:
- Edit your .profile and explicitly set the speed using:
stty ispeed 38400 ospeed 38400- Manually set the speed on your session using:
stty ispeed 38400 ospeed 38400- If your Terminal Emulator supports setting the line speed of the connection then set the line speed to 9600 baud or higher.