Explanation for machine/console.cc

Purpose:  This has the routines to simulate a serial port to a console device. A console has input (a keyboard) and output (a display). These are each simulated by operations on UNIX files. The simulated device is asynchronous, so we have to invoke the interrupt handler (after a simulated delay), to signal that a byte has arrived and/or that a written byte has departed.