PC/ospeed code ifdefed out, our libtermcap use usleep now

This commit is contained in:
Andrey A. Chernov 1994-10-06 20:41:56 +00:00
parent 4ba0245103
commit 0c51086916
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3390
3 changed files with 6 additions and 2 deletions

View File

@ -34,8 +34,10 @@
*/
/* This should be in <termcap.h> instead. */
#ifndef __FreeBSD__
extern char PC;
extern short ospeed;
#endif
int tgetent __P((char *, char *));
int tgetflag __P((char *));
int tgetnum __P((char *));

View File

@ -241,9 +241,10 @@ set_init()
int settle;
bp = buf;
#ifndef __FreeBSD__
if (tgetstr("pc", &bp) != 0) /* Get/set pad character. */
PC = buf[0];
#endif
#ifdef TAB3
if (oldmode.c_oflag & (TAB3 | ONLCR | OCRNL | ONLRET)) {
oldmode.c_oflag &= (TAB3 | ONLCR | OCRNL | ONLRET);

View File

@ -81,6 +81,7 @@ main(argc, argv)
oldmode = mode;
Ospeed = cfgetospeed(&mode);
#ifndef __FreeBSD__
switch(Ospeed) {
case B0: ospeed = 0; break;
case B50: ospeed = 1; break;
@ -109,7 +110,7 @@ main(argc, argv)
case B115200: ospeed = 17; break;
#endif
}
#endif /* __FreeBSD__ */
if (p = strrchr(*argv, '/'))
++p;
else