Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: killerbot on August 30, 2018, 05:35:48 pm

Title: enlarge the font of the xterm
Post by: killerbot on August 30, 2018, 05:35:48 pm
anyone an idea how the font size of the text in the console (terminal) window can be enlarged ?
Title: Re: enlarge the font of the xterm
Post by: Miguel Gimenez on August 30, 2018, 06:54:54 pm
If you ask about doing it from command line:
xterm -fa 'Monospace' -fs 14
From GUI you need to create a configuration file, see https://askubuntu.com/a/161704
Title: Re: enlarge the font of the xterm
Post by: killerbot on August 30, 2018, 08:00:06 pm
the use case is, when I give presentations with CB, i can easily enlarge the font of the editor, but then we then example program runs (console application type of project, launched from within CB), then the font in the terminal is very small, and only the first rows in the audience can read it.

So wondering if it could be configured from within CB (just like the normal editor font)
Title: Re: enlarge the font of the xterm
Post by: killerbot on August 30, 2018, 08:07:20 pm
it works when you adjust the "General Settings" :
"terminal to launch console programs:

Code
xterm  -T $TITLE -e

to
Code
xterm  -fa 'Monospace' -fs 14 -T $TITLE -e

Maybe it would be a nice idea to be able to select the font size (or maybe the font" in our settings windows ?

What do people think about this ?
Title: Re: enlarge the font of the xterm
Post by: oBFusCATed on August 30, 2018, 08:21:10 pm
Won't work because we support multiple terminals and I'm sure the setting is different in all of them.
Title: Re: enlarge the font of the xterm
Post by: killerbot on August 30, 2018, 08:34:00 pm
I was a bit afraid of that :-(
Title: Re: enlarge the font of the xterm
Post by: oBFusCATed on August 30, 2018, 09:35:08 pm
One possible solution would be to replace the current terminal strings with format like strings where certain patterns are replaced with the correct string.
But this requires testing with most popular terminals and I'm not sure there is a lot of value we'll gain.
I guess if this is requested more in the future we might consider it. ;)