File: lxterm

package info (click to toggle)
xterm 261-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,148 kB
  • ctags: 5,076
  • sloc: ansic: 53,555; sh: 4,230; perl: 1,210; makefile: 572
file content (28 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

PROGNAME=${0##*/}

die () {
    echo "$PROGNAME: fatal error: $*" >&2
    exit 1
}

if ! which locale >/dev/null 2>&1; then
    die "required program \"locale\" not available"
fi

case "$(locale charmap 2>/dev/null)" in
    KOI8-R)
        XTERM=koi8rxterm
        ;;
    UTF-8)
        XTERM=uxterm
        ;;
    *)
        XTERM=xterm
        ;;
esac

exec "$XTERM" "$@"

# vim:set ai et sw=4 ts=4 tw=80: