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

  • Thread starter natski
  • Start date
In summary, you can change the font size on your iMac by using control right click and selecting a font from the popup. However, it is not possible to change the background color on the fly. You can do this by specifying the desired background color and font in the xterm command. To see a list of available fonts, you can use the command "xlsfonts". For a fixed-size font, you can use "xlsfonts | grep '^[0-9]'".
  • #1
natski
267
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
  • #2
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.
 
  • #3
Thanks, I tried -fn arial and it didnt like it much though, which fonts are available?
 
Last edited:
  • #4
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.
 

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

What is the purpose of formatting in X11 Terminal?

The purpose of formatting in X11 Terminal is to change the appearance of text and other elements displayed in the Terminal. This can include changing the font, color, and size of text, as well as adding formatting such as bold or italic.

How do I change the font in X11 Terminal?

To change the font in X11 Terminal, you can use the "xterm -fn" command followed by the name of the font you want to use. Alternatively, you can also use the Xresources file to set a default font for all X11 Terminal windows.

Can I customize the colors in X11 Terminal?

Yes, you can customize the colors in X11 Terminal using the "xterm -bg" and "xterm -fg" commands to set the background and foreground colors respectively. You can also use the Xresources file to set default colors for all X11 Terminal windows.

Is it possible to add formatting to specific words or lines in X11 Terminal?

Yes, you can add formatting to specific words or lines in X11 Terminal by using escape sequences. For example, to make a word bold, you can use the escape sequence "\e[1m" before the word and "\e[0m" after the word to return to normal formatting.

How do I save my formatting changes in X11 Terminal?

To save your formatting changes in X11 Terminal, you can use the "xrdb" command to merge your changes into the Xresources database. This will ensure that your formatting changes are applied every time you open X11 Terminal.

Similar threads

Replies
5
Views
2K
Replies
2
Views
1K
Replies
1
Views
2K
Replies
4
Views
1K
Replies
37
Views
5K
Replies
1
Views
152K
6
Replies
185
Views
6K
Back
Top