3 #==============================================================================
5 # File ID: b834114a-fa6f-11dd-bf5e-000475e441b9
7 # Fyrer opp en stor xterm i X
9 # Det ender som oftest i
12 # xterm -u8 -fn -misc-fixed-medium-r-semicondensed-*-*-120-*-*-c-*-iso10646-1 \
13 # -fb -misc-fixed-medium-r-semicondensed-*-*-120-*-*-c-*-iso10646-1 -bg black \
14 # -fg white -bc -geometry 211x67+0+0
17 # xterm -u8 -fn -Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1 \
18 # -bg black -fg white -bc -geometry 140x48+0-8
20 # Author: Øyvind A. Holm <sunny@sunbase.org>
21 # License: GNU General Public License version 2 or later.
22 #==============================================================================
35 while test -n "$1"; do
37 -a|
--all) opt_all
=1; shift ;;
38 -b|
--big) opt_big
=1; opt_small
=0; shift ;;
39 -g|
--gdb) opt_gdb
=1; shift ;;
40 -h|
--help) opt_help
=1; shift ;;
41 -q|
--quiet) opt_quiet
=$
(($opt_quiet + 1)); shift ;;
42 -s|
--small) opt_small
=1; opt_big
=0; shift ;;
43 -T|
--title) opt_title
="$2"; shift 2 ;;
44 -v|
--verbose) opt_verbose
=$
(($opt_verbose + 1)); shift ;;
45 --version) echo $progname $VERSION; exit 0 ;;
48 if printf '%s\n' "$1" |
grep -q ^
-; then
49 echo "$progname: $1: Unknown option" >&2
57 opt_verbose
=$
(($opt_verbose - $opt_quiet))
59 if test "$opt_help" = "1"; then
60 test $opt_verbose -gt 0 && { echo; echo $progname $VERSION; }
63 Usage: $progname [options] [COMMAND]
65 Create xterm windows and execute optional COMMAND in it.
74 Create window for gdb(1).
78 Be more quiet. Can be repeated to increase silence.
80 Use small fonts. This is the default.
81 -T TITLE, --title TITLE
82 Use TITLE as xterm title.
84 Increase level of verbosity. Can be repeated.
86 Print version information.
92 if [ "$opt_big" = "1" ]; then
93 font
="-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1"
95 font
="-misc-fixed-medium-r-semicondensed-*-*-120-*-*-c-*-iso10646-1"
100 [ -z "$wintitle" ] && wintitle
=$
(hostname
)
106 if [ "$opt_big" = "1" ]; then
107 sess
-d $progname.
$wintitle -t c_
$progname -- xterm \
114 -geometry $geom "$@" &
116 sess
-d $progname.
$wintitle -t c_
$progname -- xterm \
123 -geometry $geom "$@" &
125 winc
="$winc $wintitle"
128 if [ -e /carmbb.mrk
]; then
129 if [ "$opt_small" = "1" ]; then
130 start_xterm
131x40
+0+0 "$@"
132 start_xterm
87x29
+0+0 "$@"
134 elif [ -e /bellmann
]; then
135 start_xterm
180x56
+0+0 "$@"
136 elif [ -e /hpelite1
]; then
137 if [ "$opt_gdb" = "1" -o "$opt_all" = "1" ]; then
138 [ -z "$opt_title" ] && wintitle
=gdb
139 if [ "$opt_big" = "1" ]; then
140 start_xterm
39x39
+1002+0 "$@"
142 start_xterm
59x54
+1002+0 "$@"
145 if [ "$opt_all" = "1" ]; then
147 if [ "$opt_big" = "1" ]; then
148 start_xterm
110x39
+0+0 "$@"
150 start_xterm
165x54
+0+0 "$@"
153 if [ "$opt_all" = "1" -o -z "$winc" ]; then
154 [ -z "$opt_title" ] && wintitle
=hpelite1
155 if [ "$opt_big" = "1" ]; then
156 start_xterm
110x39
+0+0 "$@"
158 start_xterm
165x54
+0+0 "$@"
161 elif [ -e /hpelite2
]; then
162 font
="-gnu-unifont-*-*-*-*-*-*-*-*-*-*-*-*"
163 if [ "$opt_gdb" = "1" -o "$opt_all" = "1" ]; then
164 [ -z "$opt_title" ] && wintitle
=gdb
165 start_xterm
62x63-0
+0 "$@"
167 if [ "$opt_all" = "1" ]; then
169 start_xterm
175x63
+0+0 "$@"
171 if [ "$opt_all" = "1" -o -z "$winc" ]; then
172 [ -z "$opt_title" ] && wintitle
=s
173 start_xterm
175x63
+0+0 "$@"
175 if [ "$opt_all" = "1" -o -z "$winc" ]; then
176 [ -z "$opt_title" ] && wintitle
=hpelite2
177 start_xterm
175x63
+0+0 "$@"
179 if [ "$opt_all" = "1" -o -z "$winc" ]; then
180 [ -z "$opt_title" ] && wintitle
=s10
181 start_xterm
175x63
+0+0 "$@"
183 elif [ -e /sunbase
]; then
184 if [ "$opt_gdb" = "1" -o "$opt_all" = "1" ]; then
185 [ -z "$opt_title" ] && wintitle
=gdb
186 if [ "$opt_big" = "1" ]; then
187 start_xterm
29x36
+996+0 "$@"
189 start_xterm
43x50
+996+0 "$@"
192 if [ "$opt_all" = "1" ]; then
194 if [ "$opt_big" = "1" ]; then
195 start_xterm
110x36
+0+0 "$@"
197 start_xterm
165x50
+0+0 "$@"
200 if [ "$opt_all" = "1" -o -z "$winc" ]; then
201 [ -z "$opt_title" ] && wintitle
=xterm
202 if [ "$opt_big" = "1" ]; then
203 start_xterm
110x36
+0+0 "$@"
205 start_xterm
165x50
+0+0 "$@"
208 elif [ -e /dundre.mrk
]; then
209 if [ "$opt_small" = "1" ]; then
210 start_xterm
211x55
+0+0 "$@"
212 start_xterm
87x29
+0+0 "$@"
215 start_xterm
165x25
+0+0 "$@"
218 # vim: set ts=8 sw=8 sts=8 noet fo+=w tw=79 fenc=UTF-8 :