summaryrefslogtreecommitdiff
path: root/usr.bin/tip/tip.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 03:12:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 03:12:29 +0000
commit95f41a9ae474619e43de33821c56a85f414715cf (patch)
treeeb3ce58ea6ccdaad669b142ab07eaa87a1e607f9 /usr.bin/tip/tip.h
parenta3b7a686b1f0e746c512c93cd1f36367834d8f33 (diff)
from netbsd:
Convert to termios (from Scott Reynolds; PR#1621). 8-bit patches (from Matthieu Herrb; PR#1384).
Diffstat (limited to 'usr.bin/tip/tip.h')
-rw-r--r--usr.bin/tip/tip.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.bin/tip/tip.h b/usr.bin/tip/tip.h
index e96946656cb..7591ebf1877 100644
--- a/usr.bin/tip/tip.h
+++ b/usr.bin/tip/tip.h
@@ -1,4 +1,4 @@
-/* $NetBSD: tip.h,v 1.3 1994/12/08 09:31:10 jtc Exp $ */
+/* $NetBSD: tip.h,v 1.4 1995/10/29 00:49:43 pk Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -45,7 +45,7 @@
#include <sys/file.h>
#include <sys/time.h>
-#include <sgtty.h>
+#include <termios.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@@ -241,12 +241,9 @@ extern value_t vtable[]; /* variable table */
#define NOFILE ((FILE *)NULL)
#define NOPWD ((struct passwd *)0)
-struct sgttyb arg; /* current mode of local terminal */
-struct sgttyb defarg; /* initial mode of local terminal */
-struct tchars tchars; /* current state of terminal */
-struct tchars defchars; /* initial state of terminal */
-struct ltchars ltchars; /* current local characters of terminal */
-struct ltchars deflchars; /* initial local characters of terminal */
+struct termios term; /* current mode of terminal */
+struct termios defterm; /* initial mode of terminal */
+struct termios defchars; /* current mode with initial chars */
FILE *fscript; /* FILE for scripting */
@@ -265,6 +262,8 @@ int intflag; /* recognized interrupt */
int stoprompt; /* for interrupting a prompt session */
int timedout; /* ~> transfer timedout */
int cumode; /* simulating the "cu" program */
+int bits8; /* terminal is is 8-bit mode */
+#define STRIP_PAR (bits8 ? 0377 : 0177)
char fname[80]; /* file name buffer for ~< */
char copyname[80]; /* file name buffer for ~> */