Commit | Line | Data |
---|---|---|
70f42d24 KA |
1 | .Ds |
2 | .Fd gettmode | |
3 | .De | |
4 | Get the tty stats. | |
5 | This is normally called by | |
6 | .Fn initscr . | |
7 | .Ds | |
8 | .Fd mvcur lasty\*,lastx\*,newy\*,newx | |
9 | int lasty\*,lastx\*,newy\*,newx; | |
10 | .De | |
11 | Moves the terminal's cursor from | |
12 | .Vn lasty\*,lastx ) ( | |
13 | to | |
14 | .Vn newy\*,newx ) ( | |
15 | in an approximation of optimal fashion. | |
16 | This routine uses the functions borrowed from | |
17 | .i ex | |
18 | version 2.6. | |
19 | It is possible to use this optimization | |
20 | without the benefit of the screen routines. | |
21 | With the screen routines, this should not be called by the user. | |
22 | .Fn move | |
23 | and | |
24 | .Fn refresh | |
25 | should be used to move the cursor position, | |
26 | so that the routines know what's going on. | |
27 | .Ds | |
28 | .Fd scroll win | |
29 | WINDOW *win; | |
30 | .De | |
31 | Scroll the window upward one line. | |
32 | This is normally not used by the user. | |
33 | .Ds | |
34 | .Fd savetty "" \*m | |
35 | .sp .5 | |
36 | .Fd resetty "" \*m | |
37 | .De | |
38 | .Fn savetty | |
39 | saves the current tty characteristic flags. | |
40 | .Fn resetty | |
41 | restores them to what | |
42 | .Fn savetty | |
43 | stored. | |
44 | These functions are performed automatically by | |
45 | .Fn initscr | |
46 | and | |
47 | .Fn endwin . | |
48 | .Ds | |
49 | .Fd setterm name | |
50 | char *name; | |
51 | .De | |
52 | Set the terminal characteristics to be those of the terminal named | |
53 | .Vn name . | |
54 | This is normally called by | |
55 | .Fn initscr . | |
56 | .Ds | |
57 | .Fd tstp | |
58 | .De | |
59 | If the new | |
60 | .b tty (4) | |
61 | driver is in use, | |
62 | this function | |
63 | will save the current tty state | |
64 | and then put the process to sleep. | |
65 | When the process gets restarted, | |
66 | it restores the tty state | |
67 | and then calls | |
68 | .Fn wrefresh "" "" curscr | |
69 | to redraw the screen. | |
70 | .Fn initscr | |
71 | sets the signal | |
72 | SIGTSTP | |
73 | to trap to this routine. |