4 \- run emacs under Sun windows with function-key and mouse support.
7 [{window_args} {-rc run_command_path} args ... ]
9 In ~/.suntools or ~/.rootmenu include a line like this:
11 "Emacstool" emacstool -WI emacs.icon -f emacstool-init
14 creates a SunView frame and a tty subwindow within which mouse events
15 and function keys are translated to ASCII sequences which Emacs can
16 parse. The translated input events are sent to the process running in
17 the tty subwindow, which is typically GNU Emacs. Emacstool thereby
18 allows GNU Emacs users to make full use of the mouse and function keys.
19 GNU Emacs can be loaded with functions to interpret the mouse and
20 function-key events to make a truly fine screen oriented editor for
23 (Note that GNU Emacs has a special interface to the X window system as
24 well. The X window system has many technical advantages, it is an
25 industry standard, and it is also free software. The Free Software
26 Foundation urges you to try X windows, and distributes a free copy of
27 X on Emacs distribution tapes.)
29 Function keys are translated to a sequence of the form
30 `^X*[a-o][lrt]'. The last character is `l', `r', or `t' corresponding
31 to whether the key is among the Left, Right, or Top function keys.
32 The third character indicates which button of the group
33 was pressed. Thus, the function key in the lower right corner will
34 transmit the sequence `^X*or'. In addition, the [lrt] is affected by
35 the Control, Meta, and Shift keys. Unshifted Control keys will be
36 non-alphabetic: C-l is [,], C-r is [2], C-t is [4].
38 Mouse buttons are encoded as `^X^@([124] x y)\\n'. ^X^@ is the
39 standard GNU Emacs mouse event prefix, it is followed by a list
40 indicating the button pressed and the character row and column of the
41 point in the window where the mouse cursor is, and followed by a
42 newline character. In GNU Emacs, the ^X^@ dispatches to a
43 mouse event handler which then reads the following list.
46 supports all the standard window arguments, including font and icon
49 By default, Emacstool runs the program
51 in the created subwindow.
52 The value of the environment variable
54 can be used to override this if your version of
56 is not accessible on your search path by the name
58 In addition, the run command can be set by the
60 following the last occurrence of the
63 This is convenient for using Emacstool to run on remote machines.
65 All other command line arguments not used by the window system are passed
66 as arguments to the program that runs in the Emacstool window.
70 local% (emacstool -rc rlogin remote -8 &)&
72 will create an Emacstool window logged in to a machine named
74 If Emacs is run from this window,
75 Emacstool will encode mouse and function keys, and send them to rlogin.
76 If Emacs is run from this shell on the remote machine, it will see
77 the mouse and function keys properly.
78 However, since the remote host does not have access to the screen,
79 the cursor cannot be changed, menus will not appear, and the selection
80 buffer (STUFF) is limited.
81 .SH Using With GNU Emacs:
88 provide emacs support for the Emacstool and function keys.
89 Emacstool will automatically set the TERM environment variable to be "sun"
90 and unset the environment variable TERMCAP. That is, these variables will
91 not be inherited from the shell that starts Emacstool.
92 Since the terminal type is
94 (that is, the environment variable TERM is set to
96 Emacs will automatically load the file lisp/term/sun.
97 This, in turn, will ensure that sun-mouse.el is autoloaded when any mouse
98 events are detected. It is suggested that
102 be loaded in your site-init.el file, so that they will always be loaded
103 when running on a Sun workstation.
105 In addition, Emacstool sets the environment variable IN_EMACSTOOL = "t".
106 Lisp code in your ~/.emacs can use (getenv "IN_EMACSTOOL")
107 to determine whether to do Emacstool specific initialization.
108 Sun.el uses this to automatically call emacstool-init (getenv "IN_EMACSTOOL")
111 The file src/sunfns.c defines several useful functions for emacs on
112 the Sun. Among these are procedures to pop-up SunView
114 put and get from the SunView
116 buffer, and a procedure for changing the cursor
118 If you want to define or edit cursor icons,
119 there is a rudimentary mouse driven icon editor in the file
120 lisp/sun-cursors.el. Try invoking (sc:edit-cursor)
122 It takes a few milliseconds to create a menu before it pops up.
123 .SH ENVIRONMENT VARIABLES
139 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
141 Permission is granted to make and distribute verbatim copies of this
142 document provided the copyright notice and this permission notice are
143 preserved on all copies.
145 Permission is granted to copy and distribute modified versions of
146 this document under the conditions for verbatim copying, provided that
147 the entire resulting derived work is distributed under the terms of
148 a permission notice identical to this one.
150 Permission is granted to copy and distribute translations of this
151 document into another language, under the above conditions for
152 modified versions, except that this permission notice may be stated
153 in a translation approved by the Free Software Foundation.
155 .\" arch-tag: a1f44815-5163-4026-89c1-4404e4b81d37