Forum: Ruby Does A_UNDERLINE work in Ncurses-ruby ?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
R. K. (Guest)
on 2008-11-30 16:25
Has anyone used this attribute while printing to a window ?

It is not working on my system from ruby (although it works from a C
program, and also using Highline which uses escape sequences).

Please let me know if you have identified the bug, or know a workaround.

I also notice that the Highline escape sequences work in an IRB session,
but they do not work in an Ncurses window (I suppose thats obvious since
the shell is not interpreting the window print).

(I might add that underlining works if you are using an NCurses FIELD,
but obviously that's using the underlying C code and not ruby-ncurses).
R. K. (Guest)
on 2008-12-02 16:47
Nit K. wrote:
> Has anyone used this attribute while printing to a window ?

The problem lies with the terminal named "screen". It underlines when
writing to stdscr, but NOT to a window.

Other terminals such as xterm, vt100 etc all underline correctly.
However, I do notice that screen renders colors most faithfully.
This topic is locked and can not be replied to.