1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/test
Simon Tatham 363debc7f0 lineedit: make both ^M and ^J terminate a line.
In protocols other than PROT_RAW, the new line editing system differed
from the old one in not considering ^M or ^J (typed using the actual
Ctrl key, so distinct from pressing Return) to mean "I've finished
editing this line, please send it". This commit reinstates that
behaviour.

It turned out that a third-party tool (namely PuTTY Connection Manager),
which automatically answers prompts for the user, was terminating them
by sending ^J in place of the Return key. We don't know why (and it's
now unmaintained), but it was. So this change should make that tool
start working again.

I exclude PROT_RAW above because in that protocol the line editing has
much weirder handling for ^M and ^J, which lineedit replicated
faithfully from the old code: either control character by itself is
treated literally (displaying as "^M" or "^J" in the terminal), but if
you type the two in sequence in that order, then the ^J deletes the ^M
from the edit buffer and enters the line, so that the sequence CR LF
acts as a newline overall. I haven't changed that behaviour here, but
I have added a regression test of it to test_lineedit.
2024-12-15 19:23:21 +00:00
..
sclog Update cmake_minimum_required to avoid warnings on sid. 2024-12-15 11:13:40 +00:00
agentmulti.py Add test script for simultaneous agent connections. 2021-05-24 15:27:38 +01:00
agenttest.py Migrate all Python scripts to Python 3. 2020-03-04 21:23:49 +00:00
agenttestdata.py New test script 'agenttest.py' for testing Pageant. 2020-01-09 19:57:35 +00:00
agenttestgen.py RSA generation: option to generate strong primes. 2020-03-07 11:37:31 +00:00
ca.py test/ca.py: fix handling of RFC4716 public key files. 2022-07-30 15:01:09 +01:00
colours.txt Rename the 'testdata' subdirectory to 'test'. 2019-01-03 16:56:02 +00:00
cryptsuite.py New post-quantum kex: ML-KEM, and three hybrids of it. 2024-12-08 10:41:08 +00:00
desref.py Migrate all Python scripts to Python 3. 2020-03-04 21:23:49 +00:00
display.txt Add SGR 9 strikethrough to test file. 2020-08-13 23:54:58 +01:00
dsa_nonce_recover.py dsa_nonce_recover.py: feature to talk to an agent. 2024-04-07 13:23:37 +01:00
eccref.py Migrate all Python scripts to Python 3. 2020-03-04 21:23:49 +00:00
fuzzterm.c New centralised version of local line editing. 2023-03-04 13:55:50 +00:00
lattrs.txt Rename the 'testdata' subdirectory to 'test'. 2019-01-03 16:56:02 +00:00
list-accel.py Implement AES-GCM using the @openssh.com protocol IDs. 2022-08-16 20:33:58 +01:00
mpu-check.pl Generate MPU certificates for proven primes. 2020-03-07 11:24:12 +00:00
numbertheory.py test/numbertheory.py: fix comment wording. 2020-05-03 11:18:50 +01:00
primegen.py primegen.py: add a --probabilistic option. 2021-08-28 10:17:16 +01:00
scocols.txt Rename the 'testdata' subdirectory to 'test'. 2019-01-03 16:56:02 +00:00
ssh.py Test implementation of a CA in Python. 2022-04-25 15:09:31 +01:00
test_conf.c Switch CONF_remote_cmd to being STR_AMBI. 2024-09-26 11:30:07 +01:00
test_lineedit.c lineedit: make both ^M and ^J terminate a line. 2024-12-15 19:23:21 +00:00
test_terminal.c Don't set term->wrapnext when not in auto-wrapping mode. 2024-08-10 11:45:53 +01:00
testcrypt-enum.h New post-quantum kex: ML-KEM, and three hybrids of it. 2024-12-08 10:41:08 +00:00
testcrypt-func.h New post-quantum kex: ML-KEM, and three hybrids of it. 2024-12-08 10:41:08 +00:00
testcrypt.c New post-quantum kex: ML-KEM, and three hybrids of it. 2024-12-08 10:41:08 +00:00
testcrypt.py New post-quantum kex: ML-KEM, and three hybrids of it. 2024-12-08 10:41:08 +00:00
testsc.c New post-quantum kex: ML-KEM, and three hybrids of it. 2024-12-08 10:41:08 +00:00
testzlib.c Move some tests into the test subdirectory. 2021-11-22 19:11:53 +00:00
utf8.txt Stop ignoring the Unicode tag character range. 2024-05-24 22:25:56 +01:00
vt100.txt Rename the 'testdata' subdirectory to 'test'. 2019-01-03 16:56:02 +00:00
windowchange.py Test program for ancillary window updates. 2021-02-07 19:59:21 +00:00