~vcs-imports/putty/master

Viewing all changes in revision 4968.

  • Committer: Simon Tatham
  • Date: 2018-10-21 09:02:10 UTC
  • Revision ID: git-v1:dead35dd0f0ed3ad111e74bbaa5bf03b3b5c63bd
New system for handling SSH terminal modes.

I've introduced a new POD struct type 'ssh_ttymodes' which stores an
encoding of everything you can specify in the "pty-req" packet or the
SSH-1 equivalent. This allows me to split up
write_ttymodes_to_packet_from_conf() into two separate functions, one
to parse all the ttymode data out of a Conf (and a Seat for fallback)
and return one of those structures, and the other to write it into an
SSH packet.

While I'm at it, I've moved the special case of terminal speeds into
the same mechanism, simplifying the call sites in both versions of the
SSH protocol.

The new master definition of all terminal modes lives in a header
file, with an ifdef around each item, so that later on I'll be able to
include it in a context that only enumerates the modes supported by
the particular target Unix platform.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: