github directvt/vtm v0.9.99.65

latest releases: v2026.02.03, v2026.01.16, v2026.01.13...
11 months ago

GitHub all current

Changes

  • Make the Esc key in the terminal fire only when it is physically released.
    By default, we use the Esc key as a modifier. Its press+release events will only be sent after the key is physically released, and only if no other keys were pressed along with Esc. This behavior is configurable, see the <config/events/terminal/> configuration subsection.

  • Introduce vtm.terminal.KeyEvent({...}, ..., {...}) function.

    attribute type description
    keystat Integer Key state: 0 - released; 1 - pressed; 2 - repeated.
    ctlstat Integer Keyboard modifiers (bit-field).
    virtcod Integer Key virtual code.
    scancod Integer Key scan code.
    keycode Integer Vtm specific key code.
    extflag Integer Extended flag (win32 specific).
    cluster String Text string generated by the key.

    Example:

    -- Send pressed Esc key event
    vtm.terminal.KeyEvent({ keystat=1, virtcod=0x1b, scancod=1, cluster='\\u{1b}' })
    -- Send released Esc key event
    vtm.terminal.KeyEvent({ keystat=0, virtcod=0x1b, scancod=1 })

Don't miss a new vtm release

NewReleases is sending notifications on new releases.