Project

General

Profile

Bug #9569

Fix serial console terminal size issues

Added by Jim Pingle about 2 months ago. Updated about 2 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
Operating System
Target version:
Start date:
05/30/2019
Due date:
% Done:

100%

Estimated time:
Affected Version:
All
Affected Architecture:
All

Description

Serial consoles do not have the correct size set (rows, cols) based on the user's terminal, since serial doesn't have a way to pass that by default. This can cause issues with programs like vi, curses applications like pftop, and with shell command recall.

There are various methods of polling the terminal, however, and enabling one will make for a better user experience at the serial console.

For example, FreeBSD has resizewin which looks perfect for this.

Associated revisions

Revision 1dc4afdc (diff)
Added by Jim Pingle about 2 months ago

Terminal size detection. Fixes #9569

For sh/.profile, run "resizewin -z" at login which will set the terminal
type only when empty, which is kind to remote and local logins and has
the intended behavior.

Also for tcsh, if the user logs in from the serial console, use postcmd
to resize the window after each command in case the user resizes the
window.

Revision 113173b9 (diff)
Added by Jim Pingle about 2 months ago

Terminal size detection. Fixes #9569

For sh/.profile, run "resizewin -z" at login which will set the terminal
type only when empty, which is kind to remote and local logins and has
the intended behavior.

Also for tcsh, if the user logs in from the serial console, use postcmd
to resize the window after each command in case the user resizes the
window.

(cherry picked from commit 1dc4afdc6657e83e824be43b27eff8a5f35ea4f3)

History

#1 Updated by Jim Pingle about 2 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Also available in: Atom PDF