@b0rk This might be a bit too in the weeds, but Ctrl-D flushes the current terminal line buffer. EOF is commonly detected by having a zero-length read, so you can also exit without having a newline by doing Ctrl-D twice (once to flush the current line, and once to trigger a zero-length read). I tested this to verify I remembered it correctly and doesn't work for a Python REPL, but works for `cat > foo.txt` or similar.