X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Ftermsbr.c;h=f2b0a53e88304e276aff24a5489e064db0e98db4;hp=ce1420c4e2dab0b5b453c1e75532b3e782793c2f;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=337338b404931f06f0db2119c9e145e8ca5a9860 diff --git a/uip/termsbr.c b/uip/termsbr.c index ce1420c..f2b0a53 100644 --- a/uip/termsbr.c +++ b/uip/termsbr.c @@ -1,10 +1,10 @@ /* - * termsbr.c -- termcap support - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** termsbr.c -- termcap support +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include @@ -42,9 +42,9 @@ #endif /* - * These variables are sometimes defined in, - * and needed by the termcap library. - */ +** These variables are sometimes defined in, +** and needed by the termcap library. +*/ #ifdef HAVE_OSPEED # ifdef MUST_DEFINE_OSPEED extern short ospeed; @@ -99,8 +99,8 @@ read_termcap(void) return; /* - * If possible, we let tgetent allocate its own termcap buffer - */ +** If possible, we let tgetent allocate its own termcap buffer +*/ #ifdef TGETENT_ACCEPTS_NULL if (tgetent (NULL, term) != TGETENT_SUCCESS) return; @@ -113,9 +113,11 @@ read_termcap(void) speedcode = cfgetospeed(&tio); #else # ifdef HAVE_TERMIO_H - speedcode = ioctl(fileno(stdout), TCGETA, &tio) != NOTOK ? tio.c_cflag & CBAUD : 0; + speedcode = ioctl(fileno(stdout), TCGETA, &tio) != NOTOK ? + tio.c_cflag & CBAUD : 0; # else - speedcode = ioctl(fileno(stdout), TIOCGETP, (char *) &tio) != NOTOK ? tio.sg_ospeed : 0; + speedcode = ioctl(fileno(stdout), TIOCGETP, (char *) &tio) != NOTOK ? + tio.sg_ospeed : 0; # endif #endif @@ -198,8 +200,8 @@ clear_screen (void) /* - * print in standout mode - */ +** print in standout mode +*/ int SOprintf (char *fmt, ...) { @@ -221,8 +223,8 @@ SOprintf (char *fmt, ...) } /* - * Is this a hardcopy terminal? - */ +** Is this a hardcopy terminal? +*/ int sc_hardcopy(void)