Merge commit 'ad3ad82ad2fb99c424a8482bd1908d08b990ccea'
[unleashed.git] / share / man / man7d / console.7d
blobd372831b92b286f7e223bb92439cb398f2fa8f1e
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1997, Sun Microsystems, Inc.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH CONSOLE 7D "Apr 23, 1999"
7 .SH NAME
8 console \- STREAMS-based console interface
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/dev/console\fR
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 The file \fB/dev/console\fR refers to the system console device.
19 \fB/dev/console\fR should be used for interactive purposes only. Use of
20 \fB/dev/console\fR for logging purposes is discouraged; \fBsyslog\fR(3C) or
21 \fBmsglog\fR(7D) should be used instead.
22 .sp
23 .LP
24 The identity of this device depends on the \fBEEPROM\fR or \fBNVRAM\fR settings
25 in effect at the most recent system reboot; by default, it is the ``workstation
26 console'' device consisting of the workstation keyboard and frame buffer acting
27 in concert to emulate an \fBASCII\fR terminal (see \fBwscons\fR(7D)).
28 .sp
29 .LP
30 Regardless of the system configuration, the console device provides
31 asynchronous serial driver semantics so that, in conjunction with the
32 \fBSTREAMS\fR line discipline module \fBldterm\fR(7M), it supports the
33 \fBtermio\fR(7I) terminal interface.
34 .SH SEE ALSO
35 .sp
36 .LP
37 \fBsyslog\fR(3C), \fBtermios\fR(3C), \fBldterm\fR(7M), \fBtermio\fR(7I),
38 \fBmsglog\fR(7D), \fBwscons\fR(7D)
39 .SH NOTES
40 .sp
41 .LP
42 In contrast to pre-SunOS 5.0 releases, it is no longer possible to redirect I/O
43 intended for \fB/dev/console\fR to some other device. Instead, redirection now
44 applies to the workstation console device using a revised programming interface
45 (see \fBwscons\fR(7D)). Since the system console is normally configured to be
46 the work station console, the overall effect is largely unchanged from previous
47 releases.
48 .sp
49 .LP
50 See \fBwscons\fR(7D) for detailed descriptions of control sequence syntax,
51 \fBANSI\fR control functions, control character functions and escape sequence
52 functions.