add getChar support, flush in Lib.print and Lib.println