Fix issue with consBuf->buf[0] being set to -1 by initializing consoleWait to 0 instead of 1.
Merging changes.