Author |
Message |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: 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
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 1655
|
Posted: 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
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: 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
|
|
 |
Keef

Joined: 20 Dec 2007 Posts: 888 Location: Staffordshire
|
Posted: 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.
Description |
Remove dummy .gz extension. Needs framebuffer to run.
|

Download |
Filename |
fbterm.gz |
Filesize |
86.17 KB |
Downloaded |
258 Time(s) |
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1438 Location: England
|
Posted: 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....
_________________ 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
|
|
 |
|