|
From: | Thomas Dickey |
Subject: | Re: Wide char bug(?) |
Date: | Sat, 17 Jan 2009 11:32:28 -0500 (EST) |
On Sat, 17 Jan 2009, Thomas Dickey wrote:
On Sat, 17 Jan 2009, address@hidden wrote:It was a 24x80 screen in each case. (screenshot attached, with uxterm using"Large" font). I downloaded ncmpc-0.11.1.tar.gz on Thursday, compiled it last night.Ah, I see that ncmpc 0.11.1 is broken for wide chars. Notice how the "title" is cut off compared to what is in mpd.sh.I see (odd that the first hits from google pointed only to 0.11.1 etc).Please try ncmpc 0.12 or newer.I'll look at that and/or 0.13
...looking at the trace, here's is happening: ncmpc creates a 2-line window. it doesn't enable scrolling in that window. it writes the multibyte character string to the second line of the window.ncurses gets to the end of the line, with one cell available, for a 2-cell character. Since scrolling is disabled (by default), it writes the wrapped character onto the same line.
(addstr should have stopped in this case, rather than wrapping - will see...)
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |