Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4eeba558
Commit
4eeba558
authored
Nov 08, 2012
by
Chong Yidong
Browse files
* misc.texi (Terminal emulator): Document Term mode faces.
parent
7d806bfe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
19 deletions
+33
-19
doc/emacs/ChangeLog
doc/emacs/ChangeLog
+2
-0
doc/emacs/misc.texi
doc/emacs/misc.texi
+30
-18
etc/NEWS
etc/NEWS
+1
-1
No files found.
doc/emacs/ChangeLog
View file @
4eeba558
2012-11-07 Chong Yidong <cyd@gnu.org>
2012-11-07 Chong Yidong <cyd@gnu.org>
* misc.texi (Terminal emulator): Document Term mode faces.
* mini.texi (Basic Minibuffer): New node. Document
* mini.texi (Basic Minibuffer): New node. Document
minibuffer-electric-default-mode.
minibuffer-electric-default-mode.
...
...
doc/emacs/misc.texi
View file @
4eeba558
...
@@ -1186,30 +1186,39 @@ underlying shell, of course.
...
@@ -1186,30 +1186,39 @@ underlying shell, of course.
@subsection Emacs Terminal Emulator
@subsection Emacs Terminal Emulator
@findex term
@findex term
To run a subshell in a terminal emulator, use @kbd{M-x term}.
This
To run a subshell in a
text
terminal emulator, use @kbd{M-x term}.
creates (or reuses) a buffer named @file{*terminal*}, and runs a
This
creates (or reuses) a buffer named @file{*terminal*}, and runs a
subshell with input coming from your keyboard, and output going to
subshell with input coming from your keyboard, and output going to
that buffer.
that buffer.
@cindex line mode @r{(terminal emulator)}
@cindex char mode @r{(terminal emulator)}
The terminal emulator uses Term mode, which has two input modes. In
The terminal emulator uses Term mode, which has two input modes. In
line mode, Term basically acts like Shell mode (@pxref{Shell Mode}).
@dfn{line mode}, Term basically acts like Shell mode (@pxref{Shell
Mode}). In @dfn{char mode}, each character is sent directly to the
In char mode, each character is sent directly to the subshell, as
subshell, as terminal input; the sole exception is the terminal escape
``terminal input''. Any ``echoing'' of your input is the
character, which by default is @kbd{C-c} (@pxref{Term Mode}). Any
responsibility of the subshell. The sole exception is the terminal
echoing of your input is the responsibility of the subshell; any
escape character, which by default is @kbd{C-c} (@pxref{Term Mode}).
terminal output from the subshell goes into the buffer, advancing
Any ``terminal output'' from the subshell goes into the buffer,
point.
advancing point.
Some programs (such as Emacs itself) need to control the appearance
Some programs (such as Emacs itself) need to control the appearance
on the terminal screen in detail. They do this by sending special
of the terminal screen in detail. They do this by emitting special
control codes. The exact control codes needed vary from terminal to
control codes. Term mode recognizes and handles ANSI-standard
terminal, but nowadays most terminals and terminal emulators
VT100-style escape sequences, which are accepted by most modern
(including @code{xterm}) understand the ANSI-standard (VT100-style)
terminals, including @command{xterm}. (Hence, you can actually run
escape sequences. Term mode recognizes these escape sequences, and
Emacs inside an Emacs Term window.)
handles each one appropriately, changing the buffer so that the
appearance of the window matches what it would be on a real terminal.
The @code{term-face} face specifies the default appearance of text
You can actually run Emacs inside an Emacs Term window.
in the terminal emulator (the default is the same appearance as the
@code{default} face). When terminal control codes are used to change
the appearance of text, these are represented in the terminal emulator
by the faces @code{term-color-black}, @code{term-color-red},
@code{term-color-green}, @code{term-color-yellow}
@code{term-color-blue}, @code{term-color-magenta},
@code{term-color-cyan}, @code{term-color-white},
@code{term-color-underline}, and @code{term-color-bold}.
@xref{Faces}.
You can also Term mode to communicate with a device connected to a
You can also Term mode to communicate with a device connected to a
serial port. @xref{Serial Terminal}.
serial port. @xref{Serial Terminal}.
...
@@ -1224,6 +1233,9 @@ examining your input. But some shells can tell Term what the current
...
@@ -1224,6 +1233,9 @@ examining your input. But some shells can tell Term what the current
directory is. This is done automatically by @code{bash} version 1.15
directory is. This is done automatically by @code{bash} version 1.15
and later.
and later.
@node Term Mode
@node Term Mode
@subsection Term Mode
@subsection Term Mode
@cindex Term mode
@cindex Term mode
...
...
etc/NEWS
View file @
4eeba558
...
@@ -583,7 +583,7 @@ that the sql statement will be terminated by a semicolon.
...
@@ -583,7 +583,7 @@ that the sql statement will be terminated by a semicolon.
at point, or the Nth column if a numeric prefix argument is given.
at point, or the Nth column if a numeric prefix argument is given.
** Term
** Term
+++
The variables `term-default-fg-color' and `term-default-bg-color' are
The variables `term-default-fg-color' and `term-default-bg-color' are
now deprecated in favor of the `term-face' face, that you can
now deprecated in favor of the `term-face' face, that you can
customize. Also, it is now possible to customize how are displayed the
customize. Also, it is now possible to customize how are displayed the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment