diff options
| author | Chong Yidong | 2012-11-08 05:04:52 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-11-08 05:04:52 +0800 |
| commit | 4eeba558163dd2812fa984b540a51721b50a211b (patch) | |
| tree | d0d0051c53eeb8c8347105b29ce9eac4078d4678 | |
| parent | 7d806bfec978fbc99c95797e4f236daa44c44007 (diff) | |
| download | emacs-4eeba558163dd2812fa984b540a51721b50a211b.tar.gz emacs-4eeba558163dd2812fa984b540a51721b50a211b.zip | |
* misc.texi (Terminal emulator): Document Term mode faces.
| -rw-r--r-- | doc/emacs/ChangeLog | 2 | ||||
| -rw-r--r-- | doc/emacs/misc.texi | 48 | ||||
| -rw-r--r-- | etc/NEWS | 2 |
3 files changed, 33 insertions, 19 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 5804af2733a..7ffb22daf30 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-11-07 Chong Yidong <cyd@gnu.org> | 1 | 2012-11-07 Chong Yidong <cyd@gnu.org> |
| 2 | 2 | ||
| 3 | * misc.texi (Terminal emulator): Document Term mode faces. | ||
| 4 | |||
| 3 | * mini.texi (Basic Minibuffer): New node. Document | 5 | * mini.texi (Basic Minibuffer): New node. Document |
| 4 | minibuffer-electric-default-mode. | 6 | minibuffer-electric-default-mode. |
| 5 | 7 | ||
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 4f0a1009e30..cac5e8dc9dd 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -1186,30 +1186,39 @@ underlying shell, of course. | |||
| 1186 | @subsection Emacs Terminal Emulator | 1186 | @subsection Emacs Terminal Emulator |
| 1187 | @findex term | 1187 | @findex term |
| 1188 | 1188 | ||
| 1189 | To run a subshell in a terminal emulator, use @kbd{M-x term}. This | 1189 | To run a subshell in a text terminal emulator, use @kbd{M-x term}. |
| 1190 | creates (or reuses) a buffer named @file{*terminal*}, and runs a | 1190 | This creates (or reuses) a buffer named @file{*terminal*}, and runs a |
| 1191 | subshell with input coming from your keyboard, and output going to | 1191 | subshell with input coming from your keyboard, and output going to |
| 1192 | that buffer. | 1192 | that buffer. |
| 1193 | 1193 | ||
| 1194 | @cindex line mode @r{(terminal emulator)} | ||
| 1195 | @cindex char mode @r{(terminal emulator)} | ||
| 1194 | The terminal emulator uses Term mode, which has two input modes. In | 1196 | The terminal emulator uses Term mode, which has two input modes. In |
| 1195 | line mode, Term basically acts like Shell mode (@pxref{Shell Mode}). | 1197 | @dfn{line mode}, Term basically acts like Shell mode (@pxref{Shell |
| 1196 | 1198 | Mode}). In @dfn{char mode}, each character is sent directly to the | |
| 1197 | In char mode, each character is sent directly to the subshell, as | 1199 | subshell, as terminal input; the sole exception is the terminal escape |
| 1198 | ``terminal input''. Any ``echoing'' of your input is the | 1200 | character, which by default is @kbd{C-c} (@pxref{Term Mode}). Any |
| 1199 | responsibility of the subshell. The sole exception is the terminal | 1201 | echoing of your input is the responsibility of the subshell; any |
| 1200 | escape character, which by default is @kbd{C-c} (@pxref{Term Mode}). | 1202 | terminal output from the subshell goes into the buffer, advancing |
| 1201 | Any ``terminal output'' from the subshell goes into the buffer, | 1203 | point. |
| 1202 | advancing point. | ||
| 1203 | 1204 | ||
| 1204 | Some programs (such as Emacs itself) need to control the appearance | 1205 | Some programs (such as Emacs itself) need to control the appearance |
| 1205 | on the terminal screen in detail. They do this by sending special | 1206 | of the terminal screen in detail. They do this by emitting special |
| 1206 | control codes. The exact control codes needed vary from terminal to | 1207 | control codes. Term mode recognizes and handles ANSI-standard |
| 1207 | terminal, but nowadays most terminals and terminal emulators | 1208 | VT100-style escape sequences, which are accepted by most modern |
| 1208 | (including @code{xterm}) understand the ANSI-standard (VT100-style) | 1209 | terminals, including @command{xterm}. (Hence, you can actually run |
| 1209 | escape sequences. Term mode recognizes these escape sequences, and | 1210 | Emacs inside an Emacs Term window.) |
| 1210 | handles each one appropriately, changing the buffer so that the | 1211 | |
| 1211 | appearance of the window matches what it would be on a real terminal. | 1212 | The @code{term-face} face specifies the default appearance of text |
| 1212 | You can actually run Emacs inside an Emacs Term window. | 1213 | in the terminal emulator (the default is the same appearance as the |
| 1214 | @code{default} face). When terminal control codes are used to change | ||
| 1215 | the appearance of text, these are represented in the terminal emulator | ||
| 1216 | by the faces @code{term-color-black}, @code{term-color-red}, | ||
| 1217 | @code{term-color-green}, @code{term-color-yellow} | ||
| 1218 | @code{term-color-blue}, @code{term-color-magenta}, | ||
| 1219 | @code{term-color-cyan}, @code{term-color-white}, | ||
| 1220 | @code{term-color-underline}, and @code{term-color-bold}. | ||
| 1221 | @xref{Faces}. | ||
| 1213 | 1222 | ||
| 1214 | You can also Term mode to communicate with a device connected to a | 1223 | You can also Term mode to communicate with a device connected to a |
| 1215 | serial port. @xref{Serial Terminal}. | 1224 | serial port. @xref{Serial Terminal}. |
| @@ -1224,6 +1233,9 @@ examining your input. But some shells can tell Term what the current | |||
| 1224 | directory is. This is done automatically by @code{bash} version 1.15 | 1233 | directory is. This is done automatically by @code{bash} version 1.15 |
| 1225 | and later. | 1234 | and later. |
| 1226 | 1235 | ||
| 1236 | |||
| 1237 | |||
| 1238 | |||
| 1227 | @node Term Mode | 1239 | @node Term Mode |
| 1228 | @subsection Term Mode | 1240 | @subsection Term Mode |
| 1229 | @cindex Term mode | 1241 | @cindex Term mode |
| @@ -583,7 +583,7 @@ that the sql statement will be terminated by a semicolon. | |||
| 583 | at point, or the Nth column if a numeric prefix argument is given. | 583 | at point, or the Nth column if a numeric prefix argument is given. |
| 584 | 584 | ||
| 585 | ** Term | 585 | ** Term |
| 586 | 586 | +++ | |
| 587 | The variables `term-default-fg-color' and `term-default-bg-color' are | 587 | The variables `term-default-fg-color' and `term-default-bg-color' are |
| 588 | now deprecated in favor of the `term-face' face, that you can | 588 | now deprecated in favor of the `term-face' face, that you can |
| 589 | customize. Also, it is now possible to customize how are displayed the | 589 | customize. Also, it is now possible to customize how are displayed the |