File: run-tic.sh

package info (click to toggle)
xterm 222-1etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,552 kB
  • ctags: 4,131
  • sloc: ansic: 45,739; sh: 3,719; perl: 740; makefile: 333
file content (25 lines) | stat: -rwxr-xr-x 443 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
# $XTermId: run-tic.sh,v 1.1 2006/08/10 21:42:07 tom Exp $
#
# Run tic, either using ncurses' extension feature or filtering out harmless
# messages for the extensions which are otherwise ignored by other versions of
# tic.

TMP=run-tic$$.log
VER=`tic -V 2>/dev/null`
OPT=

case .$VER in
.ncurses*)
	OPT="-x"
	;;
esac

echo "** tic $OPT" "$@"
tic $OPT "$@" 2>$TMP
RET=$?

fgrep -v 'Unknown Capability' $TMP >&2
rm -f $TMP

exit $RET