From b6229a61fa4b00bc34914310d3a68cd49f3ea310 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Thu, 24 Apr 1986 06:48:47 -0800 Subject: [PATCH] document distributed with 4.1BSD SCCS-vsn: lib/libcurses/PSD.doc/doc.IV 4.1 --- usr/src/lib/libcurses/PSD.doc/doc.IV | 79 ++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 usr/src/lib/libcurses/PSD.doc/doc.IV diff --git a/usr/src/lib/libcurses/PSD.doc/doc.IV b/usr/src/lib/libcurses/PSD.doc/doc.IV new file mode 100644 index 0000000000..8506207391 --- /dev/null +++ b/usr/src/lib/libcurses/PSD.doc/doc.IV @@ -0,0 +1,79 @@ +.\" Copyright (c) 1980 Regents of the University of California. +.\" All rights reserved. The Berkeley software License Agreement +.\" specifies the terms and conditions for redistribution. +.\" +.\" @(#)doc.IV 4.1 (Berkeley) %G% +.\" +.Ds +.Fd gettmode +.De +Get the tty stats. +This is normally called by +.Fn initscr . +.Ds +.Fd mvcur lasty\*,lastx\*,newy\*,newx +int lasty\*,lastx\*,newy\*,newx; +.De +Moves the terminal's cursor from +.Vn lasty\*,lastx ) ( +to +.Vn newy\*,newx ) ( +in an approximation of optimal fashion. +This routine uses the functions borrowed from +.i ex +version 2.6. +It is possible to use this optimization +without the benefit of the screen routines. +With the screen routines, this should not be called by the user. +.Fn move +and +.Fn refresh +should be used to move the cursor position, +so that the routines know what's going on. +.Ds +.Fd scroll win +WINDOW *win; +.De +Scroll the window upward one line. +This is normally not used by the user. +.Ds +.Fd savetty "" \*m +.sp .5 +.Fd resetty "" \*m +.De +.Fn savetty +saves the current tty characteristic flags. +.Fn resetty +restores them to what +.Fn savetty +stored. +These functions are performed automatically by +.Fn initscr +and +.Fn endwin . +.Ds +.Fd setterm name +char *name; +.De +Set the terminal characteristics to be those of the terminal named +.Vn name . +This is normally called by +.Fn initscr . +.Ds +.Fd tstp +.De +If the new +.b tty (4) +driver is in use, +this function +will save the current tty state +and then put the process to sleep. +When the process gets restarted, +it restores the tty state +and then calls +.Fn wrefresh "" "" curscr +to redraw the screen. +.Fn initscr +sets the signal +SIGTSTP +to trap to this routine. -- 2.20.1