Temporary Change Font Size To Completely Fill The Console

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

Temporary Change Font Size To Completely Fill The Console

#1 Post by abushcrafter »

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.meow ... own.tar.xz

Code: Select all

decentclcountdown 00:02:00
tags: terminal, text, command line, sh, full screen
Last edited by abushcrafter on Tue 11 Sep 2012, 01:03, edited 3 times in total.
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
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/

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#2 Post by SFR »

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: Select all

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:
Image
(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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#3 Post by abushcrafter »

This is not for X. Console only. Thanks for the disable cursor tip.
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
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/

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#4 Post by Keef »

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: Select all

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.
Attachments
fbterm.gz
Remove dummy .gz extension. Needs framebuffer to run.
(86.17 KiB) Downloaded 369 times

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#5 Post by abushcrafter »

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.... :D
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
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/

Post Reply