File: textmenus.rst

package info (click to toggle)
neuron 8.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,760 kB
  • sloc: cpp: 149,571; python: 58,465; ansic: 50,329; sh: 3,510; xml: 213; pascal: 51; makefile: 35; sed: 5
file content (64 lines) | stat: -rwxr-xr-x 2,224 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.. _lw_doc:

Obsolete Text Menus
-------------------

The functions above have been superseded by the graphical user interface 
but are available for use on unix machines and in the DOS version. Using
the arrow keys may or may not work on a modern machine, depending on terminal
configuration.
See :ref:`GUI`.

----



.. function:: fmenu


    Syntax:

        ``h.fmenu(nmenu, -1)``            
            allocates space for nmenu number of menus
            Menu identifier numbers start at 0,1,...nmenu-1

        ``h.fmenu(imenu, 0)``
            erase previous menu identified by imenu.
        
        ``h.fmenu(imenu,1,var list)``
                    add variables specified in list
                    to imenu. The variable names will 
                    be added sequentially in the order
                    specified.

        ``h.fmenu(imenu,2,"prompt","command")``            
            add the executable command
            specified by a prompt,command pair
            to imenu.

        ``h.fmenu(imenu)``
            executes menu imenu, displays, navigates through imenu.

    Description:
        This is an old terminal based menu system that has been superseded by the 
        :ref:`GUI`. 
         
        ``fmenu`` creates, displays, and allows user to move within a menu to 
        select and change 
        a displayed variable value or to execute a command.
         
        The user can create space for 
        a series of menus and execute individual menus with each menu consisting of 
        lists of 
        variables and commands. Menus can execute commands which call other 
        menus and in this way a hierarchical menu system can be constructed. 
        Menus can be navigated by using arrow keys or by typing the first character 
        of a menu item. To exit a menu, either press the :kbd:`Esc` key, execute the 
        "Exit" item, or execute a command which has a "stop" statement. 
        A command item is executed by pressing the Return key. A variable item 
        is changed by typing the new number followed by a Return. 
         
        See the file :file:`$NEURONHOME/doc/man/oc/menu.tex` for a complete description 
        of this function.