Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bash prompt VGA Font
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
doubled157940
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2006
Posts: 85

PostPosted: Wed Aug 19, 2009 5:13 pm    Post subject: bash prompt VGA Font Reply with quote

I'm trying to get a bash prompt like this one: http://www.gilesorr.com/bashprompt/prompts/red.html
so that I can much easily notice which user I'm logged in as. However, after doing some reading and putting the code into my ~/.bashrc and it not working, I need vga fonts. Where/how can I get vga fonts?
_________________
Gentoo は行く方法である!
<Translation>
Gentoo is the way to go!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9691
Location: almost Mile High in the USA

PostPosted: Wed Aug 19, 2009 10:54 pm    Post subject: Reply with quote

I believe the pcf/bdf is generated/available in the app-emulation/dosemu package amongst other places...
You may need to USE=X to get it to install.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
doubled157940
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2006
Posts: 85

PostPosted: Thu Aug 20, 2009 4:11 pm    Post subject: Reply with quote

That helped make it so that instead of random characters in the color gradient, it is now question marks with a blue background. I'm still missing a piece somewhere. Any ideas?
_________________
Gentoo は行く方法である!
<Translation>
Gentoo is the way to go!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9691
Location: almost Mile High in the USA

PostPosted: Thu Aug 20, 2009 5:57 pm    Post subject: Reply with quote

You are starting the terminal emulator with the vga font?

xterm -fn vga

it works for me... though I'm partial to single line prompts...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
doubled157940
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2006
Posts: 85

PostPosted: Thu Aug 20, 2009 6:00 pm    Post subject: Reply with quote

When I put in the command, is outputs:
Code:
Warning: Cannot convert string "nil2" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Unable to load any usable ISO8859 font
xterm: cannot load font vga

_________________
Gentoo は行く方法である!
<Translation>
Gentoo is the way to go!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9691
Location: almost Mile High in the USA

PostPosted: Thu Aug 20, 2009 7:58 pm    Post subject: Reply with quote

You may need to rebuild the font cache.

For some reason I have two copies:

-rw-r--r-- 1 root root 4587 Jun 13 2004 /usr/share/fonts/misc/vga.pcf.gz
-rw-r--r-- 1 root root 4844 Apr 1 2008 /usr/share/dosemu/Xfonts/vga.pcf.gz

make sure you have mkfontdir run on that directory, your font path includes these directories, and xset fp rehash ...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
doubled157940
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2006
Posts: 85

PostPosted: Thu Aug 20, 2009 10:18 pm    Post subject: Reply with quote

I'm missing the vga.pcf.gz in /usr/share/fonts/misc/
It does show in the other directory you listed.

mkfontdir and xset didn't change anything.
_________________
Gentoo は行く方法である!
<Translation>
Gentoo is the way to go!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum