Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: gavinmc42 on March 02, 2015, 09:34:46 PM

Title: Larger console font
Post by: gavinmc42 on March 02, 2015, 09:34:46 PM
Hi guys,

I want to increase the console font size, change colours etc.
resize reports the number of columns and row, works on hdmi and remote ssh xterm
loadfont , loads new fonts.
Any commands I missed?

How do I make them larger?
Need to have large text, ie 40 columns x 16 row etc

printenv gives
TERM=linux  - for hdmi
TERM=xterm  - for remote ssh

Title: Re: Larger console font
Post by: Rich on March 02, 2015, 11:05:11 PM
Hi gavinmc42
Quote
How do I make them larger?
Need to have large text, ie 40 columns x 16 row etc
How about switching to a lower resolution, this should make everything larger. I believe 320 x 200 was 40 columns. Try using the
vga=  boot code with the value 781, 782, or 783.
Title: Re: Larger console font
Post by: curaga on March 03, 2015, 02:58:44 AM
Fonts over SSH depend on your SSH client's config.
Title: Re: Larger console font
Post by: gavinmc42 on March 03, 2015, 03:24:01 AM
What about on HDMI/DVI monitor?
Want to emulate LCD screen on monitor.
128x64 LCD or 4 x 16, or 4 x 20 LCD

Seen setfont command used but it's not in busybox or tcz

Not sure how video out on piCore works, framebuffer?
Title: Re: Larger console font
Post by: gavinmc42 on March 04, 2015, 10:45:06 PM
Hi Bela,

Came across comline.txt options -  fbcon=font:VGA8x16
so far VGA8x16 and VGA8x8 fonts work

What fonts did get compiled into the linux kernel framebuffer console?

Title: Re: Larger console font
Post by: gavinmc42 on March 05, 2015, 12:08:52 AM
Busybox has fbset

My monitor is 1280x1024, to double font size I do,  fbset -xres 640 -yres 512
Fonts are a bit chunky but good enough for a demo
Back to a 80x32 screen, hmm green txt? flashback.
Title: Re: Larger console font
Post by: bmarkus on March 05, 2015, 01:02:43 AM
Hi Bela,

What fonts did get compiled into the linux kernel framebuffer console?

Do not know, check kernel settings. Kernel built with default.
Title: Re: Larger console font
Post by: gavinmc42 on March 05, 2015, 01:07:34 AM
Retro terminal look 8)

Edit PS1 in .profile to get green text:)

PS1='\[e[1;32m\]\u@\h:\w\$  '

fbset -xres 320 -yres 256
40 columns 16 rows , gives large text

hmm  wonder how much GPU memory needed now?
Good for model A's.
Title: Re: Larger console font
Post by: gavinmc42 on March 05, 2015, 02:02:29 AM
http://wiki.bash-hackers.org/scripting/terminalcodes

useful escape codes for changing colours, foreground/background etc
http://misc.flogisoft.com/bash/tip_colors_and_formatting

Feel like I have gone back in time :o
Title: Re: Larger console font
Post by: gavinmc42 on March 15, 2015, 10:56:02 PM
500h x 400v res works too and seems about optimal.
Font not perfect but easy to read from a distance.
Gives about 60 x 25 lines.
Had a bit of fun playing with escape commands colour coding.