package require twoHistorybox
?1.0?
two_historybox
pathName ?options?
historybox
is implemented
on top of the two_combobox(n)
widget. Every command entered in the text
area is appended to the command history. This history is available through
the dropdown list or through the cursor keys (like in bash). Pressing enter
will add a new command to the history and invoke whatever script has been
configured.
two_historybox
takes the same commands as the
two_combobox(n)
widget plus
- pathName
add2hist
- Add the current contents of the combobox to the history.
- pathName
reset
- Reset the current position in the history.
two_combobox
command takes all options of
the two_combobox(n)
entry widget plus the following options:
-command
?script?- Run the script whenever the user hits the return key.
-max
- The maximum number of elements within the history. Defaults to 32.
historybox
is nothing but a combobox with some additional bindings.