<!doctype html><html><head><title>Module hilbish.editor — Hilbish</title><metacharset=utf-8><metaname=viewportcontent="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><metaname=theme-colorcontent="#ff89dd"><metacontent="/Hilbish/hilbish-flower.png"property="og:image"><metaproperty="og:site_name"content="Hilbish"><metacontent="Module hilbish.editor — Hilbish"property="og:title"><metacontent="interactions for Hilbish's line reader"property="og:description"><metacontent="interactions for Hilbish's line reader"name=description><metaname=revisit-aftercontent="2 days"><metaname=keywordscontent="Lua,Hilbish,Linux,Shell"><metaproperty="og:locale"content="en_GB"><linkrel=canonicalhref=https://rosettea.github.io/Hilbish/><metaproperty="og:url"content="https://rosettea.github.io/Hilbish/"><linkhref=https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.cssrel=stylesheetintegrity=sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVorcrossorigin=anonymous><scriptsrc=https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.jsintegrity=sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2crossorigin=anonymous></script>
<ahref=#functionsclass=heading-link><iclass="fas fa-paperclip"></i></a></h3><table><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><ahref=#editor.getLine>getLine() -> string</a></td><td>Returns the current input line.</td></tr><tr><td><ahref=#editor.getVimRegister>getVimRegister(register) -> string</a></td><td>Returns the text that is at the register.</td></tr><tr><td><ahref=#editor.insert>insert(text)</a></td><td>Inserts text into the Hilbish command line.</td></tr><tr><td><ahref=#editor.getChar>getChar() -> string</a></td><td>Reads a keystroke from the user. This is in a format of something like Ctrl-L.</td></tr><tr><td><ahref=#editor.setVimRegister>setVimRegister(register, text)</a></td><td>Sets the vim register at <code>register</code> to hold the passed text.</td></tr></tbody></table><hr><divid=editor.getLine><h4class=heading>hilbish.editor.getLine() -> string
<ahref=#editor.getLineclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Returns the current input line.</p><h5id=parametersclass=heading>Parameters
<ahref=#parametersclass=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p></div><hr><divid=editor.getVimRegister><h4class=heading>hilbish.editor.getVimRegister(register) -> string
<ahref=#editor.getVimRegisterclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Returns the text that is at the register.</p><h5id=parameters-1class=heading>Parameters
<ahref=#editor.insertclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Inserts text into the Hilbish command line.</p><h5id=parameters-2class=heading>Parameters
<ahref=#editor.getCharclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Reads a keystroke from the user. This is in a format of something like Ctrl-L.</p><h5id=parameters-3class=heading>Parameters
<ahref=#parameters-3class=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p></div><hr><divid=editor.setVimRegister><h4class=heading>hilbish.editor.setVimRegister(register, text)
<ahref=#editor.setVimRegisterclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Sets the vim register at <code>register</code> to hold the passed text.</p><h5id=parameters-4class=heading>Parameters