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 Wed 26 Nov 2014, 01:28
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 Posts_count  
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
Sub_title: 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/

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
SFR


Joined: 26 Oct 2011
Posts: 1101

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_website 
Keef


Joined: 20 Dec 2007
Posts: 646
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  159 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_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0540s ][ Queries: 13 (0.0071s) ][ GZIP on ]