reflex-vty icon indicating copy to clipboard operation
reflex-vty copied to clipboard

terminfo support (scrolling broken without TERM=xterm)

Open Ericson2314 opened this issue 4 years ago • 10 comments

I noticed when using Alacritty that scrolling in reflex-ghci didn't work unless I set TERM=xterm. I would guess this means that reflex-vty isn't doing some terminfo black magic.

Ericson2314 avatar Jan 21 '20 18:01 Ericson2314

I presume ghcid works in that setting?

3noch avatar Jan 22 '20 14:01 3noch

I don't think ghcid supports scrolling.

On Wed, 22 Jan 2020 at 09:58, Elliot Cameron [email protected] wrote:

I presume ghcid works?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/reflex-frp/reflex-vty/issues/14?email_source=notifications&email_token=ABYWSRQE6TKQ4EYDPUT67STQ7BNKNA5CNFSM4KJX7NY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJT3HWI#issuecomment-577221593, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYWSRUHE5NX7V7EXRI7AXDQ7BNKNANCNFSM4KJX7NYQ .

ali-abrar avatar Jan 22 '20 15:01 ali-abrar

True.

3noch avatar Jan 23 '20 21:01 3noch

I observed this as well.

mpickering avatar Jan 24 '20 11:01 mpickering

What's the value of your TERM variable?

On Fri, 24 Jan 2020 at 06:18, Matthew Pickering [email protected] wrote:

I observed this as well.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/reflex-frp/reflex-vty/issues/14?email_source=notifications&email_token=ABYWSRW32KGIOAL7YPSGF2LQ7LE7HA5CNFSM4KJX7NY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ2PJLY#issuecomment-578090159, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYWSRRPCFLSMXHLNOMRXWLQ7LE7HANCNFSM4KJX7NYQ .

ali-abrar avatar Jan 24 '20 18:01 ali-abrar

https://github.com/alacritty/alacritty/blob/master/extra/alacritty.info something from there (on phone so can't check directly)

Ericson2314 avatar Jan 25 '20 04:01 Ericson2314

[matt@nixos:~/]$ echo $TERM
rxvt-unicode-256color

mpickering avatar Jan 25 '20 08:01 mpickering

Can you share your alacritty configuration? In particular the mouse sections.

On Sat, Jan 25, 2020 at 3:10 AM Matthew Pickering [email protected] wrote:

[matt@nixos:~/]$ echo $TERM rxvt-unicode-256color

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/reflex-frp/reflex-vty/issues/14?email_source=notifications&email_token=ABYWSRTGJZJL2BUJVC2PTELQ7PXWBA5CNFSM4KJX7NY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ4XXNA#issuecomment-578386868, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYWSRSTRZGDJNYQUZQTPL3Q7PXWBANCNFSM4KJX7NYQ .

ali-abrar avatar Jan 26 '20 19:01 ali-abrar

{"font":{"size":4.5},"scrollback":{"faux_multiplier":-1,"multiplier":-1}}

That's it. Everything else is the default.

This problem has also been reported with urxvt and TERM=rxvt-unicode-256color.

Ericson2314 avatar Jan 30 '20 17:01 Ericson2314

This looks relevant: https://github.com/jtdaugherty/vty/issues/199

I can confirm that running in alacritty with TERM=xterm-256color or setting the Graphics.Vty.Config termName value to xterm-256color makes mouse interaction work.

ali-abrar avatar Mar 26 '21 17:03 ali-abrar