From f7a11166d4a376867235bee213eeffddc05a8d78 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 23 Jul 2025 16:27:02 +0300 Subject: ncurses: support the window title on XTerm-like emulators * Many terminal emulators won't have the status-line terminfo capabilities but still support OSC-0 escape sequences for setting the window title. This affects the real XTerm, rxvt-based and many emulators that claim to be XTerm via $TERM (e.g. GNOME Console). * It seems we can safely assume that any emulator with $TERM beginning with "xterm" or "rxvt" does in fact have OSC-0 or at least ignores it. The number of whitelisted emulators might be extended later on. This way, we don't have to add another ED flag. * We still give precendence to the to_status_line/from_status_line capabilities if they are in terminfo. --- TODO | 4 ---- 1 file changed, 4 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index b2aab0f..4ab28df 100644 --- a/TODO +++ b/TODO @@ -92,10 +92,6 @@ Known Bugs: There is also MoveFileEx(file, NULL, MOVEFILE_DELAY_UNTIL_REBOOT). * Windows has file system forks, but they can be orphaned just like ordinary files but are harder to locate and clean up manually. - * Setting window title is broken on ncurses/XTerm. - The necessary capabilities are usually not in the Terminfo database. - Perhaps do some XTerm magic here. We can also restore - window titles on exit using XTerm. * The XTerm OSC-52 clipboard feature appears to garble Unicode characters. This is apparently an XTerm bug, probably due to 8-bit-uncleanliness. It was verified by `printf "\e]52;c;?\a"` on the command line. -- cgit v1.2.3