LineWrap enum Screen Manipulation

An escape code that enables or disables line wrapping.

Inheritance
Implemented types
Available extensions

Values

enable → const LineWrap

Enables line wrapping.

When line wrapping is enabled, text that reaches the right edge of the screen will wrap to the next line. The cursor will move to the next line when it reaches the right edge of the screen.

This is the default behavior.

const LineWrap('h')
disable → const LineWrap

Disables line wrapping.

When line wrapping is disabled, text that reaches the right edge of the screen will not wrap to the next line. The cursor will remain at the right edge of the screen.

This is useful for terminals that do not support line wrapping.

Note

Disabling line wrapping may cause text to be truncated if it reaches the right edge of the screen.

const LineWrap('l')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
writeAnsiString(StringSink out) → void
Write as a UTF-16 ANSI escaped string to the given StringSink.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<LineWrap>
A constant List of the values in this enum, in order of their declaration.