CONSTYPE(1) | General Commands Manual | CONSTYPE(1)

# NAME

constype - print type of Sun console

# SYNOPSIS

constype [ device_name ] [ -num ]

# DESCRIPTION

The constype program writes on the standard output the Sun code for the type of display that the console is. The types output include these:
bw? Black and White, where ? is 1-4. (eg) 3-50s are bw2
cg? Colour Graphics display, where ? is 1-4
gp? Optional Graphics Processor board, where ? is 1-2
ns? Not Sun display — where ? is A-J
This is useful in determining startup values and defaults for window systems.

The device_name argument, if given, is the device to examine. If not given, /dev/fb is used.

The -num option causes constype to follow the type keyword with the numeric value of that type, as returned by the FBIOGATTR or FBIOGTYPE ioctl and defined in fbio.h. This is useful if the type is not recognized by the program.

# EXIT STATUS

The program exits with status 0 if it identified a known console type, 1 if the type was unknown, and 2 if the device could not be opened or another error occurred.

# BUGS

Not tested on all monitor types

# COPYRIGHT

Copyright 1988, SRI

# AUTHOR

Doug Moran <moran@ai.sri.com>

XFree86 | 4.5.0