AmendHub

Download:

jcs

/

subtext

/

amendments

/

578

user_settings: Accept capital X in terminal cols/lines response


jcs made amendment 578 10 months ago
--- user_settings.c Thu Mar 23 21:27:19 2023 +++ user_settings.c Wed Jan 10 16:06:44 2024 @@ -97,7 +97,7 @@ get_terminal_size: return; } - if (sscanf(tsize, "%dx%d", &cols, &lines) != 2) { + if (sscanf(tsize, "%d%*[xX]%d", &cols, &lines) != 2) { session_printf(s, "Invalid response, must be in format %dx%d\r\n", s->terminal_columns, s->terminal_lines); session_flush(s);