Sitemap
Alfonso Baqueiro Bernal

Alfonso Baqueiro Bernal

Member-only story

How to change font in xterm?

2 min readJun 12, 2026

Default font in xterm is damn small for moderm resolutions, making bigger is a must.

The fastest way to display native xterm menu of fonts is using mouse right click while holding Control

xtermcontrol is a command we can use to solve this

# first install it using ports
sudo port install xtermcontrol

For change font used:

xtermcontrol --font="$FONT_NAME"

For making font bigger:

# the number control how many sizes to increase
xtermcontrol --font="#+1"

For reading what font are currently in use:

xtermcontrol --get-font

Also we can change the size of the term:

xtermcontrol --geometry=80x24

To list all available fonts:

# if you dont have it yet install xlsfonts
sudo port install xlsfonts
xlsfonts

After choosing one name in the listed, to get a preview of the font you can use xfd

# install if you do not have it yet
sudo port install xfd
FONT='lucidasanstypewriter-14'
xfd -fn "$FONT"
Press enter or click to view image in full size

If you want to explore fonts, xfontsel tool is handy:

--

--