We can now turn to a detailed study of the code in the files “kl.c” (Sheet 80) and “tty.c” (Sheets 81 to 85). We shall look first at “opening” and “closing” terminals as character special files and the handling of interrupts. Then in the next chapter we shall look at the receipt of data from the terminal, and finally transmission of data to the terminal.
“klread” (8062), “klwrite” (8066) and “klsgtty” (8090) have already been discussed above.