直接上脚本
cd ~/data/download
tar -xf luit-20190106.tgz
cd luit-20190106
./configure --prefix=/opt
make
sudo make install
sudo mv /usr/bin/luit /usr/bin/luit1
sudo ln -sf /opt/bin/luit /usr/bin/luit
luit -V
构建选项参考 14.04 的 deb 中的脚本,此命令支持 18.04
# wget ftp://ftp.invisible-island.net/xterm/xterm-347.tgz
cd ~/data/download
tar -xf xterm-349.tgz
cd xterm-349
./configure --exec-prefix=/opt \
--with-app-defaults=/etc/X11/app-defaults \
--with-icondir=/opt/share/icons \
--enable-builtin-xpms \
--with-icon-theme=yes \
--with-tty-group=tty \
--enable-logging \
--enable-wide-chars \
--enable-luit \
--enable-256-color \
--disable-imake \
--enable-narrowproto \
--enable-exec-xterm \
--enable-dabbrev \
--enable-backarrow-is-erase \
--enable-sixel-graphics \
--with-utempter \
--enable-screen-dumps \
--with-pcre \
LUIT=/opt/bin/luit \
DESKTOP_FLAGS="--vendor debian --dir=/usr/share/applications"
make
sudo make install
# terminfo description,可能报警告,忽略即可
sudo make install-ti
# 替换系统自带的 xterm
sudo mv /usr/bin/uxterm /usr/bin/uxterm1
sudo mv /usr/bin/xterm /usr/bin/xterm1
sudo ln -sf /opt/bin/xterm /usr/bin/xterm
sudo ln -sf /opt/bin/uxterm /usr/bin/uxterm
sudo sed -i -e's#Exec=uxterm#Exec=/opt/bin/uxterm#' /usr/share/applications/debian-uxterm.desktop
sudo sed -i '38i export XTERM_PROGRAM=/opt/bin/xterm' /opt/bin/uxterm