two_historybox(n) manual page

Back to the Index
Table of Contents

Name

two_historybox - Historybox widget

Synopsis

package require twoHistorybox ?1.0?
two_historybox pathName ?options?

Description

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.

Commands

The 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.

Options

The 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.

Elements

A historybox is nothing but a combobox with some additional bindings.

Author

Frank J. Leitner
frank@fjl.de

See Also

two_combobox(n) .


Table of Contents


Back to the Index