⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editrc.5

📁 asterisk 是一个很有知名度开源软件
💻 5
字号:
.\"	$NetBSD: editrc.5,v 1.12 2002/01/15 02:46:44 wiz Exp $.\".\" Copyright (c) 1997-2000 The NetBSD Foundation, Inc..\" All rights reserved..\".\" This file was contributed to The NetBSD Foundation by Luke Mewburn..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"        This product includes software developed by the NetBSD.\"        Foundation, Inc. and its contributors..\" 4. Neither the name of The NetBSD Foundation nor the names of its.\"    contributors may be used to endorse or promote products derived.\"    from this software without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE).\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE.\" POSSIBILITY OF SUCH DAMAGE..\".Dd November 8, 2000.Os.Dt EDITRC 5.Sh NAME.Nm editrc.Nd configuration file for editline library.Sh SYNOPSIS.Nm.Sh DESCRIPTIONThe.Nmfile defines various settings to be used by the.Xr editline 3library..PpThe format of each line is:.Dl [prog:]command [arg [...]].Pp.Ar commandis one of the.Xr editline 3builtin commands.Refer to.Sx BUILTIN COMMANDSfor more information..Pp.Ar progis the program name string that a program defines when it calls.Xr el_init 3to setup.Xr editline 3 ,which is usually.Va argv[0] ..Ar commandwill be executed for any program which matches.Ar prog ..Pp.Ar progmay also be a.Xr regex 3styleregular expression, in which case.Ar commandwill be executed for any program that matches the regular expression..PpIf.Ar progis absent,.Ar commandis executed for all programs..Sh BUILTIN COMMANDSThe.Nm editlinelibrary has some builtin commands, which affect the waythat the line editing and history functions operate.These are based on similar named builtins present in the.Xr tcsh 1shell..PpThe following builtin commands are available:.Bl -tag -width 4n.It Ic bind Xo.Op Fl a.Op Fl e.Op Fl k.Op Fl l.Op Fl r.Op Fl s.Op Fl v.Op Ar key Op Ar command.XcWithout options, list all bound keys, and the editor command to whicheach is bound.If.Ar keyis supplied, show the bindings for.Ar key .If.Ar key commandis supplied, bind.Ar commandto.Ar key .Options include:.Bl -tag -width 4n.It Fl eBind all keys to the standard GNU Emacs-like bindings..It Fl vBind all keys to the standard.Xr vi 1 -likebindings..It Fl aList or change key bindings in the.Xr vi 1mode alternate (command mode) key map..It Fl k.Ar keyis interpreted as a symbolic arrow key name, which may be one of.Sq up ,.Sq down ,.Sq leftor.Sq right ..It Fl lList all editor commands and a short description of each..It Fl rRemove a key's binding..It Fl s.Ar commandis taken as a literal string and treated as terminal input when.Ar keyis typed.Bound keys in.Ar commandare themselves reinterpreted, and this continues for ten levels ofinterpretation..El.Pp.Ar commandmay be one of the commands documented in.Sx "EDITOR COMMANDS"below, or another key..Pp.Ar keyand.Ar commandcan contain control characters of the form.Sm off.Sq No ^ Ar character.Sm on.Poe.g..Sq ^A.Pc ,and the following backslashed escape sequences:.Pp.Bl -tag -compact -offset indent -width 4n.It Ic \eaBell.It Ic \ebBackspace.It Ic \eeEscape.It Ic \efFormfeed.It Ic \enNewline.It Ic \erCarriage return.It Ic \etHorizontal tab.It Ic \evVertical tab.Sm off.It Sy \e Ar nnn.Sm onThe ASCII character corresponding to the octal number.Ar nnn ..El.Pp.Sq \enullifies the special meaning of the following character,if it has any, notably.Sq \eand.Sq ^ ..It Ic echotc Xo.Op Fl sv.Ar arg.Ar ....XcExercise terminal capabilities given in.Ar arg Ar ... .If.Ar argis.Sq baud ,.Sq cols ,.Sq lines ,.Sq rows ,.Sq meta or.Sq tabs ,the value of that capability is printed, with.Dq yesor.Dq noindicating that the terminal does or does not have that capability..Pp.Fl sreturns an emptry string for non-existent capabilities, rather thancausing an error..Fl vcauses messages to be verbose..It Ic edit Op Li on | Li offEnable or disable the.Nm editlinefunctionality in a program..It Ic historyList the history..It Ic telltcList the values of all the terminal capabilities (see.Xr termcap 5 ) ..It Ic settc Ar cap Ar valSet the terminal capability.Ar capto.Ar val ,as defined in.Xr termcap 5 .No sanity checking is done..It Ic setty Xo.Op Fl a.Op Fl d.Op Fl q.Op Fl x.Op Ar +mode.Op Ar -mode.Op Ar mode.XcControl which tty modes that.Nmwon't allow the user to change..Fl d ,.Fl qor.Fl xtells.Ic settyto act on the.Sq edit ,.Sq quoteor.Sq executeset of tty modes respectively; defaulting to.Fl x ..PpWithout other arguments,.Ic settylists the modes in the chosen set which are fixed on.Po.Sq +mode.Pcor off.Po.Sq -mode.Pc ..Fl alists all tty modes in the chosen set regardless of the setting.With.Ar +mode ,.Ar -modeor.Ar mode ,fixes.Ar modeon or off or removes control of.Ar modein the chosen set..El.Sh EDITOR COMMANDSThe following editor commands are available for use in key bindings:.\" Section automatically generated with makelist.Bl -tag -width 4n.It Ic vi-paste-nextVi paste previous deletion to the right of the cursor..It Ic vi-paste-prevVi paste previous deletion to the left of the cursor..It Ic vi-prev-space-wordVi move to the previous space delimited word..It Ic vi-prev-wordVi move to the previous word..It Ic vi-next-space-wordVi move to the next space delimited word..It Ic vi-next-wordVi move to the next word..It Ic vi-change-caseVi change case of character under the cursor and advance one character..It Ic vi-change-metaVi change prefix command..It Ic vi-insert-at-bolVi enter insert mode at the beginning of line..It Ic vi-replace-charVi replace character under the cursor with the next character typed..It Ic vi-replace-modeVi enter replace mode..It Ic vi-substitute-charVi replace character under the cursor and enter insert mode..It Ic vi-substitute-lineVi substitute entire line..It Ic vi-change-to-eolVi change to end of line..It Ic vi-insertVi enter insert mode..It Ic vi-addVi enter insert mode after the cursor..It Ic vi-add-at-eolVi enter insert mode at end of line..It Ic vi-delete-metaVi delete prefix command..It Ic vi-end-wordVi move to the end of the current space delimited word..It Ic vi-to-end-wordVi move to the end of the current word..It Ic vi-undoVi undo last change..It Ic vi-command-modeVi enter command mode (use alternative key bindings)..It Ic vi-zeroVi move to the beginning of line..It Ic vi-delete-prev-charVi move to previous character (backspace)..It Ic vi-list-or-eofVi list choices for completion or indicate end of file if empty line..It Ic vi-kill-line-prevVi cut from beginning of line to cursor..It Ic vi-search-prevVi search history previous..It Ic vi-search-nextVi search history next..It Ic vi-repeat-search-nextVi repeat current search in the same search direction..It Ic vi-repeat-search-prevVi repeat current search in the opposite search direction..It Ic vi-next-charVi move to the character specified next..It Ic vi-prev-charVi move to the character specified previous..It Ic vi-to-next-charVi move up to the character specified next..It Ic vi-to-prev-charVi move up to the character specified previous..It Ic vi-repeat-next-charVi repeat current character search in the same search direction..It Ic vi-repeat-prev-charVi repeat current character search in the opposite search direction..It Ic em-delete-or-listDelete character under cursor or list completions if at end of line..It Ic em-delete-next-wordCut from cursor to end of current word..It Ic em-yankPaste cut buffer at cursor position..It Ic em-kill-lineCut the entire line and save in cut buffer..It Ic em-kill-regionCut area between mark and cursor and save in cut buffer..It Ic em-copy-regionCopy area between mark and cursor to cut buffer..It Ic em-gosmacs-trasposeExchange the two characters before the cursor..It Ic em-next-wordMove next to end of current word..It Ic em-upper-caseUppercase the characters from cursor to end of current word..It Ic em-capitol-caseCapitalize the characters from cursor to end of current word..It Ic em-lower-caseLowercase the characters from cursor to end of current word..It Ic em-set-markSet the mark at cursor..It Ic em-exchange-markExchange the cursor and mark..It Ic em-universal-argumentUniversal argument (argument times 4)..It Ic em-meta-nextAdd 8th bit to next character typed..It Ic em-toggle-overwriteSwitch from insert to overwrite mode or vice versa..It Ic em-copy-prev-wordCopy current word to cursor..It Ic em-inc-search-nextEmacs incremental next search..It Ic em-inc-search-prevEmacs incremental reverse search..It Ic ed-end-of-fileIndicate end of file..It Ic ed-insertAdd character to the line..It Ic ed-delete-prev-wordDelete from beginning of current word to cursor..It Ic ed-delete-next-charDelete character under cursor..It Ic ed-kill-lineCut to the end of line..It Ic ed-move-to-endMove cursor to the end of line..It Ic ed-move-to-begMove cursor to the beginning of line..It Ic ed-transpose-charsExchange the character to the left of the cursor with the one under it..It Ic ed-next-charMove to the right one character..It Ic ed-prev-wordMove to the beginning of the current word..It Ic ed-prev-charMove to the left one character..It Ic ed-quoted-insertAdd the next character typed verbatim..It Ic ed-digitAdds to argument or enters a digit..It Ic ed-argument-digitDigit that starts argument..It Ic ed-unassignedIndicates unbound character..It Ic ed-tty-sigintTty interrupt character..It Ic ed-tty-dsuspTty delayed suspend character..It Ic ed-tty-flush-outputTty flush output characters..It Ic ed-tty-sigquitTty quit character..It Ic ed-tty-sigtstpTty suspend character..It Ic ed-tty-stop-outputTty disallow output characters..It Ic ed-tty-start-outputTty allow output characters..It Ic ed-newlineExecute command..It Ic ed-delete-prev-charDelete the character to the left of the cursor..It Ic ed-clear-screenClear screen leaving current line at the top..It Ic ed-redisplayRedisplay everything..It Ic ed-start-overErase current line and start from scratch..It Ic ed-sequence-lead-inFirst character in a bound sequence..It Ic ed-prev-historyMove to the previous history line..It Ic ed-next-historyMove to the next history line..It Ic ed-search-prev-historySearch previous in history for a line matching the current..It Ic ed-search-next-historySearch next in history for a line matching the current..It Ic ed-prev-lineMove up one line..It Ic ed-next-lineMove down one line..It Ic ed-commandEditline extended command..El.\" End of section automatically generated with makelist.Sh SEE ALSO.Xr editline 3 ,.Xr regex 3 ,.Xr termcap 5.Sh AUTHORSThe.Nm editlinelibrary was written by Christos Zoulas,and this manual was written by Luke Mewburn,with some sections inspired by.Xr tcsh 1 .

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -