[Bug 2836] New: Send terminfo description over the wire on login

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Mar 2 13:26:37 AEDT 2018


            Bug ID: 2836
           Summary: Send terminfo description over the wire on login
           Product: Portable OpenSSH
           Version: 7.6p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: docwhat at gerf.org

I’ve been running into problems with terminfo descriptions not existing
on machines I’m SSH’ing to.

Example: My laptop has TERM=tmux-256color but a RHEL6 box I connect to
does not; I have to choose a lesser term (e.g. screen-256color) or
manually do `infocmp -x` (local) and `tic -x` (remote) to fix it.

Is there a reason that SSH client couldn’t do something like this?

Any “no” will abort these steps and continue with a normal session.

1. Do you support terminfo/ncurses?
2. Are you missing TERM=$TERM?
3. Here is the terminfo description for $TERM.

On the server side, it could have builtin support to do `tic -x`.  It
should force it to write to the terminfo database in the users home
directory (even if root!).

Alternatively to prevent terminal collisions, it could store the
terminfo database in a private temporary directory, set the TERMINFO
variable to point at that directory, and remove the private temporary
directory when the SSH session closes.

Or maybe it could save it as something like SSH-<session-id>-$TERM and
force the TERM to that and remove that entry when the session is over.

This would be a huge usability win for people who have to deal with
various platforms and versions.


You are receiving this mail because:
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list