# Generate a terminfo command from a terminfo name.
#
# Copyright (C) 2002 Free Software Foundation, Inc.
#
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cat <<EOF
Usage: grub-terminfo TERMNAME
Generate a terminfo command from a terminfo name.
-h, --help print this message and exit
-v, --version print the version information and exit
Report bugs to <bug-grub@gnu.org>.
EOF
}
echo "grub-terminfo: error: $1" 1>&2
}
-h | --help)
exit 0 ;;
-v | --version)
echo "grub-terminfo (GNU GRUB ${VERSION})"
exit 0 ;;
-*)
exit 1 ;;
*)
if test "x$termname" != x; then
error "More than one terminfo names?"
exit 1
fi
esac
done
if test "x$termname" = x; then
error "termname not specified"
exit 1
fi
}
if test "x$cursor_address" = x; then
error "cursor_address not found"
exit 1
fi
cursor_address="--cursor-address=$cursor_address"
if test "x$clear_screen" != x; then
clear_screen="--clear-screen=$clear_screen"
fi
if test "x$enter_standout_mode" != x; then
enter_standout_mode="--enter-standout-mode=$enter_standout_mode"
fi
if test "x$exit_standout_mode" != x; then
exit_standout_mode="--exit-standout-mode=$exit_standout_mode"
fi