GNU bug report logs - #18484
24.3.93; term-suppress-hard-newline breaks command history

Previous Next

Package: emacs;

Reported by: Russell Black <black.russell <at> gmail.com>

Date: Tue, 16 Sep 2014 02:18:01 UTC

Severity: normal

Found in version 24.3.93

Full log


View this message in rfc822 format

From: Tamas Papp <tkpapp <at> gmail.com>
To: 18484 <at> debbugs.gnu.org
Subject: bug#18484: also affected
Date: Sun, 14 Jan 2018 15:28:23 +0100
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.