📄 0132-0134.html
字号:
<HTML>
<HEAD>
<TITLE>Linux Complete Command Reference:User Commands:EarthWeb Inc.-</TITLE>
</HEAD>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!-- ISBN=0672311046 //-->
<!-- TITLE=Linux Complete Command Reference//-->
<!-- AUTHOR=Red Hat//-->
<!-- PUBLISHER=Macmillan Computer Publishing//-->
<!-- IMPRINT=Sams//-->
<!-- CHAPTER=01 //-->
<!-- PAGES=0001-0736 //-->
<!-- UNASSIGNED1 //-->
<!-- UNASSIGNED2 //-->
<P><CENTER>
<a href="0131-0131.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0135-0136.html">Next</A></CENTER></P>
<A NAME="PAGENUM-132"><P>Page 132</P></A>
<TABLE>
<TR><TD>
cursorColor (class Foreground)
</TD><TD>
For color displays, sets the color of the window's text cursor.
</TD></TR><TR><TD>
pointerColor (class Foreground)
</TD><TD>
For color displays, sets the color of the window's mouse cursor.
</TD></TR><TR><TD>
geometry (class Geometry)
</TD><TD>
Sets the geometry of the
emacs window.
</TD></TR><TR><TD>
title (class Title)
</TD><TD>
Sets the title of the
emacs window.
</TD></TR><TR><TD>
iconName (class Title)
</TD><TD>
Sets the icon name for the
emacs window icon.
</TD></TR></TABLE>
<P>If you try to set color values while using a black-and-white display, the window's characteristics will default as follows:
The foreground color will be set to black, the background color will be set to white, the border color will be set to gray, and
the text and mouse cursors will be set to black.
</P>
<P><B>
USING THE MOUSE
</B></P>
<P>The following lists the mouse button bindings for the
emacs window under X11.
</P>
<TABLE>
<TR><TD>
Mouse Button
</TD><TD>
Function
</TD></TR><TR><TD>
left
</TD><TD>
Set point.
</TD></TR><TR><TD>
middle
</TD><TD>
Paste text.
</TD></TR><TR><TD>
right
</TD><TD>
Cut text into X cut buffer.
</TD></TR><TR><TD>
Shift+middle
</TD><TD>
Cut text into X cut buffer.
</TD></TR><TR><TD>
Shift+right
</TD><TD>
Paste text.
</TD></TR><TR><TD>
Ctrl+middle
</TD><TD>
Cut text into X cut buffer and kill it.
</TD></TR><TR><TD>
Ctrl+right
</TD><TD>
Select this window, then split it into two windows. Same as typing Ctrl+x 2.
</TD></TR><TR><TD>
Ctrl+Shift+left
</TD><TD>
X buffer menu; hold the buttons and keys down, wait for menu to appear, select buffer,
and release. Move mouse out of menu and release to cancel.
</TD></TR><TR><TD>
Ctrl+Shift+middle
</TD><TD>
X help menu; pop up index card menu for
emacs help.
</TD></TR><TR><TD>
Ctrl+Shift+right
</TD><TD>
Select window with mouse, and delete all other windows. Same as typing Ctrl+x 1.
</TD></TR></TABLE>
<P><B>
MANUALS
</P></B>
<P>You can order printed copies of the GNU Emacs
Manual from the Free Software Foundation, which develops
GNU software. See the file ORDERS for ordering information.
</P>
<P>Your local emacs maintainer might also have copies available. As with all software and publications from FSF, everyone
is permitted to make and distribute copies of the
emacs manual. The TeX source to the manual is also included in the
emacs source distribution.
</P>
<P><B>
FILES
</P></B>
<TABLE>
<TR><TD>
/usr/local/info
</TD><TD>
Files for the info documentation browser (a subsystem of
emacs) to refer to. Currently not much of UNIX is documented here, but
the complete text of the emacs reference manual is included in
a convenient tree structured form.
</TD></TR><TR><TD>
/usr/local/lib/emacs/$VERSION/src
</TD><TD>
C source files and object files.
</TD></TR><TR><TD>
/usr/local/lib/emacs/$VERSION/lisp
</TD><TD>
Lisp source files and compiled files that define most editing
commands. Some are preloaded; others are autoloaded from this
directory when used.
</TD></TR><TR><TD>
/usr/local/lib/emacs/$VERSION/etc
</TD><TD>
Various programs that are used with GNU
emacs, and some files of information.
</TD></TR><TR><TD>
/usr/local/lib/emacs/$VERSION/etc/DOC.*
</TD><TD>
Contains the documentation strings for the Lisp primitives
and preloaded Lisp functions of GNU emacs. They are stored here
to reduce the size of emacs proper.
</TD></TR></TABLE>
<A NAME="PAGENUM-133"><P>Page 133</P></A>
<TABLE>
<TR><TD>
/usr/local/lib/emacs/$VERSION/etc/DIFF
</TD><TD>
Discusses GNU
emacs versus Twenex emacs.
</TD></TR><TR><TD>
/usr/local/lib/emacs/$VERSION/etc/CCADIFF
</TD><TD>
Discusses GNU
emacs versus CCA emacs.
</TD></TR><TR><TD>
/usr/local/lib/emacs/$VERSION/etc/GOSDIFF
</TD><TD>
Discusses GNU
emacs versus Gosling emacs.
</TD></TR><TR><TD>
/usr/local/lib/emacs/$VERSION/etc/SERVICE
</TD><TD>
Lists people offering various services to assist users of GNU
emacs, including education, troubleshooting, porting, and customization.
</TD></TR><TR><TD>
</TD><TD>
These files also have information useful to anyone wanting to
write programs in the emacs Lisp extension language, which has not
yet been fully documented.
</TD></TR><TR><TD>
/usr/local/lib/emacs/lock
</TD><TD>
Holds lock files that are made for all files being modified in
emacs, to prevent simultaneous modification of one file by two users.
</TD></TR><TR><TD>
/usr/local/lib/emacs/$VERSION/$ARCHITECTURE/cpp
</TD><TD>
The GNU cpp, needed for building emacs on certain versions
of UNIX where the standard cpp cannot handle long names for macros.
</TD></TR><TR><TD>
/usr/lib/X11/rgb.txt
</TD><TD>
List of valid X color names.
</TD></TR></TABLE>
<P><B>
BUGS
</P></B>
<P>There is a mailing list,
bug-gnu-emacs@prep.ai.mit.edu on the Internet
(ucbvax!prep.ai.mit.edu!bug-gnu-emacs on UUCPnet), for reporting
emacs bugs and fixes. But before reporting something as a bug, please try to be sure that it really is
a bug, not a misunderstanding or a deliberate feature. We ask you to read the section "Reporting
emacs Bugs" near the end of the reference manual (or
info system) for hints on how and when to report bugs. Also, include the version number of
the emacs you are running in every bug report that you send in.
</P>
<P>Do not expect a personal answer to a bug report. The purpose of reporting bugs is to get them fixed for everyone in the
next release, if possible. For personal assistance, look in the
SERVICE file for a list of people who offer it.
</P>
<P>Please do not send anything but bug reports to this mailing list. Send requests to be added to mailing lists to the special
list info-gnu-emacs-request@prep.ai.mit.edu (or the corresponding UUCP address). For more information about
emacs mailing lists, see the file
/usr/local/emacs/etc/MAILINGLISTS. Bugs tend actually to be fixed if they can be isolated, so it is in
your interest to report them in such a way that they can be easily reproduced.
</P>
<P>One bug that I know about: Shell will not work with programs running in Raw mode on some UNIX versions.
</P>
<P><B>
UNRESTRICTIONS
</B></P>
<P>emacs is free; anyone may redistribute copies of
emacs to anyone under the terms stated in the
emacs General Public License, a copy of which accompanies each copy of
emacs and which also appears in the reference manual.
</P>
<P>Copies of emacs may sometimes be received packaged with distributions of UNIX systems, but it is never included in
the scope of any license covering those systems. Such inclusion violates the terms on which distribution is permitted. In fact,
the primary purpose of the General Public License is to prohibit anyone from attaching any other restrictions to redistribution <BR>
of emacs.
</P>
<P>Richard Stallman encourages you to improve and extend
emacs, and urges that you contribute your extensions to the
GNU library. Eventually GNU (GNU's Not UNIX) will be a complete replacement for Berkeley UNIX. Everyone will be free
to use, copy, study, and change the GNU system.
</P>
<P><B>
SEE ALSO
</B></P>
<P>X(1), xlsfonts(1), xterm(1), xrdb(1)
</P>
<P><B>
AUTHORS
</B></P>
<P>emacs was written by Richard Stallman and the Free Software Foundation. Joachim Martillo and Robert Krawitz added the
X features.
<P>19 April 1994
</P>
<A NAME="PAGENUM-134"><P>Page 134</P></A>
<H3><A NAME="ch01_ 64">
emacstool
</A></H3>
<P>emacstool—Run emacs under Sun windows with function key and mouse support.
</P>
<P><B>
SYNOPSIS
</B></P>
<!-- CODE SNIP //-->
<PRE>
emacstool [{window_args} {-rc run_command_path} args ... ]
</PRE>
<!-- END CODE SNIP //-->
<P><B>
TYPICAL USAGE
</B></P>
<P>In ~/.suntools or ~/.rootmenu, include a line like this:
</P>
<!-- CODE SNIP //-->
<PRE>
"Emacstool" emacstool -WI emacs.icon -f emacstool-init
</PRE>
<!-- END CODE SNIP //-->
<P><B>
DESCRIPTION
</B></P>
<P>emacstool creates a SunView frame and a tty subwindow within which mouse events and function keys are translated
to ASCII sequences that emacs can parse. The translated input events are sent to the process running in the
tty subwindow, which is typically GNU emacs.
emacstool thereby allows GNU emacs users to make full use of the mouse and function
keys. GNU emacs can be loaded with functions to interpret the mouse and function-key events to make a truly fine
screen-oriented editor for the Sun Workstation.
</P>
<P>
<P>
<P>
<P>
<P>
<CENTER>
<TABLE BGCOLOR="#FFFF99">
<TR><TD><B>
NOTE
</B></TD></TR>
<TR><TD>
<BLOCKQUOTE>
GNU emacs has a special interface to the X Window System as well. The X Window System has many technical
advantages, it is an industry standard, and it is also free software. The Free Software Foundation urges you to try X
Windows, and distributes a free copy of X on emacs distribution tapes.
</BLOCKQUOTE></TD></TR>
</TABLE></CENTER>
</P>
<P>Function keys are translated to a sequence of the form
^X*[a-o][lrt]. The last character is l, r, or t, corresponding
to whether the key is among the Left, Right, or Top function keys. The third character indicates which button of the group
was pressed. Thus, the function key in the lower-right corner will transmit the sequence
^X*or. In addition, the [lrt] is affected by the Control, Meta, and Shift keys. Unshifted Ctrl keys will be nonalphabetic: C-l
is [,], C-r is [2], C-t is [4].
</P>
<P>Mouse buttons are encoded as ^X^@([124] x y)\n.
^X^@ is the standard GNU emacs mouse event prefix; it is followed by a
list indicating the button pressed and the character row and column of the point in the window where the mouse cursor is,
and followed by a newline character. In GNU emacs, the
^X^@ dispatches to a mouse event handler which then reads the
following list.
</P>
<P><B>
OPTIONS
</B></P>
<P>emacstool supports all the standard window arguments, including font and icon specifiers.
</P>
<P>By default, emacstool runs the program emacs in the created subwindow. The value of the environment variable
EMACSTOOL can be used to override this if your version of
emacs is not accessible on your search path by the name
emacs. In addition, the run command can be set by the pathname following the last occurrence of the
_rc flag. This is convenient for using emacstool to run on remote machines.
</P>
<P>All other command-line arguments not used by the window system are passed as arguments to the program that runs in
the emacstool window.
</P>
<P>For example,
</P>
<!-- CODE SNIP //-->
<PRE>
local% (emacstool -rc rlogin remote -8 &)&
</PRE>
<!-- END CODE SNIP //-->
<P>will create an emacstool window logged in to a machine named
remote. If emacs is run from this window,
emacstool will encode mouse and function keys, and send them to
rlogin. If emacs is run from this shell on the remote machine, it will
see the mouse and function keys properly. However, since the remote host does not have access to the screen, the cursor
cannot be changed, menus will not appear, and the selection buffer
(STUFF) is limited.
</P>
<P><CENTER>
<a href="0131-0131.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0135-0136.html">Next</A></CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -