[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Display string in the message bar.
Read a command from the user. initial-text is optional. When supplied, the text will appear in the prompt.
4.1 Customizing The Bar | ||
4.2 Using The Input Bar | ||
4.3 Programming The Message Bar | ||
4.4 Programming the Input Bar |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The bar’s appearance and behavior can be modified with the following functions and variables.
Set the foreground color for the message bar and input bar. color can be any color recognized by X.
Set the background color for the message bar and input bar. color can be any color recognized by X.
Set the border color for the message bar and input bar. color can be any color recognized by X.
Set the border width for the message bar and input bar.
Set the font for the message bar and input bar.
The number of pixels that pad the text in the message window.
This variable controls where the message window appears. The follow are valid values.
Specifies, in seconds, how long a message will appear for. This must be an integer.
This variable controls where the input window appears. The follow are valid values.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The following is a list of keybindings for the Input Bar. Users of Emacs will recognize them.
Delete the character before point (delete-backward-char
).
Kill back to the beginning of the previous word (backward-kill-word
).
Delete the character after point (delete-forward-char
).
Kill forward to the end of the next word (forward-kill-word
).
Move forward one character (forward-char
).
Move forward one word (forward-word
).
Move backward one character (backward-char
).
Move backward one word (backward-word
).
Move to the beginning of the current line (move-beginning-of-line
).
Move to the end of the current line (move-end-of-line
).
Kill to the end of the line (kill-line
).
Kill to the beginning of the line (kill-to-beginning
),
the same as C-a C-k.
Move to the next earlier entry saved in the command history (history-back
).
Move to the next later entry saved in the command history (history-forward
).
Submit the entered command (submit
).
Abort the current action by closing the Input Bar (abort
).
Paste text from clipboard into the Input Bar (yank-selection
).
Clockwise tab complete the current string, if possible. Press TAB again to cycle through completions.
Counter-clockwise tab complete the current string, if possible. Press S-TAB again to cycle through completions.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Display string in the message bar on screen. You almost always want to use message
.
run FMT and ARGS through ‘format’ and echo the result to the current screen.
Do not add a command to the input history if it’s already the first in the list.
Copy the last message displayed into the X selection
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
New input behavior can be added to the input bar by creating editing
functions and binding them to keys in the *input-map* using
define-key
, just like other key bindings.
An input function takes 2 arguments: the input structure and the key pressed.
Read a line of input through stumpwm and return it. returns nil if the user aborted.
Read a single character from the user.
Read a line of input through stumpwm and return it with TAB completion. completions can be a list, an fbound symbol, or a function. if its an fbound symbol or a function then that function is passed the substring to complete on and is expected to return a list of matches. If require-match argument is non-nil then the input must match with an element of the completions.
Insert string into the input at the current position. input must be of type input-line. Input functions are passed this structure as their first argument.
Insert char into the input at the current position. input must be of type input-line. Input functions are passed this structure as their first argument.
This is the keymap containing all input editing key bindings.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated by David Bjergaard on November 1, 2014 using texi2html 1.82.