# Run the tset command, setting the shell variables appropriately.  With
# the -s flag, set TERMCAP as well as TERM.  The -s flag must come first.
#
# Copyright (C) 1989 by Kenneth Almquist.  All rights reserved.
# This file is part of ash, which is distributed under the terms specified
# by the Ash General Public License.

tset() {
	case $1 in
	-s)	eval "$(/usr/ucb/tset "$@")"
	*)	TERM=$(/usr/ucb/tset - "$@")
	esac
}
