commandline for core

View or modify the current command line input buffer.

Signature

> commandline (cmd) --cursor --cursor-end --append --insert --replace

Parameters

  • cmd: the string to perform the operation with
  • --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)

Input/output types:

inputoutput
nothingnothing
stringstring