#!/bin/sh #---------------------------------------------------------------------------- # /usr/local/bin/clrhome - clear home # # Copyright (c) 2004 Frank Meyer # # Creation: 29.09.20001 fm # Last Update: $Id$ # # 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) _clrhome_mode=tty; shift;; -html) _clrhome_mode=html; shift;; -file) _clrhome_mode=file; shift;; *) break;; esac done case $_clrhome_mode in tty) echo -e "\033[H\033[2J\c";; html) echo "
";; file) echo -e "\n----------------------------------------------------------------------\n";; esac } #============================================================================ # end #============================================================================