ttyopts: Adjust the default TTY modes to be sane

The "sane" default is now based on the man stty "sane" alias with addition of
utf8.

Fixes: #270

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2024-08-22 15:15:14 +02:00
parent e298600303
commit 48d474f78c
2 changed files with 9 additions and 6 deletions

View File

@@ -231,8 +231,8 @@ static void torture_request_pty_modes_use_default_modes(void **state)
rc = ssh_channel_request_exec(c, "/bin/echo -e '>TEST\\r\\n<'");
assert_ssh_return_code(session, rc);
/* expect the input unmodified */
string_found = check_channel_output(c, ">TEST\r\n<");
/* expect the CRLF translated to newline */
string_found = check_channel_output(c, ">TEST\r\r\n<");
assert_int_equal(string_found, 1);
ssh_channel_close(c);