explain.txt 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. #VERSION
  2. This is Version 00.90.00 of the demo package.
  3. #MENUKEYS
  4. In a menu you can use the following Keys in the whole application:
  5. - CTRL-X eXit the menu
  6. - CTRL-N Go to next item
  7. - CTRL-P Go to previous item
  8. - CTRL-U Scroll up one line
  9. - CTRL-D Scroll down one line
  10. - CTRL-F Scroll down one page
  11. - PAGE DOWN Scroll down one page
  12. - PAGE UP Scroll back one page
  13. - CTRL-B Scroll back one page
  14. - CTRL-Y Clear pattern
  15. - CTRL-H Delete last character from pattern
  16. - Backspace Delete last character from pattern
  17. - CTRL-A Next pattern match
  18. - CTRL-E Previous pattern match
  19. - CTRL-T Toggle item in a multi-selection menu
  20. - CR or LF Select an item
  21. - HOME Key Go to the first item
  22. - F3 Quit the menu
  23. - Cursor Down Down one item
  24. - Cursor Up Up one item
  25. - Cursor Left Left one item
  26. - Cursor Right Right one item
  27. - END Key Go to last item
  28. #FORMKEYS
  29. - CTRL-X eXit the form
  30. - CTRL-F Go forward to the next field
  31. - CTRL-B Go backward to the previous field
  32. - CTRL-L Go to the field left of the current one
  33. - CTRL-R Go to the field right of the current one
  34. - CTRL-U Go to the field above the current one
  35. - CTRL-D Go to the field below the current one
  36. - CTRL-W Go to the next word in the field
  37. - CTRL-T Go to the previous word in the field
  38. - CTRL-A Go to the beginning of the field
  39. - CTRL-E Go to the end of the field
  40. - CTRL-I Insert a blank character at the current position
  41. - CTRL-O Insert a line
  42. - CTRL-V Delete a character
  43. - CTRL-H Delete previous character
  44. - CTRL-Y Delete a line
  45. - CTRL-G Delete a word
  46. - CTRL-K Clear to end of field
  47. - CTRL-N Next choice in a choice field (Enumerations etc.)
  48. - CTRL-P Previous choice in a choice field.
  49. #HELP
  50. #HELPKEYS
  51. You may scroll with the Cursor Up/Down Keys.
  52. You may leave the help with the Function Key labelled 'Quit'.
  53. #INHELP
  54. You are already in the help system.
  55. You may leave the help with the Function Key labelled 'Quit'.
  56. #MAIN
  57. This is the main menu of the sample program for the ncurses Ada95
  58. binding. The main intention of the demo is not to demonstate or
  59. test all the features of ncurses and it's subsystems, but to provide
  60. to you some sample code how to use the binding with Ada95.
  61. You may select this options:
  62. * Look at some ncurses core functions
  63. * Look at some features of the menu subsystem
  64. * Look at some features of the form subsystem
  65. * Look at the output of the Ada.Text_IO like functions
  66. for ncurses.
  67. #MAINPAD
  68. You may press at any place in this demo CTRL-C. This will give you a command
  69. window. You can just type in the Label-String of a function key, then this
  70. key will be simulated. This should help you to run the application even if
  71. you run it on a terminal with no or only a few function keys. With CTRL-N
  72. and CTRL-P you may browse through the possible values in the command window.
  73. #MENU00
  74. Here we give you a selection of various menu demonstrations.
  75. #MENU-PAD00
  76. This menu itself is a demo for a single valued, 1-column menu with
  77. descriptions for the items, a marker and a padding character between
  78. the item name and the description.
  79. #MENU01
  80. This is a demo of the some of the menu layout options. One of them
  81. is the spacing functionality. Just press the Key labelled "Flip" to
  82. flip between the non-spaced and a spaced version of the menu. Please
  83. note that this functionality is unique for ncurses and is not found
  84. in the SVr4 menu implementation.
  85. This is a menu that sometimes doesn't fit into it's window and
  86. therefore it becomes a scroll menu.
  87. You can also see here very nicely the pattern matching functionality
  88. of menus. Type for example a 'J' and you will be positioned to the
  89. next item after the current starting with a 'J'. Any more characters
  90. you type in make the pattern more specific. With CTRL-A and CTRL-Z
  91. (for more details press the Key labelled "Keys") you can browse
  92. through all the items matching the pattern.
  93. You may change the format of the menu. Just press one of the keys
  94. labelled "4x1", "4x2" or "4x3" to get a menu with that many rows
  95. and columns.
  96. With the Keys "O-Row" or "O-Col" (they occupy the same label and
  97. switch on selection) you can change the major order scheme for
  98. the menu. If "O-Col" is visible, the menu is currently major
  99. ordered by rows, you can switch to major column order by pressing
  100. the key. If "O-Row" is visible, it's just the reverse situation.
  101. This Key is not visible in "4x1" layout mode, because in this case
  102. the functionality makes no sense.
  103. With the Keys "Multi" or "Singl" (they occupy the same label and
  104. switch on selection) you can change whether or not the menu allows
  105. multiple or only single selection.
  106. With the Keys "+Desc" or "-Desc" (they occupy the same label and
  107. switch on selection) you can change whether or not the descriptions
  108. for each item should be displayed. Please not that this key is
  109. not visible in the "4x3" layout mode, because in this case the
  110. menu wouldn't fit on a typicall 80x24 screen.
  111. With the Keys "Disab" or "Enab" (they occupy the same label and
  112. switch on selection) you can dis- or enable the selectability of
  113. the month with 31 days.
  114. #MENU-PAD01
  115. You may press "Flip" to see the effect of ncurses unique menu-spacing.
  116. The Keys "4x1", "4x2" and "4x3" will change the format of the menu.
  117. Please note that this is a scrolling menu. You may also play with the
  118. pattern matching functionality or try to change the format of the menu.
  119. For more details press the Key labelled "Help".
  120. #FORM00
  121. This is a demo of the forms package.
  122. #FORM-PAD00
  123. Please note that this demo is far from being complete. It really shows
  124. only a small part of the functionality of the forms package. Let's hope
  125. the next version will have a richer demo (You wan't to contribute ?).
  126. #NOTIMPL
  127. Sorry this functionality of the demo is not implemented at the moment.
  128. Remember this is a freeware project, so I can use only my very rare
  129. free time to continue coding. If you would like to contribute, you
  130. are very welcome !
  131. #CURSES00
  132. This is a menu where you can select some different demos of the ncurses
  133. functionality.
  134. #CURSES-PAD00
  135. Please note that this demo is far from being complete. It really shows
  136. only a small part of the functionality of the curses package. Let's hope
  137. the next version will have a richer demo (You wan't to contribute ?).
  138. #MOUSEKEYS
  139. In this demo you may use this keys:
  140. - Key labelled "Help" to get a help
  141. - Key labelled "Keys" is what you are reading now
  142. - Key labelled "Quit" to leave the demo
  143. You may click the mouse buttons at any location at the screen and look
  144. at the protocol window !
  145. #MOUSE00
  146. A rather simple use of a mouse as demo. It's there just to test the
  147. code and to provide the sample source.
  148. It might be of interest, that the output into the protocol window is
  149. done by the (n)curses Text_IO subpackages. Especially the output of
  150. the button and state names is done by Ads's enumeration IO, which
  151. allows you to print the names of enumeration literals. That's really
  152. nice.
  153. #MOUSE-PAD00
  154. This is a very simple demo of the mouse features of ncurses. It's there
  155. just to test whether or not the generated code for the binding really
  156. works on the different architectures (seems so).
  157. #ATTRIBDEMO
  158. Again this is a more than simple demo and just here to give you the
  159. sourcecode.
  160. #ATTRIBKEYS
  161. You may press one of the three well known standard keys of this demo.
  162. #ATTRIB-PAD00
  163. Again this is a more than simple demo and just here to give you the
  164. sourcecode. Feel free to contribute more.
  165. #TEXTIO
  166. #TEXTIOKEYS
  167. #TEXTIO-PAD00
  168. #END