mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
Readline, PSReadLine, a cooked tty and tty7's own editor all treat Ctrl-D as end of input only when the line is empty; with text on it Ctrl-D is an edit. Discarding a record that still holds unsubmitted text dropped the owed wipe, so text typed during a gap followed by Ctrl-D stayed on the shell's line and was glued to the front of the next command. Ctrl-D now discards only a record with no unsubmitted text, and taints otherwise.