hxtools/suser/fxterm

51 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: MIT
#
# fxterm - VGA-ish xterm launcher
#
if [[ ! -e /usr/share/X11/app-defaults/XTerm.jng ]]; then
# existence of file means the system xterm is already patched
par=(
-xrm '*VT100*alwaysBoldMode: false'
-xrm '*VT100*background: #000000'
-xrm '*VT100*boldMode: false'
-xrm '*VT100*color0: #000000'
-xrm '*VT100*color10: #00FF00'
-xrm '*VT100*color11: #FFFF00'
-xrm '*VT100*color12: #0000FF'
-xrm '*VT100*color13: #FF00FF'
-xrm '*VT100*color14: #00FFFF'
-xrm '*VT100*color15: #FFFFFF'
-xrm '*VT100*color1: #AA0000'
-xrm '*VT100*color2: #00AA00'
-xrm '*VT100*color3: #AA6600'
-xrm '*VT100*color4: #000090'
-xrm '*VT100*color5: #AA00AA'
-xrm '*VT100*color6: #00AAAA'
-xrm '*VT100*color7: #AAAAAA'
-xrm '*VT100*color8: #555555'
-xrm '*VT100*color9: #FF0000'
-xrm '*VT100*colorBD: #FFFFFF'
-xrm '*VT100*colorBDMode: on'
-xrm '*VT100*colorUL: #60AAAA'
-xrm '*VT100*colorULMode: on'
-xrm '*VT100*cursorBlink: false'
-xrm '*VT100*cursorColor: #FF0080'
-xrm '*VT100*cursorOffTime: 1000'
-xrm '*VT100*cursorOnTime: 1000'
-xrm '*VT100*cursorUnderLine: false'
-xrm '*VT100*foreground: #AAAAAA'
-xrm '*VT100*geometry: 80x25'
-xrm '*VT100*internalBorder: 0'
-xrm '*VT100*loginShell: true'
-xrm '*VT100*pointerColor: #A0FF00'
-xrm '*VT100*scrollBar: false'
-xrm '*VT100*veryBoldColors: 0'
-xrm '*VT100*visualBell: false'
);
fi;
if [ -z "$XTERM" ]; then
XTERM=xterm
fi
exec "$XTERM" "${par[@]}" "$@"