COHERENT manpages
This page displays the COHERENT manpage for ttystat [Get terminal status].
List of available manpages
Index
ttystat -- Command Get terminal status /etc/ttystat [ -d ] port ttystat checks the status of the specified asynchronous port in directory /dev. It normally just returns an exit status that indicates the status of the port. The option -d tells ttystat to print the status of the port on the standard output. Example The following example prints the status of port /dev/com2r: /etc/ttystat -d com2 If /dev/com2r is enabled, ttystat prints: com2r is enabled ttystat finds the port status from the /etc/ttys file. Files /etc/ttys -- Terminal characteristics file See Also commands, disable, enable, ttys Diagnostics ttystat returns one if the port is enabled, or zero if the port is disabled. It returns -2 if an error occurs.