tac0S
Template Affectional Command Operating System
|
Data structures to simulate the behavior of a terminal I/O device. More...
Go to the source code of this file.
Classes | |
class | Console |
The following class defines a hardware console device. Input and output to the device is simulated by reading and writing to UNIX files ("readFile" and "writeFile"). More... | |
Data structures to simulate the behavior of a terminal I/O device.
The console hardware device is asynchronous. When a character is written to the device, the routine returns immediately, and an interrupt handler is called later when the I/O completes. For reads, an interrupt handler is called when a character arrives.
The user of the device can specify the routines to be called when the read/write interrupts occur. There is a separate interrupt for read and write, and the device is "duplex" – a character can be outgoing and incoming at the same time.
DO NOT CHANGE – part of the machine emulation
Copyright (c) 1992-1993 The Regents of the University of California. All rights reserved. See copyright.h for copyright notice and limitation of liability and disclaimer of warranty provisions.