Skip to content

Keyboard Macro Text Input Auto-Repeats First Character #3077

@anthony5301

Description

@anthony5301

I've found a persistent keyboard input buffer corruption issue when using external keyboard macros.
The first character received from a macro becomes "stuck" and repeats for all subsequent macro inputs, even across session restarts. Only clipboard operations can reset this state.

Steps to reproduce

  1. Configure a Logitech G HUB macro containing . setup xxxxx
  2. Trigger the macro in WindTerm → outputs ............. (dots only)
  3. Trigger another macro containing bitbake xxxxx → still outputs ............. (still dots)
  4. Restart the SSH session → macro still produces dots
  5. Copy any text to clipboard
  6. Trigger the bitbake macro again → now outputs bbbbbbbbbbbbb (first character of new input)
  7. Trigger the . setup macro → now outputs bbbbbbbbbbbbb (still stuck on 'b')
  8. Copy different text again, trigger new macro with test → outputs tttt
Image Image

choose "TEXT&EMOJIS"
Image

Image

Expected behavior

Each macro should output its complete text string without character repetition

Environment

WindTerm version: 2.7.0 on Windows
Macro tool: Logitech G HUB (Text marco)
Connection: SSH sessions to Linux servers, com port to serial device

Additional note: When the macro in Logitech G HUB is configured in Keystroke mode, the issue does not occur. It only happens when the macro is set to Text mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions