commandline for core

View or modify the current command line input buffer.

Signature

> commandline {flags} (cmd)

Flags

  • --cursor, -c: Set or get the current cursor position
  • --cursor-end, -e: Set the current cursor position to the end of the buffer
  • --append, -a: appends the string to the end of the buffer
  • --insert, -i: inserts the string into the buffer at the cursor position
  • --replace, -r: replaces the current contents of the buffer (default)

Parameters

  • cmd: the string to perform the operation with

Input/output types:

inputoutput
nothingnothing
stringstring

Subcommands:

nametypeusage
commandline editBuiltinModify the current command line input buffer.
commandline get-cursorBuiltinGet the current cursor position.
commandline set-cursorBuiltinSet the current cursor position.