xref: /illumos-gate/usr/src/man/man4d/console.4d (revision 42920ac8f798accb1375a7faa38ddefa674abf63)
te
Copyright 1989 AT&T Copyright (c) 1997, Sun Microsystems, Inc.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
CONSOLE 4D "Apr 23, 1999"
NAME
console - STREAMS-based console interface
SYNOPSIS

/dev/console
DESCRIPTION

The file /dev/console refers to the system console device. /dev/console should be used for interactive purposes only. Use of /dev/console for logging purposes is discouraged; syslog(3C) or msglog(4D) should be used instead.

The identity of this device depends on the EEPROM or NVRAM settings in effect at the most recent system reboot; by default, it is the ``workstation console'' device consisting of the workstation keyboard and frame buffer acting in concert to emulate an ASCII terminal (see wscons(4D)).

Regardless of the system configuration, the console device provides asynchronous serial driver semantics so that, in conjunction with the STREAMS line discipline module ldterm(4M), it supports the termio(4I) terminal interface.

SEE ALSO

syslog (3C), termios (3C), msglog (4D), wscons (4D), termio (4I), ldterm (4M)

NOTES

In contrast to pre-SunOS 5.0 releases, it is no longer possible to redirect I/O intended for /dev/console to some other device. Instead, redirection now applies to the workstation console device using a revised programming interface (see wscons(4D)). Since the system console is normally configured to be the work station console, the overall effect is largely unchanged from previous releases.

See wscons(4D) for detailed descriptions of control sequence syntax, ANSI control functions, control character functions and escape sequence functions.