Hi Thomas, Thanks for your time reading my bug report.
On Wed, Apr 1, 2020 at 10:09 AM Thomas Dickey <[email protected]> wrote: > > On Wed, Apr 01, 2020 at 08:48:20AM +0200, Mathieu Malaterre wrote: > > Control: affects -1 src:hexedit > > > > Here is the output of: > > neither the original report nor any followup identifies the actual > terminal which is being used. In addition to that, there is only > a copy/paste from the screen (a "typescript" using "script" would > show what ncurses actually does). I have attached the two generated "typescript" files. One is what I called the good session (setting XTERM to linux) while the other called the bad one is with the default settings. Doing a diff of teseq outputs gives: $ diff -u good bad @@ -1,4 +1,4 @@ -|Script started on 2020-04-01 10:53:53+02:00 [TERM="xterm-256color" TTY="/de|- +|Script started on 2020-04-01 10:52:40+02:00 [TERM="xterm-256color" TTY="/de|- -|v/pts/6" COLUMNS="211" LINES="46"]|. : Esc ] & OSC: OPERATING SYSTEM COMMAND @@ -21,17 +21,21 @@ : Esc [ 0 m & SGR: SELECT GRAPHIC RENDITION " Clear graphic rendition to defaults. -|$ TERM=linux hexedit d| +|$ hexedit d| . CR/^M LF/^J -: Esc ) 0 -& G1D4: G1-DESIGNATE 94-SET -" Designate 94-character set 0 (private) to G1. +: Esc [ ? 1049 h +& SM: SET MODE (private params) +" (Xterm) Save the cursor position and use the alternate screen buffer, +" clearing it first. +: Esc [ 22 ; 0 ; 0 t : Esc [ 1 ; 46 r " (DEC) Set the scrolling region to from line 1 to line 46. +: Esc ( B +& GZD4: G0-DESIGNATE 94-SET +" Designate 94-character set B (US-ASCII) to G0. : Esc [ m & SGR: SELECT GRAPHIC RENDITION " Clear graphic rendition to defaults. -. SI/^O : Esc [ 4 l & RM: RESET MODE " INSERTION REPLACEMENT MODE (IRM) -> REPLACE @@ -41,25 +45,36 @@ : Esc [ H & CUP: CURSOR POSITION " Move the cursor to line 1, column 1. -: Esc [ J +: Esc [ 2 J & ED: ERASE IN PAGE -" Clear from the cursor to the end of the screen. -|00000000 57 65 64 20 41 70 72 20 20 31 20 30 38 3A 35 39 3A 33 35 20 |- --| 43 45 53 54 20 32 30 32 30 0A| +" Clear the screen. +: Esc [ ? 1 h +& SM: SET MODE (private params) +" (DEC) Cursor key mode. +: Esc = +& DECKPAM: KEYPAD APPLICATION MODE +|0| +: Esc [ 7 b +& REP: REPEAT +| 57 65 64 20 41 70 72 20 20 31 20 30 38 3A 35 39 3A 33 35 20 43 45 5|- +-|3 54 20 32 30 32 30 0A| : Esc [ 1 ; 155 H & CUP: CURSOR POSITION " Move the cursor to line 1, column 155. -: Esc [ 0 ; 10 ; 1 m +: Esc ( B +& GZD4: G0-DESIGNATE 94-SET +" Designate 94-character set B (US-ASCII) to G0. +: Esc [ 0 ; 1 m & SGR: SELECT GRAPHIC RENDITION " Clear graphic rendition to defaults. -" Set default font. " Set bold text. -. SI/^O |W| +: Esc ( B +& GZD4: G0-DESIGNATE 94-SET +" Designate 94-character set B (US-ASCII) to G0. : Esc [ m & SGR: SELECT GRAPHIC RENDITION " Clear graphic rendition to defaults. -. SI/^O |ed Apr 1 08:59:35 CEST 2020.| . CR/^M LF/^J |0000002C| @@ -154,22 +169,31 @@ : Esc [ 14 G & CHA: CURSOR CHARACTER ABSOLUTE " Move the cursor to column 14. -|--0x0/0x1E-----------------------------------------------------------------|- --|--------------------------------------------------------------------------|- --|------------------------------------| +|--0x0/0x1E-| +: Esc [ 174 b +& REP: REPEAT : Esc [ 1 ; 12 H & CUP: CURSOR POSITION " Move the cursor to line 1, column 12. : Esc [ H & CUP: CURSOR POSITION " Move the cursor to line 1, column 1. -: Esc [ J +: Esc [ 2 J & ED: ERASE IN PAGE -" Clear from the cursor to the end of the screen. +" Clear the screen. : Esc [ 46 ; 1 H & CUP: CURSOR POSITION " Move the cursor to line 46, column 1. +: Esc [ ? 1049 l +& RM: RESET MODE (private params) +" (Xterm) Leave the alternate screen buffer and restore the cursor. +: Esc [ 23 ; 0 ; 0 t . CR/^M +: Esc [ ? 1 l +& RM: RESET MODE (private params) +" (DEC) Cursor key mode off. +: Esc > +& DECKPNM: KEYPAD NORMAL MODE : Esc ] & OSC: OPERATING SYSTEM COMMAND |0;mmalaterre@lyndevai001: /tmp| @@ -193,4 +217,4 @@ " Clear graphic rendition to defaults. |$ exit| . CR/^M LF/^J LF/^J -|Script done on 2020-04-01 10:54:02+02:00 [COMMAND_EXIT_CODE="0"]|. +|Script done on 2020-04-01 10:53:05+02:00 [COMMAND_EXIT_CODE="0"]|. > Given the scanty information, this looks like an old report > which was addressed in the FAQ, using a system which hasn't been updated. > > https://invisible-island.net/ncurses/ncurses.faq.html#xterm_generic I'll do my best at trying to read and understand this FAQ. > -- > Thomas E. Dickey <[email protected]> > https://invisible-island.net > ftp://ftp.invisible-island.net
typescript.bad.gz
Description: GNU Zip compressed data
typescript.good.gz
Description: GNU Zip compressed data

