SIOC(1A) MISC. REFERENCE MANUAL PAGES SIOC(1A)
NAME
sioc - invoke SIOC ioctl functions
SYNOPSIS
/usr/amiga/bin/sioc [function [args]]
DESCRIPTION
sioc performs an ioctl(2) operation on its standard input.
The default ioctl command is "SIOC", which returns success
if the connected file is a screen device (see screen(7A)).
This can be used with the if shell builtin in a shell script
to conditionalize special treatment of amiga screens. The
following values for the function argument are allowed:
0 Issue an SIOC command. Exit status indicates return
value. (This function is the default if no function is
specified)
front
Issue an SIOCFRONT command.
back Issue an SIOCBACK command.
activate
Issue an SIOCACTIVATE command.
getkmap
Issue an SIOCGETKMAP command. A keymap file (see
kmap(7A)) is written to the standard output.
setkmap
Issue an SIOCSETKMAP command. If an the name of a
valid keymap file is given, the file is read and used
as the argument to SIOCSETKMAP, otherwise zero is used,
selecting the default keymap.
setdefkmap
Issue an SIOCSETDEFKMAP command. If an the name of a
valid keymap file is given, the file is read and used
as the argument to SIOCSETDEFKMAP, otherwise zero is
used, setting the default keymap to the inital powerup
default.
winsize
Issue an SIOCWINSIZE command. The results are written
to standard output in the form:
LINES=25 COLUMNS=80
PLINES=200 PCOLUMNS=640
getfont
Issue an SIOCGETFONT command. A font file (see
Amiga Unix Last change: PRELIMINARY 1
SIOC(1A) MISC. REFERENCE MANUAL PAGES SIOC(1A)
font(7A)) is written to the standard output.
setfont
Issue an SIOCSETFONT command. If an the name of a
valid font file is given, the file is read and used as
the argument to SIOCSETFONT, otherwise zero is used,
selecting the default font.
setdeffont
Issue an SIOCSETDEFFONT command. If an the name of a
valid font file is given, the file is read and used as
the argument to SIOCSETDEFFONT, otherwise zero is used,
setting the default font to the inital powerup default.
gettype
Issue an SIOCGETTYPE comand and print to standard out-
put various parameters from the result.
displaytype
Issue an SIOCDISPLAYTYPE comand and print the result in
hexadecimal.
setdisplaytype
Issue an SIOCSETDISPLAYTYPE comand. One argument must
be provided which is either a number for an absolute
setting of displaytype, or a number preceded by `+' or
`-' to set or reset the corresponding bits of display-
type.
setgroup
Issue an SIOCSETGROUP comand. The argument is the
numeric screen group number.
getgroup
Issue an SIOCGETGROUP comand. The result is printed in
decimal.
setdisplayadjust
Issue an SIOCSETDISPLAYADJUST comand. Four arguments
must be provided.
getdisplayadjust
Issue an SIOCGETDISPLAYADJUST comand and print the
results.
DIAGNOSTICS
sioc's exit status indicates the success or failure of the
ioctl call. An appropriate message is written to standard
error output on failure.
FILES
/usr/amiga/lib/kmap/ - directory where keymap files are
Amiga Unix Last change: PRELIMINARY 2
SIOC(1A) MISC. REFERENCE MANUAL PAGES SIOC(1A)
stored
/usr/amiga/lib/font/ - directory where font files are stored
/etc/rc2.d/S70sioc - boot time configuration of display
options.
SEE ALSO
kmap(5A), font(5A), screen(7A), console(7A).
WARNING
The "named" function arguments are prefered, as the numeric
forms may change or disappear in future releases.
Amiga Unix Last change: PRELIMINARY 3