SCCS-vsn: usr.bin/window/wwend.c 3.2
SCCS-vsn: usr.bin/window/wwinit.c 3.3
SCCS-vsn: usr.bin/window/ww.h 3.3
SCCS-vsn: usr.bin/window/wwsuspend.c 3.2
SCCS-vsn: usr.bin/window/wwframe.c 3.3
SCCS-vsn: usr.bin/window/ttinit.c 3.4
SCCS-vsn: usr.bin/window/wwredraw.c 3.3
SCCS-vsn: usr.bin/window/tt.h 3.3
SCCS-vsn: usr.bin/window/tth19.c 3.4
SCCS-vsn: usr.bin/window/wwclreol.c 3.4
SCCS-vsn: usr.bin/window/wwdata.c 3.3
SCCS-vsn: usr.bin/window/wwdump.c 3.3
SCCS-vsn: usr.bin/window/wwflush.c 3.3
SCCS-vsn: usr.bin/window/wwinschar.c 3.3
SCCS-vsn: usr.bin/window/wwupdate.c 3.3
SCCS-vsn: usr.bin/window/wwdelchar.c 3.3
SCCS-vsn: usr.bin/window/wwscroll.c 3.2
17 files changed:
- * @(#)tt.h 3.2 83/08/11
+ * @(#)tt.h 3.3 83/08/15
*/
struct tt {
int (*tt_init)();
*/
struct tt {
int (*tt_init)();
- int (*tt_reset)();
- int (*tt_cleanup)();
- int (*tt_move)();
int (*tt_setinsert)();
int (*tt_setmodes)();
int (*tt_setinsert)();
int (*tt_setmodes)();
int (*tt_insline)();
int (*tt_delline)();
int (*tt_delchar)();
int (*tt_insline)();
int (*tt_delline)();
int (*tt_delchar)();
int (*tt_clreol)();
int (*tt_clreos)();
int (*tt_clear)();
int (*tt_clreol)();
int (*tt_clreos)();
int (*tt_clear)();
- int (*tt_window)();
- int (*tt_flash)();
int tt_nrow;
int tt_ncol;
char *tt_frame;
int tt_nrow;
int tt_ncol;
char *tt_frame;
-static char *sccsid = "@(#)tth19.c 3.3 83/08/12";
+static char *sccsid = "@(#)tth19.c 3.4 83/08/15";
/*
kb|h19|heath|h19-b|h19b|heathkit|heath-19|z19|zenith:
/*
kb|h19|heath|h19-b|h19b|heathkit|heath-19|z19|zenith:
-{
- float cpms = (float) wwbaud / 10000; /* char per ms */
-
- h19_msp10c = 10 / cpms; /* ms per 10 char */
-#ifdef notdef
- tt.tt_ILmf = cpms; /* 1 ms */
- tt.tt_ILov = 2;
- tt.tt_ICmf = cpms * 1.5 ; /* 1.5 ms */
- tt.tt_ICov = 2;
- tt.tt_DCmf = 0;
- tt.tt_DCov = 2;
-#endif
- return 0;
-}
-
-h19_reset()
{
SETMODES(0);
SETINSERT(0);
{
SETMODES(0);
SETINSERT(0);
+ float cpms = (float) wwbaud / 10000; /* char per ms */
+
+ h19_msp10c = 10 / cpms; /* ms per 10 char */
tt.tt_setinsert = h19_setinsert;
tt.tt_setmodes = h19_setmodes;
tt.tt_insline = h19_insline;
tt.tt_setinsert = h19_setinsert;
tt.tt_setmodes = h19_setmodes;
tt.tt_insline = h19_insline;
tt.tt_delchar = h19_delchar;
tt.tt_blank = h19_blank;
tt.tt_init = h19_init;
tt.tt_delchar = h19_delchar;
tt.tt_blank = h19_blank;
tt.tt_init = h19_init;
- tt.tt_cleanup = h19_cleanup;
tt.tt_clreol = h19_clreol;
tt.tt_clreos = h19_clreos;
tt.tt_clear = h19_clear;
tt.tt_move = h19_move;
tt.tt_clreol = h19_clreol;
tt.tt_clreos = h19_clreos;
tt.tt_clear = h19_clear;
tt.tt_move = h19_move;
- tt.tt_reset = h19_reset;
tt.tt_write = h19_write;
tt.tt_putc = h19_putc;
tt.tt_ncol = 80;
tt.tt_write = h19_write;
tt.tt_putc = h19_putc;
tt.tt_ncol = 80;
-static char *sccsid = "@(#)ttinit.c 3.3 83/08/15";
+static char *sccsid = "@(#)ttinit.c 3.4 83/08/15";
break;
if (tp->tt_name == 0)
return -1;
break;
if (tp->tt_name == 0)
return -1;
- if ((*tp->tt_func)() < 0)
- return -1;
- return (*tt.tt_init)();
+ return (*tp->tt_func)();
- * @(#)ww.h 3.2 83/08/12
+ * @(#)ww.h 3.3 83/08/15
*/
#include <stdio.h>
#include <sgtty.h>
*/
#include <stdio.h>
#include <sgtty.h>
-static char *sccsid = "@(#)wwclreol.c 3.3 83/08/15";
+static char *sccsid = "@(#)wwclreol.c 3.4 83/08/15";
wwclreol(w, line, col)
struct ww *w;
wwclreol(w, line, col)
struct ww *w;
-static char *sccsid = "@(#)wwdata.c 3.2 83/08/11";
+static char *sccsid = "@(#)wwdata.c 3.3 83/08/15";
struct ww wwhead = {
&wwhead, &wwhead
struct ww wwhead = {
&wwhead, &wwhead
-static char *sccsid = "@(#)wwdelchar.c 3.2 83/08/11";
+static char *sccsid = "@(#)wwdelchar.c 3.3 83/08/15";
wwdelchar(w, line, col)
register struct ww *w;
wwdelchar(w, line, col)
register struct ww *w;
-static char *sccsid = "@(#)wwdump.c 3.2 83/08/11";
+static char *sccsid = "@(#)wwdump.c 3.3 83/08/15";
static char cmap[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
static char cmap[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
-static char *sccsid = "@(#)wwend.c 3.1 83/08/11";
+static char *sccsid = "@(#)wwend.c 3.2 83/08/15";
wwend()
{
(*tt.tt_move)(tt.tt_nrow - 1, 0);
wwend()
{
(*tt.tt_move)(tt.tt_nrow - 1, 0);
fflush(stdout);
(void) wwsettty(0, &wwoldtty);
}
fflush(stdout);
(void) wwsettty(0, &wwoldtty);
}
-static char *sccsid = "@(#)wwflush.c 3.2 83/08/11";
+static char *sccsid = "@(#)wwflush.c 3.3 83/08/15";
-static char *sccsid = "@(#)wwframe.c 3.2 83/08/12";
+static char *sccsid = "@(#)wwframe.c 3.3 83/08/15";
wwframe(w, wframe)
register struct ww *w;
wwframe(w, wframe)
register struct ww *w;
-static char *sccsid = "@(#)wwinit.c 3.2 83/08/12";
+static char *sccsid = "@(#)wwinit.c 3.3 83/08/15";
static char *kp = wwkeys;
extern char _sobuf[];
static char *kp = wwkeys;
extern char _sobuf[];
goto bad;
wwnrow = tt.tt_nrow;
wwncol = tt.tt_ncol;
goto bad;
wwnrow = tt.tt_nrow;
wwncol = tt.tt_ncol;
- (*tt.tt_reset)();
- (*tt.tt_clreos)();
if ((wwsmap = wwalloc(wwnrow, wwncol, sizeof (char))) == 0)
goto bad;
if ((wwsmap = wwalloc(wwnrow, wwncol, sizeof (char))) == 0)
goto bad;
-static char *sccsid = "@(#)wwinschar.c 3.2 83/08/11";
+static char *sccsid = "@(#)wwinschar.c 3.3 83/08/15";
wwinschar(w, line, col, c)
register struct ww *w;
wwinschar(w, line, col, c)
register struct ww *w;
-static char *sccsid = "@(#)wwredraw.c 3.2 83/08/11";
+static char *sccsid = "@(#)wwredraw.c 3.3 83/08/15";
-static char *sccsid = "@(#)wwscroll.c 3.1 83/08/12";
+static char *sccsid = "@(#)wwscroll.c 3.2 83/08/15";
/*
* Scroll down one line, starting at 'line'.
/*
* Scroll down one line, starting at 'line'.
-static char *sccsid = "@(#)wwsuspend.c 3.1 83/08/11";
+static char *sccsid = "@(#)wwsuspend.c 3.2 83/08/15";
#include <signal.h>
#define mask(s) (1 << (s) - 1)
#include <signal.h>
#define mask(s) (1 << (s) - 1)
(void) kill(0, SIGTSTP);
(void) sigblock(mask(SIGTSTP));
(void) wwsettty(0, &wwnewtty);
(void) kill(0, SIGTSTP);
(void) sigblock(mask(SIGTSTP));
(void) wwsettty(0, &wwnewtty);
wwredraw();
(void) sigsetmask(oldmask);
}
wwredraw();
(void) sigsetmask(oldmask);
}
-static char *sccsid = "@(#)wwupdate.c 3.2 83/08/11";
+static char *sccsid = "@(#)wwupdate.c 3.3 83/08/15";