Difference between xterm and uxterm


What is the difference between xterm and uxterm. Let’s check it.

Environment

  • Ubuntu 15.10

Investigate Files

Let’s check files of xterm and uxterm.

We know file locations.

OK, now look into them. uxterm might be an only symbolic link to xterm.

Well, what do you think about it? The name “uxterm” seems to be more featured program than xterm, but its size is really smaller than one of xterm.

Look into uxterm

Now, let’s look into uxterm. It’s OK to see code in ubuntu repository, but this time, use cat command.

Do you understand? uxterm is wrapper script to setup xterm with UTF-8 locale, as commented. And when LC_CTYPE is not UTF-8, set UTF-8 to it and execute xterm.

起動オプションの説明

uxterm のスクリプト内で xterm を起動する際にいくつかのパラメータを設定しています。 それぞれのパラメータの意味は、 man を見る限り下のようになります。

-class UXTerm
(表示設定に関するもののようですが、詳しいことはわかりません。申し訳ない。)
-title $whoami
Change the title to “uxterm“. The variable whoami is declared at the beginning of the code.
-u8
UTF-8 対策です。
“$@”
uxterm 起動時のパラメータ配列です。 そのまま xterm に渡します。