FvwmConsoleC.pl(1)
π FvwmConsoleC.pl(1) π
okay bestie, this one lives in the Fvwm Modules crowd π¦ and it's a command editor for the fvwm command input interface. literally the line-editing main character β¨
β¨ NAME β¨
FvwmConsoleC.pl β the command editor for the fvwm command input interface π
π SYNOPSIS π
FvwmConsole -e /usr/X11/lib/fvwm/FvwmConsoleC.pl
that's the whole synopsis, no cap π
π§Ύ COPYRIGHT π§Ύ
Copyright 1996, Toshi Isogai. Toshi isn't making any guarantees or warranties, so use this program at your own risk π. You're free to use it for any purpose, as long as the copyright stays intact π«Ά.
πΈ DESCRIPTION πΈ
FvwmConsoleC.pl gives you editing powers while you're typing out a line π. By default the line editing commands are similar to emacs π§. It also does substitution, which swaps a pattern out for a string before the command gets sent off π₯.
π FUNCTIONS π
Functions get bound to a key or key combo so you can invoke them. Here's the full list with their default key bindings, iconic π
bind(Meta-k,Ctrl-x Ctrl-b) β lists up key bindings and substitutions ποΈbohβ moves you to the beginning of history βͺboh_ign_mode(Esc-<) β moves you to the beginning of history. If you're in search mode, it keeps going πbol(Home,Ctrl-a) β moves the cursor to the beginning of the line πbs[(n)](BackSpace,Ctrl-h) β backspaces n times. The default for n is 1 β¬ οΈcancel(Ctrl-x Ctrl-k) β cancels the current input πdel_back_lineβ deletes the line from the beginning to the cursor π§Ήdel_back_word(Ctrl-w) β deletes the word from the beginning to the cursor π¨del_char [(n)](Delete,Ctrl-d) β deletes n characters from the cursor to the right. The default for n is 1 ποΈdel_forw_line(Ctrl-k) β deletes the line from the cursor to the end πdel_forw_word(Meta-d) β deletes the word from the cursor to the end βοΈdel_line(Ctrl-u) β deletes the entire line π₯enter(Enter,Ctrl-j,Ctrl-m) β performs substitution if it applies and sends the line to fvwm πenter_wo_subst(Meta-Enter) β sends the line to fvwm without any substitution π«Έeohβ moves you to the end of history β©eoh_ign_mode(Esc->) β moves you to the end of history. If you're in search mode, it keeps going πeol(End,Ctrl-e) β moves the cursor to the end of the line πins_char (str)β inserts a string at the cursor π§ins_last_word(Esc-.) β inserts the last argument of the previous command at the cursor πͺins_nth_word(Meta-[1..9]) β inserts the n-th argument of the previous command at the cursor π’list_func(Meta-l) β lists up the available editing functions πnext_char(Right,Ctrl-f) β moves the cursor to the next character β‘οΈnext_line(Down,Ctrl-n) β moves to the next line in history β¬οΈnext_word(Meta-f) β moves the cursor to the next word π¦prefixβ waits for the next character you type for a multi-key binding β³prev_char(Left,Ctrl-b) β moves the cursor to the previous character β¬ οΈprev_line(Up,Ctrl-p) β moves to the previous line in history β¬οΈprev_word(Meta-b) β moves the cursor to the previous word πΎquote(Ctrl-q) β inserts the next character you type into the buffer literally πsearch(Ctrl-s) β searches for a pattern in history π΅οΈsearch_rev(Ctrl-r) β searches for a pattern in history in reverse order πsubst(Meta-s) β substitutes all patterns with strings and reprints the line π. The substitutions aren't nested, and they're performed in the order they were defined.
π οΈ CONFIGURATION π οΈ
The key bindings can be overridden or defined in the fvwm module configuration π
*FvwmConsole: Key \ck prev_line
Non-space character sequences don't need to be quoted. To undefine a binding, just omit the last argument:
*FvwmConsole: Key \ck
heads up: non-meta characters are case sensitive π.\cmeans control key,\emeans escape, and\mis alt key.
FvwmConsole also takes Subst configuration. Y'all input long fvwm commands over and over, so Subst lets you swap a particular input sequence for a string you define π«Ά. Like this:
*FvwmConsole: Subst '^bigx' 'Exec xterm -g 120x60+0+0 -fn 10x20 -fg black -bg lemonchiffon'
Typing bigx<return> in FvwmConsole will launch xterm π. The ^ means beginning of line in a regular expression, so pl in the middle of a command won't get replaced π
. Even though the format looks different, it's a Perl regular expression. It just uses a single or double quote as the delimiter. Single and double quotes work the same, but they have to match, and the quote character can't appear inside the string itself π
.
*FvwmConsole: Subst '^g\s*(\d+)' 'Desk 0 0\nGotoPage 0 $1\nFocus'
Entering g4 or g 4 will jump to desk 0 page 0 4 and focus π§β¨
π¬ INVOCATION π¬
FvwmConsoleC.pl should be invoked by FvwmConsole π
π SEE ALSO π
FvwmConsole(1x), perlre(1) π
π AUTHOR π
Toshi Isogai π«Ά
And that's the whole page, bestie π
Source is 3rd Berkeley Distribution, version 2.7.0, dated 19 October 2022, for FvwmConsoleC.pl(1). Stay iconic ππ
π¦ where this page comes from
- debian bookworm: fvwm 1:2.7.0-2 Β· GPL-2.0-only
- debian trixie: fvwm 1:2.7.0-3 Β· GPL-2.0-or-later
- ubuntu noble: fvwm 1:2.7.0-2build2 Β· GPL-2.0-only
- ubuntu questing: fvwm 1:2.7.0-3
- ubuntu resolute: fvwm 1:2.7.0-3build1 Β· GPL-2.0-or-later
- ubuntu stonking: fvwm 1:2.7.0-3build1 Β· GPL-2.0-or-later
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms