| 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: MIT |
| 3 | # |
| 4 | # fxterm - VGA-ish xterm launcher |
| 5 | # |
| 6 | if [[ ! -e /usr/share/X11/app-defaults/XTerm.jng ]]; then |
| 7 | # existence of file means the system xterm is already patched |
| 8 | par=( |
| 9 | -xrm '*VT100*alwaysBoldMode: false' |
| 10 | -xrm '*VT100*background: #000000' |
| 11 | -xrm '*VT100*boldMode: false' |
| 12 | -xrm '*VT100*color0: #000000' |
| 13 | -xrm '*VT100*color10: #00FF00' |
| 14 | -xrm '*VT100*color11: #FFFF00' |
| 15 | -xrm '*VT100*color12: #0000FF' |
| 16 | -xrm '*VT100*color13: #FF00FF' |
| 17 | -xrm '*VT100*color14: #00FFFF' |
| 18 | -xrm '*VT100*color15: #FFFFFF' |
| 19 | -xrm '*VT100*color1: #AA0000' |
| 20 | -xrm '*VT100*color2: #00AA00' |
| 21 | -xrm '*VT100*color3: #AA6600' |
| 22 | -xrm '*VT100*color4: #000090' |
| 23 | -xrm '*VT100*color5: #AA00AA' |
| 24 | -xrm '*VT100*color6: #00AAAA' |
| 25 | -xrm '*VT100*color7: #AAAAAA' |
| 26 | -xrm '*VT100*color8: #555555' |
| 27 | -xrm '*VT100*color9: #FF0000' |
| 28 | -xrm '*VT100*colorBD: #FFFFFF' |
| 29 | -xrm '*VT100*colorBDMode: on' |
| 30 | -xrm '*VT100*colorUL: #60AAAA' |
| 31 | -xrm '*VT100*colorULMode: on' |
| 32 | -xrm '*VT100*cursorBlink: false' |
| 33 | -xrm '*VT100*cursorColor: #FF0080' |
| 34 | -xrm '*VT100*cursorOffTime: 1000' |
| 35 | -xrm '*VT100*cursorOnTime: 1000' |
| 36 | -xrm '*VT100*cursorUnderLine: false' |
| 37 | -xrm '*VT100*foreground: #AAAAAA' |
| 38 | -xrm '*VT100*geometry: 80x25' |
| 39 | -xrm '*VT100*internalBorder: 0' |
| 40 | -xrm '*VT100*loginShell: true' |
| 41 | -xrm '*VT100*pointerColor: #A0FF00' |
| 42 | -xrm '*VT100*scrollBar: false' |
| 43 | -xrm '*VT100*veryBoldColors: 0' |
| 44 | -xrm '*VT100*visualBell: false' |
| 45 | ); |
| 46 | fi; |
| 47 | if [ -z "$XTERM" ]; then |
| 48 | XTERM=xterm |
| 49 | fi |
| 50 | exec "$XTERM" "${par[@]}" "$@" |