Commit | Line | Data |
---|---|---|
f1a4bf13 MH |
1 | .TH SCRIPT 1 8/1/79 |
2 | .UC | |
3 | .SH NAME | |
4 | script \- make typescript of terminal session | |
5 | .SH SYNOPSIS | |
6 | .B script | |
7 | [ | |
8 | .B \-n | |
9 | ] [ | |
10 | .B \-s | |
11 | ] [ | |
12 | .B \-a | |
13 | ] [ | |
14 | .B \-q | |
15 | ] [ | |
16 | .B \-S | |
17 | shell | |
18 | ] [ file ] | |
19 | .SH DESCRIPTION | |
20 | .I Script | |
21 | makes a typescript of everything printed on your terminal. | |
22 | The typescript is saved in a file, and can be sent to the | |
23 | line printer later with | |
24 | .I lpr. | |
25 | If a file name is given, the typescript | |
26 | is saved there. If not, the typescript is saved in the file | |
27 | .I typescript. | |
28 | .PP | |
29 | To exit script, type control D. This sends an end of file to | |
30 | all processes you have started up, and causes script to exit. | |
31 | For this reason, control D behaves as though you had typed an | |
32 | infinite number of control D's. | |
33 | .PP | |
34 | This program is useful when using a crt and a hard-copy | |
35 | record of the dialog is desired, as for a student handing | |
36 | in a program that was developed on a crt when hard-copy | |
37 | terminals are in short supply. | |
38 | .PP | |
39 | The options control what shell is used. | |
40 | .B \-n | |
41 | asks for the new shell, | |
42 | .B \-s | |
43 | asks for the standard shell. | |
44 | .B \-S | |
45 | lets you specify any shell you want. | |
46 | The default depends on the system: /bin/csh is used where possible, | |
47 | otherwise /bin/sh. | |
48 | If the requested shell is not available, | |
49 | .I script | |
50 | uses any shell it can find. | |
51 | .PP | |
52 | The | |
53 | .B \-q | |
54 | flag asks for ``quiet mode'', where the ``script started'' | |
55 | and ``script done'' messages are turned off. | |
56 | The | |
57 | .B \-a | |
58 | flag causes script to append to the typescript file | |
59 | instead of creating a new file. | |
60 | .SH AUTHOR | |
61 | Mark Horton | |
62 | .SH BUGS | |
63 | Since UNIX has no way to write an end-of-file down a pipe without closing | |
64 | the pipe, there is no way to simulate a single control D without | |
65 | ending script. | |
66 | .PP | |
67 | The new shell has its standard input coming | |
68 | from a pipe rather than a tty, so stty will not work, and neither | |
69 | will ttyname. | |
70 | .PP | |
71 | When the user interrupts a printing process, | |
72 | .I script | |
73 | attempts to flush the output backed up in the pipe for better response. | |
74 | Usually the next prompt also gets flushed. | |
75 | .PP | |
76 | The new | |
77 | .IR mpx (2) | |
78 | feature could be used to make script work right. |