root/foundation-apps/mxterm-maxx/run-tic.sh

Revision 8, 0.5 KB (checked in by emasson, 3 years ago)

initial import for the community edition

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
8TMP=run-tic$$.log
9VER=`tic -V 2>/dev/null`
10OPT=
11
12case .$VER in
13.ncurses*)
14        OPT="-x"
15        ;;
16esac
17
18echo "** tic $OPT" "$@"
19tic $OPT "$@" 2>$TMP
20RET=$?
21
22fgrep -v 'Unknown Capability' $TMP | \
23fgrep -v 'Capability is not recognized:' | \
24fgrep -v 'tic: Warning near line ' >&2
25rm -f $TMP
26
27exit $RET
Note: See TracBrowser for help on using the browser.