📄 mrxvt.1
字号:
In case you want to unbind a default keyboard macro, just bind the appropriate key to the function.Sq Ic Dummy .For example.VbMrxvt.macro.Ctrl+Shift+t: Dummy.Vewill disable the default keyboard shortcut.Sq Ctrl+Shift+t .If you want to disable all keyboard macros, use the option.Sq Fl dm(which can also be accessed via a pop-up menu). The default keyboard macros are defined in the system configuration file.Pa /etc/mrxvt/mrxvtrcso if you only want to disable all default shortcuts keys, don't read the system configuration file by using the .Fl nscoption..Pp.Notice that keyboard shortcuts definitions are incompatible with X Windows own resource parsing API, i.e., XGetDefaults. So, to enable the keyboard shortcuts, you will need to enable resources but disable xgetdefault when you configure.Nm Ns ..PpFinally.Sq actionis the action you want bound to the specified macro key. The available actions you can bind to macros are:.\" {{{3 Available macros list.Bl -tag -width 4n -offset 4n.It Ic DummyClear an existing keyboard shortcut.\" ------------------------------------------------------------.It Ic Esc Ar strSend the escape sequence.Ar strto.Nm ..\" ------------------------------------------------------------.It Ic Str Ar strSend the string.Ar strto the child process..\" ------------------------------------------------------------.It Ic Exec Ar commandExecutes.Ar commandasynchronously. The command run without any controlling shell or TTY. This is generally used to launch X11 programs (e.g. open the selected text in firefox). If you want a command run in a new tab, see the.Ic NewTabmacro)..PpThe argument.Ar commandis word split exactly as described in the.Fl blcoption (thus for instance beginning it with .Sq \&!will pass it to.Cd /bin/sh -cfor word splitting and execution). However keep in mind that like all macro arguments,.Ar commandis first.Sq Sy \einterpolated. Thus if on the rare occasion you want.Sq \e\ to be part of.Ar command ,then you will have to do something like.Sq \e\e\e\e\e\e\ and not.Sq \e\e\e\ as you would with the argument of.Fl blc ..\" ------------------------------------------------------------.It Ic NewTab Oo Ar -N Oc Oo Ar \*qtitle\*q Oc Op Oo ! Oc Ns Ar commandOpen a new tab..Ar Nspecifies the profile number. If omitted, profile 0 is used. If only.Sq -(with no number) is specified, then the profile of the current active tab is used (i.e. this can be used to duplicate the current tab)..Ar titleis specified (needs to be double quoted), use that for the tab title. If.Ar commandis specified, execute that command in the new tab (instead of the one specified by the resource file, or the shell)..Pp.Ar commandis word split as described in the.Ic Execmacro. However if command begins with an.So ! Scthen run a shell first, and execute the command in the shell as if the user had typed.Ar commandat the shell prompt. If instead you want.Ar commandto be passed to.Cd /bin/sh -cfor word splitting and execution, then begin.Ar commandwith.Sq \e! ..\" ------------------------------------------------------------.It Ic Close Op Ar NClose a tab. If no argument is specified, close all tabs and exit. If.Ar Nis 0, close the active tab. Otherwise close the.Ar N Ns th tab ..\" ------------------------------------------------------------.It Ic GotoTab Op Ar NGoto tab. If.Ar Nis ommited or 0, then goto the previous active tab. Otherwise goto the.Ar N Ns thtab. If.Ar Nbegins with a.Sq +or.Sq -then.Ar Nis relative to the current tab..\" ------------------------------------------------------------.It Ic MoveTab Ar NMove active tab to position.Ar N .If.Ar Nbegins with a.Sq +or.Sq -then.Ar Nis relative to the current tab..\" ------------------------------------------------------------.It Ic Scroll Ar amountScroll the active tab by.Ar amountlines (negative values mean scroll backward). If.Ar amountends with.Sq pthen scroll.Ar amountpages instead of lines..\" ------------------------------------------------------------.It Ic CopyCopy selection into clipboard (not implemented)..\" ------------------------------------------------------------.It Ic Paste Op Ar selection-bufferPaste selection into active tab. The value.Ar selection-buffer specifies the name of the buffer to be pasted. If not specified the first used buffer in the order PRIMARY, SECONDARY and CLIPBOARD will be used..\" ------------------------------------------------------------.It Ic PasteFile Ar filenamePaste the content of the file specified by .Ar filenameto the currently active tab. This can be used to input text-snippets to a shellor any other terminal based program (i.e. somthing like a bash-profileor sequence of administration commands)..\" ------------------------------------------------------------.It Ic MonitorTab Ar [ACTIVITY|INACTIVITY|AUTO]Monitor the current tab-window for .Ar ACTIVITYor.Ar INACTIVITYor automatically detect the type of monitoring using the .Ar AUTOoption. The amount time which is used to detect the type of monitoring or tab-inactivitycan be specified by the.Ic monitorTimeoutoption. The detection of activity or inactivity is signaled by highlighting the tab of the event and ringingthe system bell. Additionally it is possible to execute a dedicated command using the.Ic monitorCommandoption..\" ------------------------------------------------------------.It Ic ToggleSubwin Op Oo Ar + Ns | Ns Ar - Oc Ns Op Ar b Ns | Ns Ar m Ns | Ns Ar s Ns | Ns Ar tToggle visibility of sub-windows. If the argument begins with a.Sq +the subwindow is shown. If it begins with a.Sq -the subwindow is hidden. Otherwise it is toggled. The letters.Sq Ar b ,.Sq Ar m ,.Sq Ar sand.Sq Ar trepresent the tabbar buttons, menubar, scrollbar and tabbar respectively. NOTE: Currently you can only toggle one subwindow at a time..\" ------------------------------------------------------------.It Ic ResizeFont Oo Ar + Ns | Ns Ar - Oc Ns Ar NResize the font. With Xft,.Ar Nrepresents the size increment of the xft font. Without Xft,.Ar Nrepresents the index of the X11 fonts specified by the.Cm font Ns Ar Nresources..\" ------------------------------------------------------------.It Ic ToggleVeryBoldToggle use of bold font for colored text..\" ------------------------------------------------------------.It Ic ToggleTransparencyToggle pseudo transparency..\" ------------------------------------------------------------.It Ic ToggleBroadcast Op Ar statusIf.Ar statusis omitted or.Sq -1 ,then input broadcasting to all tabs is toggled. If it is.Sq 1 ,input broadcasting is enabled. If it is.Sq 0 ,it is disabled..\" ------------------------------------------------------------.It Ic ToggleHold Op Ar maskIf.Ar maskis not specified, then just close all tabs who's child processes have exited. (This is almost compatible with the behaviour of.Nm0.5.1 and earlier). If.Ar maskis specified, then change the hold status of the current tab..Ar maskmust begin with.Sq Sy + ,.Sq Sy - ,or.Sq Sy \&!and be followed by a bit mask (as in the.Ic holdExitoption)..Sq Sy +will add bits to the.Ic holdExitoption for this tab,.Sq Sy -will subtract, and.Sq Sy \&!will toggle. Remember that if the lowest bit of the current tabs.Ic holdExitoption is set, then the tab will always be held open and everything else will be ignored..\" ------------------------------------------------------------.It Ic ToggleFullscreenToggle between full screen and regular mode. Also enable.Fl Fl smoothResizeto get true full screen. This will only work if you are running an EWMH compatible window manager (e.g. Fvwm / OpenBox / KDE / Gnome)..\" ------------------------------------------------------------.It Ic RaiseRaise the.Nmwindow..\" ------------------------------------------------------------.It Ic SetTitleSet title of active tab to selection. (The selection must be owned by.Nm ).\" ------------------------------------------------------------.It Ic UseFifo Ar statusEnable or disable using a.Xr fifo 1to listen for macros on (see the.Ic useFifooption). The argument.Ar statusshould be.Sy 0 , 1 , -1to disable, enable or toggle respectively..\" ------------------------------------------------------------.It Ic PrintScreen Oo Fl psn Oc Op Ar commandDump screen to printer (or.Ar command ) .If.Fl pis specified, then the output is pretty printed (i.e. escape sequences are used to get the same color in the output as on your screen). If.Fl sis specified, then the entire scroll back is printed (instead of just the current screen). If.Fl nis specified, then every screen line is terminated with a newline char (by default screen lines that wrap to the next line are not terminated with a newline). Finally, if command is specified it is used as the printer pipe (if not the value of.Ic printPipeor the compiled in default is used)..\" ------------------------------------------------------------.It Ic SaveConfig Op Ar filenameSave config to file. If no filename is specified, save to.Pa ~/.mrxvtrc.save ..\" ------------------------------------------------------------.It Ic ToggleMacrosToggle the use of keyboard shortcuts. When macros are disabled (either by using this macro, or by the.Fl dmoption), then this is the only keyboard shortcut that will work. Thus you can re-enable your keyboard shortcuts via the keyboard using this function..\" ------------------------------------------------------------.El.PpAdditionally, the argument to any of the above macros are.Sq Sy \eand.Sq Sy %interpolated as follows:.Pp.Bl -tag -compact -offset 4n -width 8n.It Sy \eaBell.It Sy \ebBackspace.It Sy \eE , \eeEscape.It Sy \enNewline.It Sy \erCarriage return.It Sy \etTab.It Sy \e Ns Ar dddChar with octal ASCII code.Ar ddd ..It Sy ^@ , ^A .. ^Z .. ^_ , ^?Control-@, Control-A ....Pp.It Sy %GGlobal (static) tab number..It Sy %pPID of child process in current tab..It Sy \&%PPID of.Nm.It Sy %nTab number..It Sy % Ns Sy NExpands to.Sq normallyif the process exited normally (e.g. by calling.Xr exit 1 )or.Sq abnormallyotherwise. (Note this is independent of the exit status)..It Sy %sText selected in the.Nmwindow..It Sy %SIf the process in this tab is dead, then it expands to the exit status of the child process. Otherwise left unchanged..It Sy %tTab title..It Sy \&%TTotal number of tabs created in.Nmlifetime..El.Ed.Ss Mouse shortcuts \"{{{2.Bd -filled.Bl -tag -width 4n.It Changing tab titlesThis mouse shortcut can be used to dynamically change the tab title as follows: Select text in the terminal window. Then middle click on a tab to change the tab's title. If you middle click on the tabbar background, then the title of the active tab is changed..It Tab list menuBy default, if you right click on the tab bar, or control-left-click on the terminal window, a popup menu with a list of currently open tabs pops up. The actual menu popped up can be customized as described under the section.Sx MENUS ..It Popup menusIf you Control-click on the terminal window (with any mouse button), it pops up a menu. The actual menu popped up can be customized as described under the section.Sx MENUS ..It Moving tabsClick and drag a tab to some other location on the tab-bar to move it..El.Ed.\"}}}...Sh ESCAPE SEQUENCES \"{{{1...Bd -filledYou have several escape sequences to control.Nm .All default.Xr rxvt 1escape sequences are supported by.Nm .A few extra escape sequences have been added to improve DEC compatibility, and allow interaction with extra.Nmfeatures (e.g. tabs). The supported escape sequences are listed in the file.Pa mrxvt_seq.txtincluded in the distribution..PpFor omissions in the documentation, and a more complete reference to escape sequences you should look at the file.Pa ctlseqs.txtthat comes with the xterm package,.Xr console_codes 4and the original rxvt documentation in the file.Pa rxvtRef.txt ..PpFor basic interaction with.Nm(e.g. changing the tab title etc.) you should also look at the programs.Pa share/scripts/settitle.cand.Pa share/scripts/mrxvtset.plthat are supplied with the.Nmdistribution..Ed...Sh ENVIRONMENT \"{{{1...Bd -filled.Bl -tag -width 4n.It Ev COLORFGBGSet to the terminal foreground and background colors..It Ev COLORTERMSets to the terminal sub-name that indicates its color..It Ev DISPLAYUsed (and set) to the X display bieng used..It Ev PATH_ENVPath to look for menu / background files (see.Fl pathoption)..It Ev TERMSet to the terminal name in the window you have created..It Ev MRXVT_TABTITLESet to the initial tab title of each terminal. Notice that its value will not be altered if the user uses a shortcut or escape sequence to change the tab title. The user must modify it manually after doing that..It Ev WINDOWIDSet to the X window id number of the mrxvt window..El.Ed...Sh FILES \"{{{1...Bd -filledThe actual pathnames given may differ on your system..Bl -tag -width 4n.It Pa default.menuThe default menu file loaded at startup (searched for in your.Fl path ) ..It Pa ~/mrxvtDirectory in which to look for user menu and image files..It Pa ~/.mrxvtrcThis is the default configuration file (since 0.3.9). If present, resources read from this file override existing resources..It Pa ~/.Xdefaults(OBSOLETE) This was the default configuration file (before 0.3.9). If present, resources read from this file override existing resources..It Pa ~/.Xresources(OBSOLETE) If both.Pa .mrxvtrcand.Pa .Xdefaultsare not found, try this one..It Pa /etc/mrxvtSystem wide directory in which to look for user menu and image files..It Pa /etc/mrxvt/default.menuDefault menu file read on startup..It Pa /etc/mrxvt/mrxvtrcSystem wide configuration file. (By default this file only defines the default keyboard macros).It Pa /etc/utmpSystem file for login records..It Pa /usr/lib/X11/rgb.txt Color names..It Pa /usr/X11R6/lib/X11/app-defaults/XTerm(OBSOLETE) If enable xgetdefaults at compiled time, this is the first configuration file read. .El.Ed...Sh BUGS \"{{{1...Ss "Reporting bugs".Bd -filledPlease report bugs using the sourceforge bug tracker system at.Pp.Bd -centered.Ad http://sourceforge.net/projects/materm.Ed.PpAlternately you can send your bug report to the mrxvt developer mailing list at.Pp.Bd -centered.Mt materm-devel@lists.sourceforge.net.Ed.PpBe sure you give us enough details to reproduce the bug ourselves, and check to see if your bug still exists in the current CVS version..Ed.Ss "Known bugs".Bd -filled.Bl -dash -compact -width 2.ItTabs don't work properly when running under Xnest..ItTransparency and tinting are global, not specific to a terminal..ItThe transparentForce option does not work well with all window managers (e.g. OpenBox)..El.Ed...Sh SEE ALSO \"{{{1...Bd -filled.Xr rxvt 1 ,.Xr xterm 1 ,.Xr resize 1 ,.Pa mrxvt_seq.txt ,.Ar Xterm control sequences(this is the file.Pa ctlseqs.msor.Pa ctlseqs.txt ) ,.Xr console_codes 4.Pp.Bd -centered.Ad http://materm.sourceforge.net.Ed.Ed...Sh AUTHORS \"{{{1...An "Terminator" < Ns Mt jimmyzhou@users.sourceforge.net Ns >.An "Gautam Iyer" < Ns Mt gi1242@users.sourceforge.net Ns >.An "Marc Schoechlin" < Ns Mt mschoechlin@users.sourceforge.net Ns >..
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -