More work on readline

This commit is contained in:
Kovid Goyal
2022-10-04 17:56:20 +05:30
parent c8296a44eb
commit 32059dba7e
5 changed files with 107 additions and 0 deletions

View File

@@ -227,6 +227,14 @@ func (self *Loop) ClearToEndOfScreen() {
self.QueueWriteString("\x1b[J")
}
func (self *Loop) StartBracketedPaste() {
self.QueueWriteString(BRACKETED_PASTE.EscapeCodeToSet())
}
func (self *Loop) EndBracketedPaste() {
self.QueueWriteString(BRACKETED_PASTE.EscapeCodeToReset())
}
func (self *Loop) Quit(exit_code int) {
self.exit_code = exit_code
self.keep_going = false