home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2106 / nasty-shell
Encoding:
Text File  |  1990-12-28  |  603 b   |  13 lines

  1. : #nasty-shell, totally prejudiced towards SYS V UNIX,  Dan_Jacobson@ATT.COM
  2. usage="$0"; test $# -gt 0 && { echo $0: usage $usage; exit 1;}
  3. x='1>&2 echo "\nThank you for using $0.  Deposit 25 cents please, then
  4.     hit <RETURN> \c"; read y' 
  5. video_on=`tput blink`; test -z "$video_on" && video_on=`tput smso`
  6. video_off=`tput rmso` #no tput rmblink
  7. prompt_message=\
  8. "NASTY-Shell Version 0.0, Copyright (c)1989 Dan Jacobson, DanCo Corporation"
  9. PS1="$video_on$prompt_message>$video_off " sh -i #ksh doesn't show all
  10.                          #my beautiful prompt
  11. eval $x
  12. tput rs1; tput rs2; tput rs3 #fix up the bloody terminal
  13.