ISTTYPE(3J) — NEWS-OS Programmer’s Manual
NAME
isttype − check type of a terminal
SYNOPSIS
#include <ttype.h>
int isttype(fd)
int fd;
DESCRIPTION
Isttype retruns the type of the terminal specified by the file descriptor fd. Terminal types are defined as the following:
#define T_NOTTERM−1/∗ not a terminal ∗/
#define T_ASCII 0/∗ not a Kanji terminal ∗/
#define T_SJIS 1/∗ Shift-JIS kanji terminal ∗/
#define T_JIS 2/∗ JIS kanji terminal ∗/
#define T_EUC 3/∗ EUC terminal ∗/
#define T_TCA 4/∗ TCA terminal ∗/
SEE ALSO
NEWS-OSRelease 4.1C