This commit is contained in:
Fabian Boehm
2024-01-07 15:13:34 +01:00
parent 0f5b2d4837
commit 16c2c14fb4
6 changed files with 14 additions and 14 deletions

View File

@@ -41,9 +41,9 @@ expect_str("char: \\c@\r\nbind -k nul 'do something'\r\n")
# Ensure we only name the sequence if we match all of it.
# Otherwise we end up calling escape+backspace "backspace"!
send("\x1b\x7f")
expect_str('char: \\e\r\n')
expect_str('char: \\x7F')
expect_str('''(aka "del")\r\nbind \\e\\x7F 'do something'\r\n''')
expect_str("char: \\e\r\n")
expect_str("char: \\x7F")
expect_str("""(aka "del")\r\nbind \\e\\x7F 'do something'\r\n""")
# Does it keep running if handed control sequences in the wrong order?
send("\x03")

View File

@@ -111,7 +111,7 @@ expect_re("history delete -p 'echo hello'\r\n")
expect_re("\[1\] echo hello AGAIN\r\n")
expect_re("\[2\] echo hello again\r\n\r\n")
expect_re(
'Enter nothing to cancel the delete, or\r\nEnter one or more of the entry IDs or ranges like \'5..12\', separated by a space.\r\nFor example \'7 10..15 35 788..812\'.\r\nEnter \'all\' to delete all the matching entries.\r\n'
"Enter nothing to cancel the delete, or\r\nEnter one or more of the entry IDs or ranges like '5..12', separated by a space.\r\nFor example '7 10..15 35 788..812'.\r\nEnter 'all' to delete all the matching entries.\r\n"
)
expect_re("Delete which entries\? ")
sendline("1")