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