Scoop API

scoop:scoop.terminal:0.1.0

src/screen/modes.scoop

Selected production source · src/screen/modes.scoop

1package scoop.terminal.screen
3import scoop.terminal.Command
5/**
6 * Enables automatic wrapping at the terminal's right margin.
7 */
8public 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") }
16/**
17 * Disables automatic line wrapping.
18 */
19public 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") }
27/**
28 * Switches to the terminal's alternate screen buffer.
29 */
30public 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") }
38/**
39 * Returns from the alternate screen to the normal screen buffer.
40 */
41public 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") }
49/**
50 * Begins a synchronized terminal presentation update where supported.
51 */
52public 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") }
60/**
61 * Ends a synchronized presentation update.
62 */
63public 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") }