line and chars modes