Can I Change Font Size and Background Color in X11 Terminal on iMac?

  • Thread starter Thread starter natski
  • Start date Start date
AI Thread Summary
To change the font size in the X11 terminal on an iMac, users can utilize the control right-click to access a font selection popup. However, changing the background color must be done at startup using a command like "xterm -bg lightyellow -fg black." The default font can also be specified in the command with the -fn option, although not all fonts may be compatible. To explore available fonts, the command "xlsfonts" can be used, and "xfontsel" helps narrow down choices. For terminal use, fixed-size fonts are recommended, which can be found by filtering the output of "xlsfonts" with a specific grep command.
natski
Messages
262
Reaction score
2
Hi,

I'm using an iMac with X11 terminal and wanted to know how (and if) I can change the font size to be a littler larger and also whether it's possible to change the background from white to a pale yellow? Thank-you!

Natski
 
Computer science news on Phys.org
You can use control right click to bring up a font selection popup. AFAIK, you can't change the background on the fly. You'll have to do that when you fire up your xterm:

xterm -bg lightyellow -cr lightyellow -fg black

You can also specify the default font in the xterm command via the -fn option.
 
Thanks, I tried -fn arial and it didnt like it much though, which fonts are available?
 
Last edited:
xlsfonts lists all of the fonts available. The list is rather large. See below.

xfontsel let's you narrow down a font. You have to know a bit about fonts are specified to make sense of this and to use the outputs.

You probably want a fixed-size font for a terminal. Try

xlsfonts | grep '^[0-9]'

This will give a list of fixed-size fonts in terms of pixel width X height.
 
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...

Similar threads

Replies
5
Views
2K
Replies
2
Views
2K
Replies
1
Views
2K
Replies
4
Views
2K
Replies
37
Views
6K
Replies
207
Views
12K
Replies
1
Views
153K
Back
Top