API to set the text at the prompt

This commit is contained in:
Kovid Goyal
2023-02-15 10:16:25 +05:30
parent 67436a48cd
commit 7223fdaa38
2 changed files with 11 additions and 0 deletions

View File

@@ -258,6 +258,10 @@ func (self *Readline) AllText() string {
return self.all_text()
}
func (self *Readline) SetText(text string) {
self.set_text(text)
}
func (self *Readline) MoveCursorToEnd() bool {
return self.move_to_end()
}