walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
585 stars 17 forks source link

moar -no-clear-on-exit -quit-if-one-screen with file located in /tmp creates problems with kitty terminal #190

Closed jwezel closed 5 months ago

jwezel commented 5 months ago

The mentioned command generates input on the terminal as depicted in the following screenshot:

Screenshot_20240118_172319

However, the problem occurs only in kitty terminal, not xterm.

Edit: initially I thought it has to do with the fact that the file is empty, but now I realize it is the fact that the file is located in directory /tmp.

walles commented 5 months ago

What version of kitty is this?

I just tried it on Kitty 0.31.0 and I was unable to repro.

Also, please do moar --version.

jwezel commented 5 months ago

Kitty version 0.30.1 Moar version 1.23.0

walles commented 5 months ago

I managed to reproduce by changing this timeout to zero:

https://github.com/walles/moar/blob/d391bab3b180d451ab8f6de33665d6df2cbf3703/moar.go#L605

On my system this has never taken more than about 3ms, even on Kitty.

Bumping to 50ms.