-->

Using the Xterm Terminal Emulator On Linux

The oldest and most basic of terminal emulation packages is xterm. The xterm package has been around since before the original days of X Window, a popular display server, and it’s often included by default in distributions.

Although xterm is a full terminal emulation package, it doesn’t require many resources (such as memory) to operate. Because of this, the xterm package is still popular in Linux distributions designed to run on older hardware. Some graphical desktop environments use it as the default terminal emulation package.

Although it doesn’t offer many fancy features, the xterm package does one thing extremely well: It emulates older terminals, such as the Digital Equipment Corporation (DEC) VT102, VT220, and Tektronix 4014 terminals. For the VT102 and VT220 terminals, xterm can even emulate the VT series of color control codes, allowing you to use color in your scripts.

Note
The DEC VT102 and VT220 were dumb text terminals popular for connecting to
Unix systems in the 1980s and early 1990s. A VT102/VT220 could display text and
display rudimentary graphics using block mode graphics. This style of terminal
access is still used in many business environments today, thus keeping VT102/VT220
emulation popular.
The xterm Terminal pic shows what the basic xterm display looks like running on a graphical Linux
desktop. You can see it is very basic.

The xterm Terminal
The xterm Terminal

The xterm terminal emulator can be tricky to find these days. Often, it is not included in a desktop environment graphical menu arrangement.

Accessing xterm

In Ubuntu’s Unity desktop, xterm is installed by default. You can access it via Dash⇨Search and type xterm. xterm shows up in the Dash home area as an application named XTerm. Click that icon to open the xterm terminal emulator.

Note
You may see another terminal called UXTerm when you search for xterm on Ubuntu.
This is simply the xterm emulator package with Unicode support.
In the GNOME and KDE desktop environment, xterm is not installed by default. You must install it first (see Chapter 9 for help on installing software packages). After it’s installed, you must start xterm from another terminal emulator. Open a terminal emulator for CLI access, type xterm, and press Enter. Also, remember that you can create your own desktop launcher to startup xterm.

The xterm package allows you to set individual features using command line parameters. The following sections discuss these features and how to change them.

Command Line Parameters

The list of xterm command line parameters is extensive. You can control lots of features to customize the terminal emulation features, such as enabling or disabling individual VT emulations.

Note
xterm has a huge number of configuration options — so many that they cannot all be
covered here. Extensive documentation is available via the bash manual. Accessing
the bash manual is covered in Chapter 3. In addition, the xterm development team
provides some excellent help on its website: http://invisibleisland.net/xterm/.
You can invoke certain configuration options by adding a parameter to the xterm command. For example, to have the xterm emulate a DEC VT100 terminal, type the command xterm -ti vt100 and press Enter. xterm Command Line Parameters Table shows some parameters you can include when invoking the xterm terminal emulator software.

xterm Command Line Parameters
xterm Command Line Parameters

Some xterm command line parameters use a plus sign (+) or minus sign (-) to signify how a feature is set. A plus sign may turn a feature on, while a minus sign turns it off. However, the opposite can be true as well. A plus sign may disable a feature, while a minus sign enables it, such as when using the bc parameter. xterm +/- Command Line Parameters Table lists some of the more common features you can set using the +/- command line parameters.

xterm +/- Command Line Parameters
xterm +/- Command Line Parameters

It is important to note that not all implementations of xterm support all these command line parameters. You can determine which parameters your xterm implements by using the-help parameter when you start xterm on your system.

Now that you have been introduced to three terminal emulator packages, the big question is which is the best terminal emulator to use? There is no definite answer to that question. Which terminal emulator package you use depends upon your individual needs and desires. But it is great to have so many choices.

Summary

To start learning Linux command line commands, you need access to a CLI. In the world of graphical interfaces, this can sometimes be challenging. This chapter discussed different interfaces you should consider to get to the Linux command line.

First, this chapter discussed the difference between accessing the CLI via a virtual console terminal (a terminal outside the GUI) and a graphical terminal emulation package (a terminal inside the GUI). We took a brief look at the basic differences between these two access methods.

Next, we explored in detail accessing the CLI via a virtual console terminal, including specifics on how to change console terminal configuration options such as background color.

After looking at virtual console terminals, the chapter traveled through accessing the CLI via a graphical terminal emulator. Primarily, we covered three different types of terminal emulators:
  • GNOME Terminal
  • Konsole Terminal
  • and xterm.

This chapter also covered the GNOME desktop project’s GNOME terminal emulation package. GNOME Terminal is typically installed by default on the GNOME desktop environment. It provides convenient ways to set many terminal features via menu options and shortcut keys.

We also covered the KDE desktop project’s Konsole terminal emulation package. The Konsole Terminal is typically installed by default on the KDE desktop environment. It provides several nice features, such as the ability to monitor a terminal for silence.

Finally, we covered the xterm terminal emulator package. xterm was the first terminal emulator available for Linux. It can emulate older terminal hardware such as the VT and Tektronix terminals.

In the next chapter, you start looking at the Linux command line commands. It walks you through the commands necessary to navigate around the Linux filesystem, and to create, delete, and manipulate files.


0 Response to "Using the Xterm Terminal Emulator On Linux"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel