/contrib/dialog/samples/msgbox3

https://bitbucket.org/freebsd/freebsd-head/ · Shell · 22 lines · 17 code · 3 blank · 2 comment · 3 complexity · ee7ce9ca808dee74b4242ab5882b2f2c MD5 · raw file

  1. #!/bin/sh
  2. # $Id: msgbox3,v 1.7 2010/01/13 10:26:52 tom Exp $
  3. . ./setup-vars
  4. width=35
  5. while test $width != 61
  6. do
  7. $DIALOG --title "MESSAGE BOX (width $width)" --clear --no-collapse "$@" \
  8. --msgbox "\
  9. H H EEEEE L L OOO
  10. H H E L L O O
  11. HHHHH EEEEE L L O O
  12. H H E L L O O
  13. H H EEEEE LLLLL LLLLL OOO
  14. Hi, this is a simple message box. You can use this to \
  15. display any message you like. The box will remain until \
  16. you press the ENTER key." 15 $width
  17. test $? = $DIALOG_ESC && break
  18. width=`expr $width + 1`
  19. done