mlterm icon indicating copy to clipboard operation
mlterm copied to clipboard

Enter is spawned multiple times randomly after running commands

Open lidgnulinux opened this issue 3 years ago • 4 comments

I'm not sure if it's normal behaviour. When I run some random commands, e.g lximage-qt $(grimshot save area), after that mlterm seems spawn enter multiple times. Sometimes it's just 4 times and sometimes it's uncountable and need to be stopped by CTRL-C. 2022-07-07T10:44:56,145818466+07:00

It worries me sometimes, honestly. Thanks.

lidgnulinux avatar Jul 07 '22 03:07 lidgnulinux

It's not normal behavior, but I couldn't reproduce this problem, sorry. What distro do you use?

arakiken avatar Jul 16 '22 13:07 arakiken

Hi, I'm sorry for late respond, I'm using debian.

lidgnulinux avatar Jul 22 '22 23:07 lidgnulinux

Sounds like stuck key. The problem is probably that the key up event is not received or is received late. Or in this case possibly the deactivation of the terminal window is not detected.

Likely cause:

  • command that opens a new window is typed in the terminal followed by key down event for Enter
  • Enter key down launches a command that opens a new window that gets focus
  • key up event for Enter happens in this new window and is never received by terminal
  • terminal stops repeating Enter only after it receives other key event If this is the case then the solution would be to detect the focus change and reset the key state

hramrach avatar Mar 04 '23 16:03 hramrach

Also some specific conditions apply - cannot reproduce with xlib build running random X application.

hramrach avatar Mar 04 '23 16:03 hramrach