GNU bug report logs -
#18484
24.3.93; term-suppress-hard-newline breaks command history
Previous Next
Full log
View this message in rfc822 format
This bug appears to be still alive in 25.2.2, and I am also affected.
It is easy to reproduce with various command-line tools that allow line
editing that wrap lines and work perfectly fine in a terminal emulator,
eg sh, bc and I ran into this with Julia v0.6.2, here is an asciinema
terminal capture:
https://asciinema.org/a/7QeLiQh9xQkrF8zwTkzAD9Zrr
I know next to nothing about terminals, but with
(defun ansi-term-debug-message (proc char)
(message "ANSI escape in process %s char %c, param %d, remaining params %d"
proc char term-terminal-parameter term-terminal-more-parameters))
(advice-add 'term-handle-ansi-escape :before 'ansi-term-debug-message)
managed to narrow it down to the handling of the EL ( \e[0K ), or
possibly CUF and CUU, ( \e[1A , \e[1C ) when TERM-SUPPRESS-HARD-NEWLINE
is T.
This bug report was last modified 7 years and 151 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.