-
Notifications
You must be signed in to change notification settings - Fork 0
/
tp.h
104 lines (68 loc) · 2.69 KB
/
tp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{ ****************************************************** unixprim *** }
{ * * }
{ * Terminal handling primitives for local SSMP -- UNIX version * }
{ * * }
{ ******************************************************************* }
{ %% external references converted for 4.2bsd Pascal (SUN) }
{ UINITSCRN -- initialise screen and any associated data structures }
procedure UINITSCRN (var image : imtype;
var mode : modearray);
nonpascal;
{ UENDSCRN -- tidy up for end of session }
procedure UENDSCRN;
nonpascal;
{ USETCURSOR -- set cursor to specified row & col }
procedure USETCURSOR (row : rowtype;
col : coltype);
nonpascal;
{ UERASEROW -- erase specified row, over column range }
procedure UERASEROW (row : rowtype;
cola, colb : coltype);
nonpascal;
{ UROWCOPY -- copy rowa to rowb over column range }
procedure UROWCOPY (rowa, rowb : rowtype;
cola, colb : coltype);
nonpascal;
{ URIGHTSHIFT -- shift row right num characters over column range }
procedure URIGHTSHIFT (row : rowtype;
cola, colb : coltype;
num : integer);
nonpascal;
{ ULEFTSHIFT -- shift row left num characters over column range }
procedure ULEFTSHIFT (row : rowtype;
cola, colb : coltype;
num : integer);
nonpascal;
{ UCHAR -- output character at current cursor position }
procedure UCHAR (ch : isochar);
nonpascal;
{ UALARM -- sound the terminal's alarm bell }
procedure UALARM;
nonpascal;
{ UREAD -- read next character from keyboard }
procedure UREAD (var inchar : isochar);
nonpascal;
{ USETMODE -- tell keyboard drivers about mode array changes }
procedure USETMODE (mode : smallint;
var rc : integer);
nonpascal;
{ UGETSIZE -- get screen sizes }
procedure UGETSIZE (var row : rowtype;
var col : coltype);
nonpascal;
{ UTOKEN -- show token state ("host" light) }
procedure UTOKEN (flag : integer);
nonpascal;
{ USCROLLUP -- scroll region up }
procedure USCROLLUP (rowa, rowb : rowtype;
cola, colb : coltype;
count : integer);
nonpascal;
{ USCROLLDOWN -- scrollregion down }
procedure USCROLLDOWN (rowa, rowb : rowtype;
cola, colb : coltype;
count : integer);
nonpascal;
{ UINTHOST -- interrupt the m/c (this task) }
procedure UINTHOST;
nonpascal;