scoop:scoop.terminal:0.1.0
src/screen/modes.scoop
Selected production source · src/screen/modes.scoop
1
package scoop.terminal.screen3
import scoop.terminal.Command5
/**6
* Enables automatic wrapping at the terminal's right margin.7
*/8
public object EnableLineWrap : Command {9
/**10
* Writes this command's ANSI representation to the supplied writer without flushing it.11
* Parameter validation happens before or during serialization.12
*/13
public override fun writeAnsi(writer: TextWriter) { writer.write("\u001b[?7h") }14
}16
/**17
* Disables automatic line wrapping.18
*/19
public object DisableLineWrap : Command {20
/**21
* Writes this command's ANSI representation to the supplied writer without flushing it.22
* Parameter validation happens before or during serialization.23
*/24
public override fun writeAnsi(writer: TextWriter) { writer.write("\u001b[?7l") }25
}27
/**28
* Switches to the terminal's alternate screen buffer.29
*/30
public object EnterAlternateScreen : Command {31
/**32
* Writes this command's ANSI representation to the supplied writer without flushing it.33
* Parameter validation happens before or during serialization.34
*/35
public override fun writeAnsi(writer: TextWriter) { writer.write("\u001b[?1049h") }36
}38
/**39
* Returns from the alternate screen to the normal screen buffer.40
*/41
public object LeaveAlternateScreen : Command {42
/**43
* Writes this command's ANSI representation to the supplied writer without flushing it.44
* Parameter validation happens before or during serialization.45
*/46
public override fun writeAnsi(writer: TextWriter) { writer.write("\u001b[?1049l") }47
}49
/**50
* Begins a synchronized terminal presentation update where supported.51
*/52
public object BeginSynchronizedUpdate : Command {53
/**54
* Writes this command's ANSI representation to the supplied writer without flushing it.55
* Parameter validation happens before or during serialization.56
*/57
public override fun writeAnsi(writer: TextWriter) { writer.write("\u001b[?2026h") }58
}60
/**61
* Ends a synchronized presentation update.62
*/63
public object EndSynchronizedUpdate : Command {64
/**65
* Writes this command's ANSI representation to the supplied writer without flushing it.66
* Parameter validation happens before or during serialization.67
*/68
public override fun writeAnsi(writer: TextWriter) { writer.write("\u001b[?2026l") }69
}