gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.34k stars 294 forks source link

Delay in registering keys in CLI #2221

Closed aalbaali closed 1 month ago

aalbaali commented 1 month ago

I'm having a strange issue with tilix and quake, where the keyboard keys are registering, but are delayed by one click. For example, to list all files, I click ls<CR>. However, this doesn't immediately show the files. Instead, I have to press some arbitrary key (e.g., <Space>) in order for the keys to register (i.e., ls<CR><Space>).

This behavior is prevalent in different applications such as in (neo)vim. It's inconsistent: sometimes it happens, sometimes it doesn't,. sometimes the results show up after around a second of delay (i.e., no need to press an additional button).

This issue only happens on Tilix and Quake and not other terminals (e.g., Kitty or xterm). Furthermore, it happens in both bash and zsh.

Any help is appreciated.

egmontkob commented 1 month ago

https://askubuntu.com/questions/1509058/input-delay-on-terminal-ubuntu-22-04-4 by any chance?

aalbaali commented 1 month ago

Thanks for the referral, yes that was indeed the issue. I managed to solve it using this answer. Thanks!