Changes
- Allow to control terminal using Lua scripts via APC vt-sequences.
The built-in terminal is now capable of executing Lua scripts received via APC (Application Program Command) vt-sequences.
APC vt-sequence format:
ESC _ <script body> ESC \
or
ESC _ <script body> BEL
where:
ESC_is the APC vt-sequence prefix.<script body>- Lua script sent for execution.ESC\orBEL- APC vt-sequence terminator.
Usage examples:
bash:# Print the current scrollback buffer limits printf "\e_local n,m,q=vtm.terminal.ScrollbackSize(); vtm.terminal.PrintLn('size=', n, ' growstep=', m, ' maxsize=', q)\e\\" # Set the scrollback buffer limit to 10K lines printf "\e_vtm.terminal.ScrollbackSize(10000)\e\a" # Maximize the terminal window printf "\e_vtm.applet.Maximize()\e\\"
A complete list of available script functions can be found in settings.md.