author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 14 Aug 2011 12:10:29 +0300 | |
changeset 926 | 25c9a1591ba1 |
child 929 | 41752712a800 |
permissions | -rw-r--r-- |
926
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
-*- coding: utf-8; -*- |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
Spec. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
===== |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
http://en.wikipedia.org/wiki/C0_and_C1_control_codes |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
7 |
http://en.wikipedia.org/wiki/ECMA-48 |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
ANSI escape sequences |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
9 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
Old hardware terminal. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
====================== |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
12 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
13 |
VT102. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
------ |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
15 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
16 |
VT100 is a video terminal that was made by Digital Equipment Corporation (DEC). It was introduced in |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
17 |
August 1978. Its detailed attributes became the de facto standard for terminal emulators. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
18 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
19 |
The control sequences used by the VT100 family are based on the ANSI X3.64 standard, later ECMA-48 |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
20 |
and ISO/IEC 6429. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
21 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
22 |
The VT101 and VT102 were cost-reduced non-expandable follow-on products, with the VT102 including |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
23 |
the AVO and serial printer port options of the VT100. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
24 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
25 |
In 1983, the VT100 was replaced by the more-powerful VT200 series terminals such as the VT220. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
26 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
27 |
http://en.wikipedia.org/wiki/VT102 |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
28 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
29 |
VT220. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
30 |
------ |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
31 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
32 |
http://en.wikipedia.org/wiki/VT220 |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
33 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
34 |
X window pseudo terminal. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
35 |
========================= |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
36 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
37 |
luit. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
38 |
----- |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
39 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
40 |
Luit is a filter that can be run between an arbitrary application and a UTF-8 |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
41 |
terminal emulator. It will convert application output from the locale's |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
42 |
encoding into UTF-8, and convert terminal input from UTF-8 into the locale's |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
43 |
encoding. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
44 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
45 |
Example:: |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
46 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
47 |
$ luit -encoding 'ISO 8859-1' emacs -nw |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
48 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
49 |
Capture terminal session. |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
50 |
========================= |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
51 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
52 |
Use *script* utility:: |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
53 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
54 |
$ script out.file |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
55 |
sh# .... |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
56 |
^d |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
57 |
$ cat out.file |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
58 |
... |
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
59 |
|
25c9a1591ba1
Capture terminal session.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
60 |