Patch for underlined text on Console?
Is anyone aware of a patch (or something) to allow the use of underlined text on a color linux console?
As you all know; it is usually not possible to use the escape sequence '\e[4m' to get underlined text on the console (unless you use a monocrome console). There is no real reason for this to be the case on (say) a modern framebuffer console where the font is in software anyways.
It all appears to boil down to the console driver not using a sufficiently wide datatype to store the character atributes.
I guess there are a number of ways in which it could be solved:
1, Fixing it properly so the attributes can be stored.
2, Defining a big font where underscored versions of the characters are stored asif they are bold versions of the characters and sacraficing bold characters and vt escapes to get underlined characters (I'd rather not have to do this).
3, sacrafice some obscure set of attributes that no one ever uses to represent the underscored text internally then render this attribute as underlines on output.
I find myself forced to use super-heavy X and daft x-terminals just because I need underlined text!
Is anyone aware of any patches (or ready-made tricks) that solve the problem?
Last edited by hammernail; 05-08-2006 at 07:00 AM.