Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Open the integrated terminal in the Linux web client with a focused block cursor and TERM=xterm-256color.
- Save the following as producer.py and run
python3 producer.py(requires Python curses). - Press e or f to place the cursor on visible underlined text. Press h or i for a wide underlined glyph.
- Press x to move the cursor away; q quits.
Reproducible ncurses producer
import curses, os
rows=[('bold',curses.A_BOLD,'MiW'),('italic',curses.A_ITALIC,'MiW'),('bold italic',curses.A_BOLD|curses.A_ITALIC,'MiW'),('bold faint',curses.A_BOLD|curses.A_DIM,'MiW'),('italic faint underline',curses.A_ITALIC|curses.A_DIM|curses.A_UNDERLINE,'MiW'),('bold italic underline',curses.A_BOLD|curses.A_ITALIC|curses.A_UNDERLINE,'MiW'),('wide bold',curses.A_BOLD,'界界'),('wide italic underline',curses.A_ITALIC|curses.A_UNDERLINE,'界界'),('wide bold faint underline',curses.A_BOLD|curses.A_DIM|curses.A_UNDERLINE,'界界')]
def main(s):
curses.curs_set(2); mode=-1
while True:
s.erase(); s.addstr(0,0,'Visible attributes: a-i cursor on glyph; x cursor away; q quit')
for n,(label,attr,text) in enumerate(rows):
s.addstr(n+2,0,chr(97+n)+' '+label);s.addstr(n+2,32,text+' '+text,attr)
s.addstr(13,0,'Cursor '+str(mode)+' | Actual ncurses, TERM='+os.environ.get('TERM',''))
s.move(mode+2 if mode>=0 else 14,32 if mode>=0 else 0);s.refresh()
k=s.getch()
if k==ord('q'):break
if 97<=k<106:mode=k-97
if k==ord('x'):mode=-1
curses.wrapper(main)Expected behavior
Visible underline remains visible under the focused block cursor, including across both columns of a wide glyph, as in native Ghostty 1.3.1 with matching TERM=xterm-256color.
Actual behavior
The block cursor covers the underline. Moving it away restores the decoration. Strikethrough and overline exhibit the same paint-order problem with direct SGR output.
Impact
Cosmetic issue. Conditional on a focused block cursor over decorated text; population prevalence is unknown.
Version or commit
main @ 7379f19
Environment
Linux web client; matching TERM=xterm-256color in the integrated terminal and native Ghostty 1.3.1 control. No native-client or cross-platform claim.
Logs or stack traces
Visual rendering bug, no exception.
Screenshots, recordings, or supporting files
Found by the Terminal Improvement Bug Hunt (GPT 6.1 Sol through Codex) and independently confirmed by Claude Opus 5.5 on main 834eb51. Reproduced again on the commit above before fixing. Hunt report.
Workaround
Move the cursor away to see the decoration.

Activity