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

📄 rxvtref.html

📁 rxvt经典的linux下的终端.小巧实用
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</tr><tr> <td> <strong><code>Ps = 18</code></strong> </td> <td> Change colour of bold characters to <strong><code>Pt</code></strong> <br></td>  </tr><tr> <td> <strong><code>Ps = 19</code></strong> </td> <td> Change colour of underlined characters to <strong><code>Pt</code></strong> <br></td>  </tr><tr> <td> <strong><code>Ps = 20</code></strong> </td> <td> Change default background <a href="rxvtRef.html#XPM">pixmap</a> to <strong><code>Pt</code></strong> <br></td>  </tr><tr> <td> <strong><code>Ps = 39</code></strong> </td> <td> Change default foreground colour to <strong><code>Pt</code></strong> <em>rxvt compile-time option</em> <br></td>  </tr><tr> <td> <strong><code>Ps = 46</code></strong> </td> <td> Change Log File to <strong><code>Pt</code></strong> <em>unimplemented</em> <br></td>  </tr><tr> <td> <strong><code>Ps = 49</code></strong> </td> <td> Change default background colour to <strong><code>Pt</code></strong> <em>rxvt compile-time option</em> <br></td>  </tr><tr> <td> <strong><code>Ps = 50</code></strong> </td> <td> Set Font to <strong><code>Pt</code></strong>, with the following special values of <strong><code>Pt</code></strong> (<strong>rxvt</strong>) <br><strong><code>#+n</code></strong> change up <strong><code>n</code></strong> font(s) <br><strong><code>#-n</code></strong> change down <strong><code>n</code></strong> font(s) <br>if <strong><code>n</code></strong> is missing of 0, a value of 1 is used <br><em>empty</em> change to font0 <br><strong><code>n</code></strong> change to font <strong><code>n</code></strong> <br></td>  </tr><tr> <td> <strong><code>Ps = 55</code></strong> </td> <td> Log all scrollback buffer and all of screen to <strong><code>Pt</code></strong> <br></td>  </tr></table>   </dd></dl><a href="rxvtRef.html#toc">Top</a><p><hr><p><br><a name="rxvtRef-menubar.yo"></a>    <a name="menuBar"></a><h2>menuBar</h2>    <p><strong>The exact syntax used is <em>almost</em> solidified.</strong> <br>In the menus, <strong>DON'T</strong> try to use menuBar commands that add or remove amenuBar.<p>Note that in all of the commands, the <strong><em>/path/</em></strong> <em>cannot</em> be omitted:use <strong>./</strong> to specify a menu relative to the current menu.<p><h3>Overview of menuBar operation</h3><p><p>For the menuBar XTerm escape sequence <code>ESC ] 10 ; Pt ST</code>, thesyntax of <code>Pt</code> can be used for a variety of tasks:<dl>    <li ><a href="rxvtRef.html#menuBarCommands">Commands</a>    <li ><a href="rxvtRef.html#menuBarAdd">Adding and accessing menus</a>    <li ><a href="rxvtRef.html#menuBarRemove">Removing menus</a>    <li ><a href="rxvtRef.html#menuBarArrows">Quick Arrows</a>    <li ><a href="rxvtRef.html#menuBarSummary">Command Summary</a></dl><p>At the top level is the current menuBar which is a member of a circularlinked-list of other such menuBars.<p>The menuBar acts as a parent for the various drop-down menus, which in turn,may have labels, separator lines, menuItems and subMenus.<p>The menuItems are the useful bits: you can use them to mimic keyboard inputor even to send text or escape sequences back to rxvt.<p>The menuBar syntax is intended to provide a simple yet robust method ofconstructing and manipulating menus and navigating through the menuBars.<p>The first step is to use the tag <strong>[menu:<em>name</em>]</strong> which creates themenuBar called <em>name</em> and allows access.You may now <a href="rxvtRef.html#menuBarAdd">add</a> or <a href="rxvtRef.html#menuBarRemove">remove</a> menus,subMenus, and menuItems. Finally, use the tag <strong>[done]</strong> to set the menuBaraccess as <strong>readonly</strong> to prevent accidental corruption of the menus.To re-access the current menuBar for alterations, use the tag <strong>[menu]</strong>,make the alterations and then use <strong>[done]</strong><p><a name="menuBarCommands"></a><h3>Commands</h3><p><p><dl>    <dt><strong>[menu:<em>name</em>]</strong></dt><dd>access the named menuBar for creation or alteration. If a new menuBar	is created, it is called <em>name</em> (max of 15 chars) and the current	menuBar is pushed onto the stack</dd><p><dt><strong>[menu]</strong></dt><dd>access the current menuBar for alteration</dd><p><dt><strong>[title:<em>string</em>]</strong></dt><dd>set the current menuBar's title to <em>string</em>, which may contain the	following format specifiers: <br><strong>%%</strong> : literal <strong>%</strong> character <br><strong>%n</strong> : rxvt name (as per the <strong>-name</strong> command-line option) <br><strong>%v</strong> : rxvt version</dd><p><dt><strong>[done]</strong></dt><dd>set menuBar access as <strong>readonly</strong>. <br>End-of-file tag for <strong>[read:<em>file</em>]</strong> operations.</dd><p><dt><strong>[read:<em>file</em>]</strong></dt><dd>read menu commands directly from <em>file</em> (extension ".menu" will be	appended if required.) Start reading at a line with <strong>[menu]</strong> or	<strong>[menu:<em>name</em></strong> and continuing until <strong>[done]</strong> is encountered.<p>Blank and comment lines (starting with <strong>#</strong>) are ignored.	Actually, since any invalid menu commands are also ignored, almost	anything could be construed as a comment line, but this may be	tightened up in the future ... so don't count on it!.</dd><p><dt><strong>[read:<em>file</em>;<em>name</em>]</strong></dt><dd>The same as <strong>[read:<em>file</em>]</strong>, but start reading at a line with	<strong>[menu:<em>name</em>]</strong> and continuing until <strong>[done:<em>name</em>]</strong> or	<strong>[done]</strong> is encountered.</dd><p><dt><strong>[dump]</strong></dt><dd>dump all menuBars to the file <strong>/tmp/rxvt-PID</strong> in a format suitable	for later rereading.</dd><p><dt><strong>[rm:name]<br>[rm] [rm:]<br>[rm*] [rm:*]</strong></dt><dd>remove the named menuBar <br>remove the current menuBar <br>remove all menuBars</dd><p><dt><strong>[swap]</strong></dt><dd>swap the top two menuBars</dd><p><dt><strong>[prev]<br>[next]</strong></dt><dd>access the previous or next menuBar</dd><p><dt><strong>[show]<br>[hide]</strong></dt><dd>control display of the menuBar ... just like	<a href="rxvtRef.html#Priv10">ESC[?10 h/l</a></dd><p><dt><strong>[pixmap:<em>name</em>]<br>[pixmap:<em>name</em>;<em>scaling</em>]</strong></dt><dd>set the background pixmap globally ... just like	<a href="rxvtRef.html#XPM">ESC ] 20 ; Pt ST</a><p><strong>A Future implementation <em>may</em> make this local to the menubar</strong></dd><p><dt><strong>[:<em>command</em>:]</strong></dt><dd>ignore the menu readonly status and issue a <em>command</em> to	<a href="rxvtRef.html#menuBarAdd">Add/Modify</a> or <a href="rxvtRef.html#menuBarRemove">Remove</a> a menu or	menuitem or change the <a href="rxvtRef.html#menuBarArrows">Quick Arrows</a>; a useful	shortcut for setting the quick arrows from a menuBar.</dd></dl><p><a name="menuBarAdd"></a><h3>Adding and accessing menus</h3><p><p>The following commands may also be <strong>+</strong> prefixed.<dl>    <dt><strong>/<br>./<br>../<br>../../</strong></dt><dd>access menuBar top level <br>access current menu level <br>access parent menu (1 level up) <br>access parent menu (multiple levels up)</dd>    <dt><strong><em>/path/</em>menu</strong></dt><dd>add/access menu</dd>    <dt><strong><em>/path/</em>menu/*</strong></dt><dd>add/access menu and clear it if it exists</dd>    <dt><strong><em>/path/</em>{-}</strong></dt><dd>add separator</dd>    <dt><strong><em>/path/</em>{item}</strong></dt><dd>add <strong>item</strong> as a label</dd>    <dt><strong><em>/path/</em>{item} action</strong></dt><dd>add/alter <em>menuitem</em> with an associated <em>action</em></dd>    <dt><strong><em>/path/</em>{item}{right-text}</strong></dt><dd>add/alter <em>menuitem</em> with <strong>right-text</strong> as the right-justified	text and as the associated <em>action</em></dd>    <dt><strong><em>/path/</em>{item}{rtext} action</strong></dt><dd>add/alter <em>menuitem</em> with an associated <em>action</em> and with	<strong>rtext</strong> as the right-justified text.</dd></dl><dl>    <dt>Special characters in <em>action</em> must be backslash-escaped:</dt><dd><strong>\a \b \E \e \n \r \t \octal</strong></dd>    <dt>or in control-character notation:</dt><dd><strong>^@, ^A .. ^Z .. ^_, ^?</strong></dd></dl><p>To send a string starting with a <strong>NUL</strong> (<strong>^@</strong>) character to the program,start <em>action</em> with a pair of <strong>NUL</strong> characters (<strong>^@^@</strong>), the first ofwhich will be stripped off and the balance directed to the program.Otherwise if <em>action</em> begins with <strong>NUL</strong> followed by non-<strong>NUL</strong>characters, the leading <strong>NUL</strong> is stripped off and the balance is sent backto rxvt.<p>As a convenience for the many Emacs-type editors, <em>action</em> may startwith <strong>M-</strong> (eg, <strong>M-$</strong> is equivalent to <strong>\E$</strong>) and a <strong>CR</strong> will beappended if missed from <strong>M-x</strong> commands.<p>As a convenience for issuing XTerm <strong>ESC]</strong> sequences from a menubar(or quick arrow), a <strong>BEL</strong> (<strong>^G</strong>) will be appended if needed.<p><dl>    <dt>For example,</dt><dd><strong>M-xapropos</strong> is equivalent to <strong>\Exapropos\r</strong></dd>    <dt>and</dt><dd><strong>\E]10;mona;100</strong> is equivalent to <strong>\E]10;mona;100\a</strong></dd></dl><p>The option <strong>{<em>right-rtext</em>}</strong> will be right-justified.  In the absence ofa specified action, this text will be used as the <em>action</em> as well.<p><dl>    <dt>For example,</dt><dd><strong>/File/{Open}{^X^F}</strong> is equivalent to <strong>/File/{Open}{^X^F} ^X^F</strong></dd></dl><p>The left label <em>is</em> necessary, since it's used for matching,but implicitly hiding the left label (by using same name for both leftand right labels), or explicitly hiding the left label (by preceedingit with a dot), makes it possible to have right-justified text only.<dl>    <dt>For example,</dt><dd><strong>/File/{Open}{Open} Open-File-Action</strong></dd>    <dt>or hiding it</dt><dd><strong>/File/{.anylabel}{Open} Open-File-Action</strong></dd></dl><p><a name="menuBarRemove"></a><h3>Removing menus</h3><p><p><dl>    <dt><strong>-/*<br>-<em>/path</em>menu<br>-<em>/path</em>{item}<br>-<em>/path</em>{-}</strong></dt><dd>remove all menus from the menuBar, the same as <strong>[clear]</strong><br>remove menu <br>remove item <br>remove separator</dd>    <dt><strong>-/path/menu/*</strong></dt><dd>remove all items, separators and submenus from menu</dd></dl><p><a name="menuBarArrows"></a><h3>Quick Arrows</h3><p><p>The menus also provide a hook for <em>quick arrows</em> to provide easier useraccess. If nothing has been explicitly set, the default is to emulate thecurror keys. The syntax permits each arrow to be altered individually orall four at once without re-entering their common beginning/end text. Forexample, to explicitly associate cursor actions with the arrows, any ofthe following forms could be used:<p><dl>    <dt><strong>&lt;r&gt;<em>Right</em><br>&lt;l&gt;<em>Left</em><br>&lt;u&gt;<em>Up</em><br>&lt;d&gt;<em>Down</em></strong></dt><dd>Define actions for the respective arrow buttons</dd>    <dt><strong>&lt;b&gt;<em>Begin</em><br>&lt;e&gt;<em>End</em></strong></dt><dd>Define common beginning/end parts for <em>quick arrows</em> which used	in conjunction with the above &lt;r&gt; &lt;l&gt; &lt;u&gt; &lt;d&gt; constructs</dd></dl><p><dl>    <dt>For example, define arrows individually,</dt><dd><strong>&lt;u&gt;\E[A <br>&lt;d&gt;\E[B <br>&lt;r&gt;\E[C <br>&lt;l&gt;\E[D</strong></dd>    <dt>or all at once</dt><dd><strong>&lt;u&gt;\E[A&lt;d&gt;\E[B&lt;r&gt;\E[C&lt;l&gt;\E[D</strong></dd>    <dt>or more compactly (factoring out common parts)</dt><dd><strong>&lt;b&gt;\E[&lt;u&gt;A&lt;d&gt;B&lt;r&gt;C&lt;l&gt;D</strong></dd></dl><p><a name="menuBarSummary"></a><h3>Command Summary</h3><p><p>A short summary of the most <em>common</em> commands:<p><dl>    <dt>[menu:name]</dt><dd>use an existing named menuBar or start a new one</dd>    <dt>[menu]</dt><dd>use the current menuBar</dd>    <dt>[title:string]</dt><dd>set menuBar title</dd>    <dt>[done]</dt><dd>set menu access to readonly and, if reading from a file, signal EOF</dd>    <dt>[done:name]</dt><dd>if reading from a file using [read:file;name] signal EOF</dd>    <dt>[rm:name]<br>[rm] [rm:]<br>[rm*] [rm:*]</dt><dd>remove named, current, or all menuBar(s)</dd>    <dt>[swap]</dt><dd>swap top two menuBars</dd>    <dt>[prev]<br>[next]</dt><dd>access the previous/next menuBar</dd>    <dt>[show]<br>[hide]</dt><dd>map/unmap menuBar</dd>    <dt>[pixmap;file]<br>[pixmap;file;scaling]</dt><dd>set a background pixmap</dd>    <dt>[read:file]<br>[read:file;name]</dt><dd>read in a menu from a file</dd>    <dt>[dump]</dt><dd>dump out all menuBars to /tmp/rxvt-PID</dd>    <dt>/</dt><dd>access menuBar top level</dd>    <dt>./<br>../<br>../../</dt><dd>access current or parent menu level</dd>    <dt>/path/menu</dt><dd>add/access menu</dd>    <dt>/path/{-}</dt><dd>add separator</dd>    <dt>/path/{item}{rtext} action</dt><dd>add/alter menu item<br>({rtext} and/or action, may be omitted)</dd>    <dt>-/*</dt><dd>remove all menus from the menuBar</dd>    <dt>-/path/menu</dt><dd>remove menu items, separators and submenus from menu</dd>    <dt>-/path/menu</dt><dd>remove menu</dd>    <dt>-/path/{item}</dt><dd>remove item</dd>    <dt>-/path/{-}</dt><dd>remove separator</dd>    <dt>&lt;b&gt;Begin&lt;r&gt;Right&lt;l&gt;Left&lt;u&gt;Up&lt;d&gt;Down&lt;e&gt;End</dt><dd>menu quick arrows</dd></dl><a href="rxvtRef.html#toc">Top</a><p><hr><p><br><a name="rxvtRef-xpm.yo"></a>    <a name="XPM"></a><h2>XPM</h2>    <p>For the XPM XTerm escape sequence <strong><code>ESC ] 20 ; Pt ST</code></strong> then value of<strong><code>Pt</code></strong> can be the name of the background pixmap followed by a sequence ofscaling/positioning commands separated by semi-colons. The scaling/positioningcommands are as follows:<p><dl>    <dt>query scale/position</dt><dd><strong>?</strong></dd><p><dt>change scale and position</dt><dd><strong>WxH+X+Y</strong><br><strong>WxH+X</strong> (== <strong>WxH+X+X</strong>)<br><strong>WxH</strong> (same as <strong>WxH+50+50</strong>)<br><strong>W+X+Y</strong> (same as <strong>WxW+X+Y</strong>)<br><strong>W+X</strong> (same as <strong>WxW+X+X</strong>)<br><strong>W</strong> (same as <strong>WxW+50+50</strong>)</dd><p><dt>change position (absolute)</dt><dd><strong>=+X+Y</strong><br><strong>=+X</strong> (same as <strong>=+X+Y</strong>)</dd><p><dt>change position (relative)</dt><dd><strong>+X+Y</strong><br><strong>+X</strong> (same as <strong>+X+Y</strong>)</dd><p><dt>rescale (relative)</dt><dd><strong>Wx0</strong> -&gt; <strong>W *= (W/100)</strong><br><strong>0xH</strong> -&gt; <strong>H *= (H/100)</strong></dd></dl><p>For example:<p><dl>    <dt><strong>\E]20;funky\a</strong></dt><dd>load <strong>funky.xpm</strong> as a tiled image</dd><p><dt><strong>\E]20;mona;100\a</strong></dt><dd>load <strong>mona.xpm</strong> with a scaling of 100%</dd><p><dt><strong>\E]20;;200;?\a</strong></dt><dd>rescale the current pixmap to 200% and display the image geometry in the title</dd></dl><a href="rxvtRef.html#toc">Top</a><p><hr><p><br><a name="rxvtRef-mouse.yo"></a>    <a name="Mouse"></a><h2>Mouse Reporting</h2>    <p><dl>    <dt><strong><code>ESC [ M &lt;b&gt; &lt;x&gt; &lt;y&gt;</code></strong></dt><dd>report mouse position</dd></dl>The lower 2 bits of <strong><code>&lt;b&gt;</code></strong> indicate the button:<dl>    <dt>Button = <strong><code>(&lt;b&gt; - SPACE) &amp; 3</code></strong></dt><dd>0 = Button1 pressed <br>1 = Button2 pressed <br>2 = Button3 pressed <br>3 = button released (X11 mouse report)</dd></dl><p>The upper bits of <strong><code>&lt;b&gt;</code></strong> indicate the modifiers when the button waspressed and are added together (X11 mouse report only):<p><dl>    <dt>State = <strong><code>(&lt;b&gt; - SPACE) &amp; 60</code></strong></dt><dd>4 = Shift <br>8 = Meta <br>16 = Control <br>32 = Double Click <em>(Rxvt extension)</em> <br>Col = <strong><code>&lt;x&gt; - SPACE</code></strong> <br>Row = <strong><code>&lt;y&gt; - SPACE</code></strong></dd></dl><a href="rxvtRef.html#toc">Top</a><p><hr><p><br><a name="rxvtRef-graphics.yo"></a>    <a name="Graphics"></a><h2>Special Graphics Mode</h2>    <p>Add more documentation here, <em>if anyone actually cares.</em><p><dl>    <dt><strong><code>ESC G Q</code></strong></dt><dd>query if graphics are available <br>returns: <strong><code>ESC G 0</code></strong> no graphics available <br>returns: <strong><code>ESC G 1</code></strong> graphics available (colour only)</dd><p><dt><strong><code>ESC G W &lt;;x&gt;;&lt;y&gt;;&lt;w&gt;;&lt;h&gt;:</code></strong></dt><dd>create window</dd><p><dt><strong><code>ESC G C &lt;id&gt;</code></strong></dt><dd>clear window</dd><p><dt><strong><code>ESC G G &lt;it&gt;:</code></strong></dt><dd>query window <br>returns: <strong><code>ESC G &lt;id&gt; &lt;x&gt; &lt;y&gt; &lt;w&gt; &lt;h&gt; &lt;fw&gt; &lt;fh&gt; &lt;nw&gt; &lt;nh&gt;</code></strong></dd><p><dt><strong><code>ESC G L &lt;id&gt;</code><br><code>ESC G P &lt;id&gt;</code><br><code>ESC G F &lt;id&gt;</code></strong></dt><dd>start point <br>start line <br>start fill</dd><p><dt><strong><code>;&lt;x&gt;;&lt;y&gt;</code></strong></dt><dd>extend point/line/fill</dd><p><dt><strong><code>ESC G T &lt;id&gt;;&lt;x&gt;;&lt;y&gt;;&lt;mode&gt;;&lt;len&gt;:&lt;text&gt;</code></strong></dt><dd>place text</dd></dl><a href="rxvtRef.html#toc">Top</a><p><hr><p><br><a name="rxvtRef-keycodes.yo"></a>    <a name="KeyCodes"></a><h2>Key Codes</h2>    <p>Note: <strong>Shift</strong> + <strong>F1</strong>-<strong>F10</strong> generates <strong>F11</strong>-<strong>F20</strong><p>For the keypad, use <strong>Shift</strong> to temporarily override Application-Keypadsetting use <strong>Num_Lock</strong> to toggle Application-Keypad setting if <strong>Num_Lock</strong>is off, <a href="rxvtRef.html#ESCequals">escape sequences</a> toggle Application-Keypad setting.Also note that values of <strong>Home</strong>, <strong>End</strong>, <strong>Delete</strong> may have been compileddifferently on your system.<p><table border=1><tr> <td>                 </td> <td> <strong>Normal</strong>      </td> <td> <strong>Shift</strong>       </td> <td> <strong>Control</strong>     </td> <td> <strong>Ctrl+Shift</strong> <br></td>  </tr><tr> <td> Tab             </td> <td> ^I          </td> <td> ESC [ Z     </td> <td> ^I          </td> <td> ESC [ Z <br></td>  </tr><tr> <td> BackSpace       </td> <td> ^H          </td> <td> ^?          </td> <td> ^?          </td> <td> ^? <br></td>  </tr><tr> <td> Find            </td> <td> ESC [ 1 ~   </td> <td> ESC [ 1 $   </td> <td> ESC [ 1 ^   </td> <td> ESC [ 1 @ <br></td>  </tr><tr> <td> Insert          </td> <td> ESC [ 2 ~   </td> <td> <em>paste</em>       </td> <td> ESC [ 2 ^   </td> <td> ESC [ 2 @ <br></td>  </tr><tr> <td> Execute         </td> <td> ESC [ 3 ~   </td> <td> ESC [ 3 $   </td> <td> ESC [ 3 ^   </td> <td> ESC [ 3 @ <br></td>  </tr><tr> <td> Select          </td> <td> ESC [ 4 ~   </td> <td> ESC [ 4 $   </td> <td> ESC [ 4 ^   </td> <td> ESC [ 4 @ <br></td>  </tr><tr> <td> Prior           </td> <td> ESC [ 5 ~   </td> <td> <em>scroll-up</em>   </td> <td> ESC [ 5 ^   </td> <td> ESC [ 5 @ <br></td>  </tr><tr> <td> Next            </td> <td> ESC [ 6 ~   </td> <td> <em>scroll-down</em> </td> <td> ESC [ 6 ^   </td> <td> ESC [ 6 @ <br></td>  </tr><tr> <td> Home            </td> <td> ESC [ 7 ~   </td> <td> ESC [ 7 $   </td> <td> ESC [ 7 ^   </td> <td> ESC [ 7 @ <br></td>  </tr><tr> <td> End             </td> <td> ESC [ 8 ~   </td> <td> ESC [ 8 $   </td> <td> ESC [ 8 ^   </td> <td> ESC [ 8 @ <br></td>  </tr><tr> 

⌨️ 快捷键说明

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