Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Formatting in X11 Terminal

  1. Oct 2, 2007 #1

    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!

  2. jcsd
  3. Oct 2, 2007 #2

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    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.
  4. Oct 2, 2007 #3
    Thanks, I tried -fn arial and it didnt like it much though, which fonts are available?
    Last edited: Oct 2, 2007
  5. Oct 2, 2007 #4

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    xlsfonts lists all of the fonts available. The list is rather large. See below.

    xfontsel lets 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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook