/*
- * 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 <h/mh.h>
#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;
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;
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
/*
- * print in standout mode
- */
+** print in standout mode
+*/
int
SOprintf (char *fmt, ...)
{
}
/*
- * Is this a hardcopy terminal?
- */
+** Is this a hardcopy terminal?
+*/
int
sc_hardcopy(void)