Skip to content

ESC is sometimes dropped #1017

@cqexbesd

Description

@cqexbesd

Contour Terminal version

0.3.10-master-2532adfe

Installer source

Github: source code cloned

Operating System

Arch Linux as of approx a week ago

Architecture

x86-64

Other Software

NVIM v0.8.2

Steps to reproduce

In a vi session, occasionally, a press of ESC is missed. It only happens occasionally and I don't know how to reliably trigger it. It may not be related to being in vi but of course that's when I would notice missing ESC.

With some debug tags on I see:

[2023-01-31 00:19:38.395865] [gui.input] Character press event received: Shift }
[2023-01-31 00:19:38.395922] [pty.output] Sending bytes: "}"
[2023-01-31 00:19:38.763825] [gui.input] Character press event received: None \e
[2023-01-31 00:19:39.267889] [pty.output] Sending bytes: "\eOA"
[2023-01-31 00:19:39.267916] [gui.input] key press: None UpArrow
[2023-01-31 00:19:39.467887] [pty.output] Sending bytes: "\eOC"
[2023-01-31 00:19:39.467911] [gui.input] key press: None RightArrow

So it looks like the ESC is missed being sent to the pty and from then on the input and output log messages are in reverse - i.e it sends my input before it receives it.

Expected Behavior

Every press to be sent

Actual Behavior

ESC was swallowed

Additional notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocker:officeBug reported by my colleges, and hence should be fixed ASAP. :)bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions