Enter is spawned multiple times randomly after running commands
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.

It worries me sometimes, honestly. Thanks.
It's not normal behavior, but I couldn't reproduce this problem, sorry. What distro do you use?
Hi, I'm sorry for late respond, I'm using debian.
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
Also some specific conditions apply - cannot reproduce with xlib build running random X application.