Add canonical mode processing to console I/O.