#!/usr/bin/sh #---------------------------------------------------------------------------- # /var/insrall/include/clrhome - clear home # # Creation: 2001-09-29 fm # Last Update: $Id: clrhome,v 1.2 2004/10/16 20:15:43 max Exp $ # # Copyright (c) 2001-@@YEAR@@ the eisfair-team, team(at)eisfair(dot)org # # usage: # # clrhome [-tty|-html|-file] # # This program is free software; you can redistribute it and/or modify # it 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. #---------------------------------------------------------------------------- # --------------------------------------------------------------------------- # usage # --------------------------------------------------------------------------- # # clrhome [-tty|-html|-file] # # --------------------------------------------------------------------------- # --------------------------------------------------------------------------- # main # --------------------------------------------------------------------------- clrhome() { _clrhome_mode="$_EISLIB_PRINTMODE" while [ 1 ] do case "$1" in --tty|-tty) _clrhome_mode=tty; shift;; --html|-html) _clrhome_mode=html; shift;; --file|-file) _clrhome_mode=file; shift;; *) break;; esac done case $_clrhome_mode in tty) echo -e "\033[H\033[2J\c";; html) echo "