Next Previous Contents

5. The textarea widget

The textarea widget is special as it spans several lines. Further it may be used to edit text larger than the display. Key usage for text editor are a little incompatible with the key bindings for normal text mode dialogs. Using a text editor, one will happily use TAB, DOWN, UP, PAGE DOWN, PAGE UP and so on. Those keys are currently used for field to field navigation.

Graphical interface normally reserve the TAB key to jump from one field to the other. Linuxconf uses the TAB key in text mode to jump from the dialog area to the button area. Using the GUI strategy would not work very well: Having to "tab" your way to the "Accept" button of a 20 lines dialog is simply unacceptable. Oddly the GUI standard is not acceptable either, but the mouse is saving the day here.

The textarea widget in text mode is somewhat modal. In field mode the normal behavior or field navigation keys (TAB, DOWN, UP, ...) is preserved. You must enter a white space on the field to trigger the edit mode. While in edit mode, all field navigation keys behave as one expect in a text editor. Hitting escape twice will bring you back to field navigation mode.

Here are some key bindings specific to the textarea edit mode. They can be used along normal key binding and are especially useful when the terminal emulation you are using is ineffective (like some broken telnet software).


Next Previous Contents