Direct console I/O

I've found a bug: cprintf doesn't seem to handle a newline correctly. It places the cursor in the next line, but doesn't move it to the beginning of the line.

When outputting a newline in the last screen line using one of the conio functions, the screen doesn't scroll. Instead the program behaves erratically and does sometimes crash.

The conio library is different from output done via printf. It was designed primarily for programs using dialogue oriented full screen masks. As a consequence…