/contrib/dialog/samples/msgbox5

https://bitbucket.org/freebsd/freebsd-head/ · Shell · 23 lines · 17 code · 3 blank · 3 comment · 3 complexity · 48d53ed06c8eb2477fce06ff13b28b6f MD5 · raw file

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