root/foundation-apps/mxterm-maxx/run-tic.sh
| Revision 8, 0.5 KB (checked in by emasson, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | # $XTermId: run-tic.sh,v 1.3 2007/06/17 15:30:03 tom Exp $ |
| 3 | # |
| 4 | # Run tic, either using ncurses' extension feature or filtering out harmless |
| 5 | # messages for the extensions which are otherwise ignored by other versions of |
| 6 | # tic. |
| 7 | |
| 8 | TMP=run-tic$$.log |
| 9 | VER=`tic -V 2>/dev/null` |
| 10 | OPT= |
| 11 | |
| 12 | case .$VER in |
| 13 | .ncurses*) |
| 14 | OPT="-x" |
| 15 | ;; |
| 16 | esac |
| 17 | |
| 18 | echo "** tic $OPT" "$@" |
| 19 | tic $OPT "$@" 2>$TMP |
| 20 | RET=$? |
| 21 | |
| 22 | fgrep -v 'Unknown Capability' $TMP | \ |
| 23 | fgrep -v 'Capability is not recognized:' | \ |
| 24 | fgrep -v 'tic: Warning near line ' >&2 |
| 25 | rm -f $TMP |
| 26 | |
| 27 | exit $RET |
Note: See TracBrowser
for help on using the browser.
