github directvt/vtm v2025.08.13

latest releases: v2026.02.16, v2026.02.15, v2026.02.06...
6 months ago

GitHub all current

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\ or BEL - 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.

Don't miss a new vtm release

NewReleases is sending notifications on new releases.