reflex-frp / reflex-vty

Build terminal applications using functional reactive programming (FRP) with Reflex FRP.
https://reflex-frp.org
BSD 3-Clause "New" or "Revised" License
140 stars 25 forks source link

terminfo support (scrolling broken without TERM=xterm) #14

Open Ericson2314 opened 4 years ago

Ericson2314 commented 4 years ago

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.

3noch commented 4 years ago

I presume ghcid works in that setting?

ali-abrar commented 4 years ago

I don't think ghcid supports scrolling.

On Wed, 22 Jan 2020 at 09:58, Elliot Cameron notifications@github.com 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 .

3noch commented 4 years ago

True.

mpickering commented 4 years ago

I observed this as well.

ali-abrar commented 4 years ago

What's the value of your TERM variable?

On Fri, 24 Jan 2020 at 06:18, Matthew Pickering notifications@github.com 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 .

Ericson2314 commented 4 years ago

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

mpickering commented 4 years ago
[matt@nixos:~/]$ echo $TERM
rxvt-unicode-256color
ali-abrar commented 4 years ago

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

On Sat, Jan 25, 2020 at 3:10 AM Matthew Pickering notifications@github.com 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 .

Ericson2314 commented 4 years ago
{"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.

ali-abrar commented 3 years ago

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.