« Easy dual monitor setup with xrandr | Main | How to sniff usb port under Windows? »

Change current xterm font size

Did you ever needed a way to increase or decrease font size in xterm from script? I did... It took me quite some time to find out that xtermcontrol exists (which might be due to my use of rxvt instead of xterm for a long time).

Anyway, if you add following lines to your .bashrc:

alias f+='xtermcontrol --font=#+1'
alias f-='xtermcontrol --font=#-1'
...and you will be able to change font size in currently running xterm by f+ or f-.

TrackBack

TrackBack URL for this entry:
http://blog.rot13.org/mt/mt-tb.cgi/598

Listed below are links to weblogs that reference Change current xterm font size:

» Change font size in xterm using keyboard from Dobrica Pavlinušić's Weblog / Blog
I'm big fan of xterm with bitmap fonts (usually fixed, Terminus or Neep) for my terminals, mostly because it's small and quick (compare find . in your home directory full of files in some terminal with TrueType fonts and xterm with bitmap fonts to see... [Read More]

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on September 16, 2008 7:33 PM.

The previous post in this blog was Easy dual monitor setup with xrandr.

The next post in this blog is How to sniff usb port under Windows?.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.