Opened 4 years ago

Closed 4 years ago

#16724 closed bug (fixed)

[Terminal] repeated characters are not displayed correctly via ncurses

Reported by: benmwebb Owned by: jackburton
Priority: normal Milestone: R1/beta3
Component: Applications/Terminal Version: R1/beta2
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Terminal does not display repeated characters correctly when using ncurses6, instead squashing them down to a single character, when using the default xterm-256color terminal type (TERM env variable).

I'm seeing this with R1/beta2 on x86_64, but also checked the latest nightly (hrev54840) and got the same result.

The attached program, compiled with gcc curses_test.c $(ncurses6-config --cflags --libs) , will print just a single "A" rather than the expected "AAAAAAAAAA". (ncurses6-config --version reports 6.2.20200212.)

Note that if TERM is set to xterm-color everything works correctly.

Maybe the underlying issue is https://invisible-island.net/ncurses/ncurses.faq.html#xterm_generic ? i.e. ncurses6 uses the ECMA-48 REP character since xterm-256color says it's supported but Terminal does not implement it?

Attachments (1)

curses_test.c (123 bytes ) - added by benmwebb 4 years ago.

Download all attachments as: .zip

Change History (4)

by benmwebb, 4 years ago

Attachment: curses_test.c added

comment:1 by waddlesplash, 4 years ago

Platform: x86-64All

Indeed, it seems highly probable that this needs to be implemented.

comment:2 by pulkomandy, 4 years ago

Yes, checked the source, it isn't.

comment:3 by waddlesplash, 4 years ago

Milestone: UnscheduledR1/beta3
Resolution: fixed
Status: newclosed

Fixed in hrev54849. Thanks for reporting!

Note: See TracTickets for help on using tickets.