When comparing xterm vs Zathura, the Slant community recommends Zathura for most people. In the question“What are the best applications to use on a X11 window manager?” Zathura is ranked 5th while xterm is ranked 8th. The most important reason people chose Zathura is:
Zathura is fast and can open a pdf file almost instantly.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Lightweight
Xterm is a very lightweight terminal. It requires few resources, allowing it to run well even on lower-end machines.
Pro Used in almost every Linux distribution
If you master xterm, you won't have to learn another tty, since it is in almost every Linux distribution.
Pro Stable, well-tested
Pro Standard with X Window system
Xterm is installed as standard software with the X Window system, and is there even when installing other terminal emulators.
Pro Supports sixel images
Pro Shows full characters for wide fallback fonts
Many terminal emulators that deal with wider fallback fonts (i.e. double-wide characters in CJK fonts) truncate display of wide characters, show Unicode "missing glyph" characters, or simply fail to display the characters at all. XTerm is "smart" enough to simply take up the extra space needed to show such wide characters.
Pro In about 30 years, it had only one issue, and that was fixed quickly
Pro It is fast and responsive
See this.
Pro Many modern terminals emulate xterm
Many terminal applications, such as OS X's Terminal.app and iTerm2 (among others), all claim xterm or xterm- variants as their $TERM and aim for support of xterm's escape sequences. Many command-line applications will assume or even hard-code escape-sequences and behavior for xterm and those terminals emulating it.
Pro Configurable via Xresources
X Toolkit resources and xrdb predates what is currently called "theme". Although one needs to read man, mitigates most listed cons
Pro Lightweight
Zathura is fast and can open a pdf file almost instantly.
Pro Clean interface
Inferface is clean and shows only a small statusbar.
Pro Vim bindings
You can browse files via keyboard, using keyboard commands similar to vim (text editor).
Pro Automatic document reloading
Zathura will automatically refresh the view when a document has been modified. (By contrast, Chrome requires a manual refresh and brings you back to the top of the document so that you have to scroll back down).
Pro Default page layout always same and predictable
No unpredictable window opening behavior like Atril. Together with it's easy ways to scroll and zoom, zathura is perfect for fast look through lots of PDFs
Pro Detailed adjustment of dark mode
- recolor-darkcolor
- recolor-lightcolor
- recolor-keephue
- recolor-reverse-video
(see manpage zathurarc)
Also, proper dark mode: colors are grayscaled not inverted.
Pro Deactivation of all GUI elements
Pro Very detailed adjustment of page layout
For example:
- pages-per-row 3 (3 pages next to each other)
- first-page-column 3:1 (for 3 page column layout: first page is on the left)
- page-right-to-left false (2nd and 3rd page are shown right to the 1st)
Unfortunately I haven't found a way yet to map these commands to a key. The ability to prefix a shortcut with a number argument would lend itself perfectly to achieve what I had in mind.
Pro Call userscripts on document
For example:
map <C-l> exec "termite -c ./termite_config --class float -e 'tmux new-session /bin/ranger $(dirname "%")'"
<C-l> opens ranger with directory containing the opened document
Other ideas:
- extract pages
- print pages
Pro Good documentation of configuration options
See man page "zathura".
Pro Multiple tabs via tabbed
https://tools.suckless.org/tabbed/
But unlike qpdfview search will only operate on one tab instance.
Cons
Con No native transparency
Xterm does not natively support transparency (though it can be emulated if needs be).
Con Bad defaults
Very small default size. No way to know to how to configure size.
Con No tabs
Con It blinks
If it blinks for you too, you can try this: man xterm
and then press Shift+G.
Con Has few dependencies
Has dependencies like xbitmaps.
Con Historical source code
The stories behind terminal emulation beyond their classical representatives (of which xterm is simply the most long-lived) are somewhere inbetween subtly irritating to downright surreal.
Con No annotation support
Con No thumbnail view
Unlike qpdfview, okular and evince, which have it.
Con Input forms are not editable
qpdfview, okular and evince do this.