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
6638d67c
Commit
6638d67c
authored
Mar 27, 2014
by
Glenn Morris
Browse files
Make term-file-aliases into a defcustom; tweaks previous change
parent
95de732d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
20 deletions
+24
-20
doc/lispref/os.texi
doc/lispref/os.texi
+4
-4
lisp/faces.el
lisp/faces.el
+20
-16
No files found.
doc/lispref/os.texi
View file @
6638d67c
...
...
@@ -465,7 +465,7 @@ a normal hook that Emacs runs after initializing a new text terminal.
You
could
use
this
hook
to
define
initializations
for
terminals
that
do
not
have
their
own
libraries
.
@
xref
{
Hooks
}.
@
def
var
term
-
file
-
prefix
@
def
opt
term
-
file
-
prefix
@
cindex
@
env
{
TERM
}
environment
variable
If
the
value
of
this
variable
is
non
-@
code
{
nil
},
Emacs
loads
a
terminal
-
specific
initialization
file
as
follows
:
...
...
@@ -480,14 +480,14 @@ init file if you do not wish to load the
terminal
-
initialization
file
.
On
MS
-
DOS
,
Emacs
sets
the
@
env
{
TERM
}
environment
variable
to
@
samp
{
internal
}.
@
end
def
var
@
end
def
opt
@
def
var
term
-
file
-
aliases
@
def
opt
term
-
file
-
aliases
This
variable
is
an
an
association
list
mapping
terminal
types
to
their
aliases
.
For
example
,
an
element
of
the
form
@
code
{(
"vt102"
.
"vt100"
)}
means
to
treat
a
terminal
of
type
@
samp
{
vt102
}
like
one
of
type
@
samp
{
vt100
}.
@
end
def
var
@
end
def
opt
@
defvar
tty
-
setup
-
hook
This
variable
is
a
normal
hook
that
Emacs
runs
after
initializing
a
...
...
lisp/faces.el
View file @
6638d67c
...
...
@@ -35,6 +35,26 @@ the terminal-initialization file to be loaded."
(
string
:tag
"Name of directory with term files"
))
:group
'terminals
)
(
defcustom
term-file-aliases
'
((
"apollo"
.
"vt100"
)
(
"vt102"
.
"vt100"
)
(
"vt125"
.
"vt100"
)
(
"vt201"
.
"vt200"
)
(
"vt220"
.
"vt200"
)
(
"vt240"
.
"vt200"
)
(
"vt300"
.
"vt200"
)
(
"vt320"
.
"vt200"
)
(
"vt400"
.
"vt200"
)
(
"vt420"
.
"vt200"
)
)
"Alist of terminal type aliases.
Entries are of the form (TYPE . ALIAS), where both elements are strings.
This means to treat a terminal of type TYPE as if it were of type ALIAS."
:type
'
(
alist
:key-type
(
string
:tag
"Terminal"
)
:value-type
(
string
:tag
"Alias"
))
:group
'terminals
:version
"24.5"
)
(
declare-function
xw-defined-colors
"term/common-win"
(
&optional
frame
))
(
defvar
help-xref-stack-item
)
...
...
@@ -2110,22 +2130,6 @@ the above example."
Specifically, `tty-run-terminal-initialization' runs this.
This can be used to fine tune the `input-decode-map', for example."
)
(
defvar
term-file-aliases
'
((
"apollo"
.
"vt100"
)
(
"vt102"
.
"vt100"
)
(
"vt125"
.
"vt100"
)
(
"vt201"
.
"vt200"
)
(
"vt220"
.
"vt200"
)
(
"vt240"
.
"vt200"
)
(
"vt300"
.
"vt200"
)
(
"vt320"
.
"vt200"
)
(
"vt400"
.
"vt200"
)
(
"vt420"
.
"vt200"
)
)
"Alist of terminal type aliases.
Entries are of the form (TYPE . ALIAS), where both elements are strings.
This means to treat a terminal of type TYPE as if it were of type ALIAS."
)
(
defun
tty-run-terminal-initialization
(
frame
&optional
type
run-hook
)
"Run the special initialization code for the terminal type of FRAME.
The optional TYPE parameter may be used to override the autodetected
...
...
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