Technical article 126115

vi(C) only displays 8 lines when run from a Terminal Emulator connected to OpenServer 6.0.0?

OpenServer 6.0.0

Written · Last revised

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.

From the Xinuos technical article database, record 126115. Reproduced with permission. The original is at www.sco.com/ta/126115, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.