scoop:scoop.terminal:0.1.0
src/event/modes.scoop
Selected production source · src/event/modes.scoop
1
package scoop.terminal.event3
import scoop.terminal.Command5
/**6
* Enables the supported mouse reporting modes, including SGR coordinate reports.7
*/8
public 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
}16
}18
/**19
* Disables the mouse reporting modes enabled by this library.20
*/21
public 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
}29
}31
/**32
* Requests focus-gained and focus-lost reports.33
*/34
public 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") }40
}42
/**43
* Stops focus-change reporting.44
*/45
public 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") }51
}53
/**54
* Requests bracketed-paste begin/end delimiters around pasted text.55
*/56
public 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") }62
}64
/**65
* Stops bracketed-paste reporting.66
*/67
public 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") }73
}