LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-08-2006, 05:56 AM   #1
hammernail
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
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 06:00 AM.
 
Old 05-09-2006, 06:37 PM   #2
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161

Rep: Reputation: 43
You should be able to change the system font. I only know about Fedora Core and that isn't well documented. The default font is set in /etc/sysconfig/i18n. The value eventually makes it's way to /bin/setfont. The font files are all under /lib/kbd/consolefonts.

I wanted a ~132 column text console on the FC5 box (text only) and changed the default font from "latarcyrheb-sun16" to "lat9w-08". Some of the fonts provided show underlined text as strike-through, some don't do bold etc. The "lat9w-08" font (/lib/kbd/consolefonts/lat9w-08.psfu.gz) worked out the best for me.

Your system may do things differently, but if the font file formats are the same you could try some of the FC5 fonts. The RPM package is named "kbd".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What does underlined mean in man pages oneeyedelf1 Linux - Newbie 1 07-28-2005 03:47 PM
How do I see all text in console? fannymites Linux - General 2 04-15-2005 06:01 PM
Console text gamehack Slackware 6 09-25-2004 04:00 AM
italics and underlined text on PERL randomx Programming 2 03-15-2004 12:01 AM
How to make text file into patch? dtee Linux - Software 2 01-17-2004 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration