home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / LINUX / ARCHIVE / TPUTINIT.Z / TPUTINIT / sbin / tputinit
Encoding:
Text File  |  1993-01-01  |  432 b   |  23 lines

  1. #!/bin/sh
  2. # Written by Tony Hansen of AT&T
  3.  
  4. # Evaluate and output the iprog capability
  5. eval `tput iprog`
  6.  
  7. # output the is1 and is2 initialization strings
  8. tput is1
  9. tput is2
  10.  
  11. # if the terminal supports tabs, set them
  12. # otherwise, disable them
  13. if [ -n "`tput ht`" ]
  14. then stty tabs; tabs -8
  15. else stty -tabs
  16. fi
  17.  
  18. # output contents of the initialization file, if present
  19. cat -s "`tput if`"
  20.  
  21. # output the is3 initialization string
  22. tput is3
  23.