aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-11-08 05:04:52 +0800
committerChong Yidong2012-11-08 05:04:52 +0800
commit4eeba558163dd2812fa984b540a51721b50a211b (patch)
treed0d0051c53eeb8c8347105b29ce9eac4078d4678
parent7d806bfec978fbc99c95797e4f236daa44c44007 (diff)
downloademacs-4eeba558163dd2812fa984b540a51721b50a211b.tar.gz
emacs-4eeba558163dd2812fa984b540a51721b50a211b.zip
* misc.texi (Terminal emulator): Document Term mode faces.
-rw-r--r--doc/emacs/ChangeLog2
-rw-r--r--doc/emacs/misc.texi48
-rw-r--r--etc/NEWS2
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 @@
12012-11-07 Chong Yidong <cyd@gnu.org> 12012-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}.
1190creates (or reuses) a buffer named @file{*terminal*}, and runs a 1190This creates (or reuses) a buffer named @file{*terminal*}, and runs a
1191subshell with input coming from your keyboard, and output going to 1191subshell with input coming from your keyboard, and output going to
1192that buffer. 1192that 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
1195line mode, Term basically acts like Shell mode (@pxref{Shell Mode}). 1197@dfn{line mode}, Term basically acts like Shell mode (@pxref{Shell
1196 1198Mode}). In @dfn{char mode}, each character is sent directly to the
1197 In char mode, each character is sent directly to the subshell, as 1199subshell, as terminal input; the sole exception is the terminal escape
1198``terminal input''. Any ``echoing'' of your input is the 1200character, which by default is @kbd{C-c} (@pxref{Term Mode}). Any
1199responsibility of the subshell. The sole exception is the terminal 1201echoing of your input is the responsibility of the subshell; any
1200escape character, which by default is @kbd{C-c} (@pxref{Term Mode}). 1202terminal output from the subshell goes into the buffer, advancing
1201Any ``terminal output'' from the subshell goes into the buffer, 1203point.
1202advancing 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
1205on the terminal screen in detail. They do this by sending special 1206of the terminal screen in detail. They do this by emitting special
1206control codes. The exact control codes needed vary from terminal to 1207control codes. Term mode recognizes and handles ANSI-standard
1207terminal, but nowadays most terminals and terminal emulators 1208VT100-style escape sequences, which are accepted by most modern
1208(including @code{xterm}) understand the ANSI-standard (VT100-style) 1209terminals, including @command{xterm}. (Hence, you can actually run
1209escape sequences. Term mode recognizes these escape sequences, and 1210Emacs inside an Emacs Term window.)
1210handles each one appropriately, changing the buffer so that the 1211
1211appearance of the window matches what it would be on a real terminal. 1212 The @code{term-face} face specifies the default appearance of text
1212You can actually run Emacs inside an Emacs Term window. 1213in the terminal emulator (the default is the same appearance as the
1214@code{default} face). When terminal control codes are used to change
1215the appearance of text, these are represented in the terminal emulator
1216by 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
1215serial port. @xref{Serial Terminal}. 1224serial port. @xref{Serial Terminal}.
@@ -1224,6 +1233,9 @@ examining your input. But some shells can tell Term what the current
1224directory is. This is done automatically by @code{bash} version 1.15 1233directory is. This is done automatically by @code{bash} version 1.15
1225and later. 1234and 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
diff --git a/etc/NEWS b/etc/NEWS
index cbbe17cfccf..fabb4921d52 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -583,7 +583,7 @@ that the sql statement will be terminated by a semicolon.
583at point, or the Nth column if a numeric prefix argument is given. 583at point, or the Nth column if a numeric prefix argument is given.
584 584
585** Term 585** Term
586 586+++
587The variables `term-default-fg-color' and `term-default-bg-color' are 587The variables `term-default-fg-color' and `term-default-bg-color' are
588now deprecated in favor of the `term-face' face, that you can 588now deprecated in favor of the `term-face' face, that you can
589customize. Also, it is now possible to customize how are displayed the 589customize. Also, it is now possible to customize how are displayed the