On Wed, Apr 27, 2022 at 08:28:48PM +0200, Sven Joachim wrote: > Control: reassign -1 ncurses-base 6.3+20220423-1 > > Please keep the bug report CC'ed. > > Am 27.04.2022 um 18:25 schrieb Klaus Ethgen: > > > Am Mi den 27. Apr 2022 um 15:49 schrieb Sven Joachim: > >> > Package: libtinfo5 > >> > Version: 6.3+20220423-1 > >> > Severity: normal > >> > > >> > Since the last update of this package, applications running inside of > >> > xterm are not always able to update the window title. > >> > > >> > Instead, control output are breaking the layout of the application. > >> > > >> > Broken Applications: > >> > - mutt > >> > - cmus > >> > > >> > Still working: > >> > - zsh > >> > >> Can you give steps to reproduce what is broken? Also, which version of > >> xterm do you use, and what is the value of the TERM environment > >> variable? > > > > ~> dpkg -l xterm > > ii xterm 372-1 amd64 X terminal emulator > > ~> echo $TERM > > xterm-256color > > > > For cmus, just use it, it should show the title of the current song in > > the title of your terminal. > > > > Same for mutt. It should show the message count in title ans some more > > infomations. > > Not in its default configuration, you need to have "set ts_enabled=yes" > in your muttrc file. With that I can confirm the problem. > > Two workarounds: set TERM=xterm-p370, _or_ downgrade ncurses-base to > 6.3-2, I recommend the latter.
hmm - for consistency in xterm, I should have made the default for --enable-status-line enabled. But since there are few actual uses of tsl/fsl (almost all are hard-coded), I'd overlooked those which mix hard-coding and terminfo (such as the programs given as examples here). Applications which assume xterm's title-string should use the terminfo "XT" flag anyway (documented in terminfo.src), because it doesn't allow for a parameter in tsl, as documented in terminfo(5): to_status_line tsl ts move to status line, column #1 Some terminals with status lines need special sequences to access the status line. These may be expressed as a string with single parameter tsl which takes the cursor to a given zero-origin column on the status line. The capability fsl must return to the main-screen cursor posi‐ tions before the last tsl. You may need to embed the string values of sc (save cursor) and rc (restore cursor) in tsl and fsl to accomplish this. -- Thomas E. Dickey <dic...@invisible-island.net> https://invisible-island.net ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature