switch quickly between char/line mode