From 7cc08f198bdefcf733f61b47637be4ac8003a40f Mon Sep 17 00:00:00 2001 From: Matt Johnston <matt@ucc.asn.au> Date: Sat, 14 Jan 2023 14:10:40 +0800 Subject: [PATCH] Add IUTF8 --- src/sshnames.rs | 3 +++ src/termmodes.rs | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/sshnames.rs b/src/sshnames.rs index 9b5bb6d..dbb64c4 100644 --- a/src/sshnames.rs +++ b/src/sshnames.rs @@ -42,6 +42,9 @@ pub const SSH_NAME_NONE: &str = "none"; /// [RFC4252](https://tools.ietf.org/html/rfc4252) pub const SSH_SERVICE_USERAUTH: &str = "ssh-userauth"; /// [RFC4254](https://tools.ietf.org/html/rfc4254) +/// +/// `IUTF8` is specified in +/// [RFC8160](https://tools.ietf.org/html/rfc8160) pub const SSH_SERVICE_CONNECTION: &str = "ssh-connection"; /// [RFC4252](https://tools.ietf.org/html/rfc4252) diff --git a/src/termmodes.rs b/src/termmodes.rs index 129a3e7..f21d581 100644 --- a/src/termmodes.rs +++ b/src/termmodes.rs @@ -1,5 +1,7 @@ // TODO -pub const NUM_MODES: usize = 56; +pub const NUM_MODES: usize = 57; + +// Codes from rfc4254. IUTF8 from rfc8160 /* 0 TTY_OP_END Indicates end of options. 1 VINTR Interrupt character; 255 if none. Similarly @@ -32,6 +34,7 @@ pub const NUM_MODES: usize = 56; 39 IXANY Any char will restart after stop. 40 IXOFF Enable input flow control. 41 IMAXBEL Ring bell on input queue full. + 42 IUTF8 Terminal input and output is assumed to be encoded in UTF-8. 50 ISIG Enable signals INTR, QUIT, [D]SUSP. 51 ICANON Canonicalize input lines. 52 XCASE Enable input and output of uppercase -- GitLab