W3cubDocs

/Dart 2

lineMode property

bool lineMode

Check if line mode is enabled on stdin.

Implementation

external bool get lineMode;
void lineMode= (bool enabled)

Enable or disable line mode on stdin.

If enabled, characters are delayed until a new-line character is entered. If disabled, characters will be available as typed.

Default depends on the parent process, but usually enabled.

On Windows this mode can only be disabled if echoMode is disabled as well.

Implementation

external void set lineMode(bool enabled);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/Stdin/lineMode.html