Solved How to zoom in text in terminal?

It's good practice to search the forums for existing threads before asking question which have already been answered again.
 
Text in terminal is too small. How can I zoom in? How can I make text bigger?
Assuming a desktop environment (X11 running): start an xterm(1) with a scalable font.

Step 1: get a list of scalable fonts installed on your system: fc-list :scalable=true:spacing=mono: family
Step 2: make xterm use that font, suffixing the desired size: xterm -fa "Inconsolata:size=24"

You may also change the size of an xterm font via xterm's "VT Fonts" menu (Control - Right Click).
 
… Control - Right Click is more easy and suit me

In terminal apps such as Konsole, you can use the keyboard alone:

1650026864300.png
 
Ctrl++ zoom in
Ctrl+- zoom out

In Konsole, yes?

My screenshot was of Konsole (a terminal application) on FreeBSD.

Code:
% pkg info -x konsole
konsole-21.12.3
% pkg -vv | grep -e url -e enabled
    url             : "pkg+http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
    url             : "https://alpha.pkgbase.live/current/FreeBSD:14:amd64/latest",
    enabled         : no,
    url             : "file:///usr/local/poudriere/data/packages/main-default",
    enabled         : yes,
% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #10 main-n254693-d7696096209-dirty: Wed Apr 13 06:03:02 BST 2022     root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
-NODEBUG amd64 1400056 1400056
%
 
If "terminal" means the standard xterm in xorg (i.e. x11/xterm), it is also possible to define a keybinding for the Ctrl key. Like this (in $HOME/.Xresources or $HOME/.Xdefaults):
Code:
! Increase/Decrease font size with CTRL-+ / CTRL--
XTerm.vt100.translations: #override \n\
        Ctrl <Key> minus: smaller-vt-font() \n\
        Ctrl <Key> plus: larger-vt-font()

Works fine if you use a scalable font.

As it's pointed out above, rxvt/urxvt is more versatile by adding extensions.

If you like the terminal programs of the desktop environments you may install and use them with cwm, too. Only drawback: they all pull in a lot of dependencies you otherwise don't need there.
 
Back
Top