home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / xbatch.zip / DD2.BAT < prev    next >
DOS Batch File  |  1988-09-14  |  4KB  |  95 lines

  1. rem colors %1=fg,%2=bg (box fg,bg); %3=emphasized, %4=fg,%bg (scrn fg,bg)
  2. echo off
  3.  
  4. cls
  5. DISPFILE screens.dat screen 1 colors %1 %2
  6. GETCHAR noecho
  7.  
  8. CLRSCRN
  9. DISPLAY "The CLRSCRN command is used to clear the screen." line 22 center clear
  10. DISPLAY "Example:  CLRSCRN" line 24 colors %4 %5 clear
  11. DISPLAY "Press any key." line 12 center color %3
  12. getchar NOECHO
  13.  
  14. CLRSCRN colors %1 %2
  15. DISPLAY "You can specify the colors to be used." line 22 colors %1 %2 center clear
  16. DISPLAY "Example:  CLRSCRN colors 7 1" line 24 colors 7 0 clear
  17. DISPLAY "Press any key." line 12 center color %3
  18. GETCHAR NOECHO
  19.  
  20. cls
  21. BOX from 4 10 to 20 70 colors %1 %2
  22. DISPLAY "The BOX command can be used to clear a box on the screen." line 22 center clear
  23. DISPLAY "Example:  BOX from 4 10 to 20 70 colors 7 1" line 24 colors %4 %5 clear
  24. DISPLAY "Press any key." line 12 center color %3
  25. GETCHAR noecho
  26.  
  27. BOX from 4 10 to 20 70 colors %1 %2 single bright
  28. DISPLAY "The box can have an optional border." line 22 center clear
  29. DISPLAY "Example:  BOX from 4 10 to 20 70 colors 7 1 single" line 24 colors %4 %5 clear
  30. DISPLAY "Press any key." line 12 center color %3
  31. GETCHAR noecho
  32.  
  33. box from 4 10 to 20 70
  34. box from 4 10 to 20 70 color %2 border noclear
  35. DISPLAY "The BOX command can also be used to just draw a border." line 22 center clear
  36. DISPLAY "Example:  BOX from 4 10 to 20 70 color 1 border noclear" line 24 colors %4 %5 clear
  37. DISPLAY "Press any key." line 12 center color %3
  38. getchar noecho
  39.  
  40. DISPLAY "              " line 12 center
  41. box from 4 10 to 20 70 colors %3 %2 single noclear bright
  42. DISPLAY "You can also have a single line border." line 22 center clear
  43. DISPLAY "Example:  BOX from 4 10 to 20 70 colors 7 1 single noclear" line 24 colors %4 %5 clear
  44. DISPLAY "Press any key." line 12 center color %3
  45. getchar noecho
  46.  
  47. DISPLAY "              " line 12 center
  48. BOX from 4 10 to 20 70 colors %3 %2 double noclear bright
  49. DISPLAY "Or a double line border." line 22 center clear
  50. DISPLAY "Example:  BOX from 4 10 to 20 70 colors 7 1 double noclear" line 24 colors %4 %5 clear
  51. DISPLAY "Press any key." line 12 center color %3
  52. GETCHAR NOECHO
  53.  
  54. cls
  55. BOX from 4 10 to 20 70 colors %3 %2 single
  56. DISPLAY "Any text." at 14 36 color %1
  57. DISPLAY "The DISPLAY command lets you display text at any location on the screen." line 22 center clear
  58. DISPLAY "Example:  DISPLAY \"Any text.\" at 14 36" line 24 colors %4 %5 clear
  59. DISPLAY "Press any key." line 12 center color %3
  60. GETCHAR NOECHO
  61.  
  62. BOX from 4 10 to 20 70 colors %1 %2 single
  63. DISPLAY "Centered text." line 2 center colors %2 %1
  64. DISPLAY "You can center the text and specify the color." line 22 center clear
  65. DISPLAY "Example:  DISPLAY \"Centered text.\" line 2 center colors 1 7" line 24 colors %4 %5 clear
  66. DISPLAY "Press any key." line 12 center color %3
  67. GETCHAR NOECHO
  68.  
  69. cls
  70. BOX from 4 10 to 20 70 colors %1 %2 single
  71. DISPLAY "The GETCHAR command waits until the user presses a key." line 22 center clear
  72. DISPLAY "Example:  GETCHAR at 17 20 noecho" line 24 colors %4 %5 clear
  73. DISPLAY "Press any key." line 12 center color %3
  74. GETCHAR NOECHO at 17 20
  75.  
  76. BOX from 4 10 to 20 70 colors %1 %2 single
  77. DISPLAY "You can specify which keys to wait for." line 22 center clear
  78. DISPLAY "Example:  GETCHAR at 17 20 noecho choices \"abc\" " line 24 colors %4 %5 clear
  79. DISPLAY "Press the A, B, or C key." line 12 center color %3 bright
  80. GETCHAR choices "abc" noecho at 17 20
  81.  
  82. BOX from 4 10 to 20 70 colors %1 %2 single
  83. DISPLAY "You can specify that the key character should be echoed." line 22 center clear
  84. DISPLAY "Example:  GETCHAR at 17 20 choices \"abc\" " line 24 colors %4 %5 clear
  85. DISPLAY "Press the A, B, or C key." line 12 center color %3 bright
  86. GETCHAR choices "abc" at 17 20
  87.  
  88. BOX from 4 10 to 20 70 colors %1 %2 single
  89. DISPLAY "You can specify control keys like the ESC key." line 22 center clear
  90. DISPLAY "Example:  GETCHAR at 17 20 noecho choices \"\27\" " line 24 colors %4 %5 clear
  91. DISPLAY "Press the ESC key." line 12 center color %3 bright
  92. GETCHAR choices "\27" noecho at 17 20
  93.  
  94. dd3 %1 %2 %3 %4 %5
  95.