Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 11:05
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Temporary Change Font Size To Completely Fill The Console
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Mon 10 Sep 2012, 13:05    Post subject:  Temporary Change Font Size To Completely Fill The Console
Subject description: For a Decent CL Countdown
 

Spent a few hours on this. Best I got was setfont. setfont's hight option I have not managed to get a useful result. I am writing this for my Nano Note. Should work in puppy.
see title and the bleeping countdown bash script.
http://puppy:linux@puppylinuxstuff.meownplanet.net/abushcrafter/scripts/Decent-CL-Countdown.tar.xz
Code:
decentclcountdown 00:02:00


tags: terminal, text, command line, sh, full screen

_________________
adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/

Last edited by abushcrafter on Mon 10 Sep 2012, 21:03; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 1113

PostPosted: Mon 10 Sep 2012, 15:20    Post subject:  

I'm not sure if this is what you're trying to achieve..?

If you launch your script via this (it's one single line):
Code:
urxvt -T "Countdown" -foreground 7 -transparent +borderLess +sb -g 8x1+200+100 -fn 'xft:Deja-vu Sans:Bold:size=60' -e bash ./decentclcountdown 1

you'll get this:

(if you have urxvt in your system, of course).

PS. Change +borderLess to -borderLess to get rid of borders and to disable cursor, you need to add, for instance: tput civis or echo -e "\033[?25l" to your script.

HTH
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Mon 10 Sep 2012, 20:38    Post subject:  

This is not for X. Console only. Thanks for the disable cursor tip.
_________________
adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
Back to top
View user's profile Send private message Visit poster's website 
Keef


Joined: 20 Dec 2007
Posts: 649
Location: Staffordshire

PostPosted: Tue 11 Sep 2012, 17:22    Post subject:  

If you've got a working framebuffer, you could use fbterm which can handle freetype (TTF) fonts, so you can get them quite large and they still look ok.
Eg: start it with:
Code:
fbterm --font-names=LiberationMono --font-size=48

I doubt if the framebuffer is enabled on Lucid, (would need a kernel re-compile if not) but you could experiment on Akita, or Precise. I've got a vmlinuz for Wary that runs the framebuffer, if that's any help.
EDIT - I think the LiberationMono font is probably the best choice (there may be others of course) but many I've tried tend to overlap when enlarged. Might be able to fiddle with the height and width though, if there was another font that was preferred.
fbterm.gz
Description  Remove dummy .gz extension. Needs framebuffer to run.
gz

 Download 
Filename  fbterm.gz 
Filesize  86.17 KB 
Downloaded  161 Time(s) 
Back to top
View user's profile Send private message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Wed 12 Sep 2012, 06:38    Post subject:  

That does it, thanks. Still though if any one knows how to do without the frame buffer. I would be interested to know. I would use it as a fall-back.

Now were is the nice LED font.... Very Happy

_________________
adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0737s ][ Queries: 12 (0.0194s) ][ GZIP on ]