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

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Aug 1 05:48:30 AEST 2018


https://bugzilla.mindrot.org/show_bug.cgi?id=2836

--- Comment #2 from Christian Höltje <docwhat at gerf.org> ---
> I don't know whether terminal definitions are guaranteed to be exportable/importable between systems.

terminfo is by design compatible between any system (that uses
terminfo).

> In practice they work between systems that use ncurses, but that's not a sure thing.

During compilation if you detect terminfo, then turn on sending or
receiving terminfo capabilities.

During connection negotiation, the client can ask the remote server if
they support terminfo; if true, then send the terminfo capabilities.

Assuming a TTY is allocated, the server can write the capabilities to a
file and set the TERMINFO environment variable pointing at that file.


Also, just to be clear, terminfo is used by ncurses, but (in theory) it
is separate.  In practice it usually isn't.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list