Scoop API

scoop:scoop.terminal:0.1.0

src/event/modes.scoop

Selected production source · src/event/modes.scoop

1package scoop.terminal.event
3import scoop.terminal.Command
5/**
6 * Enables the supported mouse reporting modes, including SGR coordinate reports.
7 */
8public object EnableMouseCapture : 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) {
14 writer.write("\u001b[?1000h\u001b[?1002h\u001b[?1003h\u001b[?1015h\u001b[?1006h")
15 }
18/**
19 * Disables the mouse reporting modes enabled by this library.
20 */
21public object DisableMouseCapture : Command {
22 /**
23 * Writes this command's ANSI representation to the supplied writer without flushing it.
24 * Parameter validation happens before or during serialization.
25 */
26 public override fun writeAnsi(writer: TextWriter) {
27 writer.write("\u001b[?1006l\u001b[?1015l\u001b[?1003l\u001b[?1002l\u001b[?1000l")
28 }
31/**
32 * Requests focus-gained and focus-lost reports.
33 */
34public object EnableFocusChange : Command {
35 /**
36 * Writes this command's ANSI representation to the supplied writer without flushing it.
37 * Parameter validation happens before or during serialization.
38 */
39 public override fun writeAnsi(writer: TextWriter) { writer.write("\u001b[?1004h") }
42/**
43 * Stops focus-change reporting.
44 */
45public object DisableFocusChange : Command {
46 /**
47 * Writes this command's ANSI representation to the supplied writer without flushing it.
48 * Parameter validation happens before or during serialization.
49 */
50 public override fun writeAnsi(writer: TextWriter) { writer.write("\u001b[?1004l") }
53/**
54 * Requests bracketed-paste begin/end delimiters around pasted text.
55 */
56public object EnableBracketedPaste : Command {
57 /**
58 * Writes this command's ANSI representation to the supplied writer without flushing it.
59 * Parameter validation happens before or during serialization.
60 */
61 public override fun writeAnsi(writer: TextWriter) { writer.write("\u001b[?2004h") }
64/**
65 * Stops bracketed-paste reporting.
66 */
67public object DisableBracketedPaste : Command {
68 /**
69 * Writes this command's ANSI representation to the supplied writer without flushing it.
70 * Parameter validation happens before or during serialization.
71 */
72 public override fun writeAnsi(writer: TextWriter) { writer.write("\u001b[?2004l") }