antonmedv/fx

No colors within tmux over ssh

idvorkin opened this issue ยท 19 comments

FX is awesome, (and I love TMUX :) ).

(Dup of #206, but I can't reopen that)

Is there a plan to fix? I'm also happy to debug!

TL;DR to resolve

export COLORTERM=truecolor

Will try to reproduce the bug. Can you try to update charm libs and see in it fixes the issue?

@idvorkin BTW do you use reducers with fx? (fx .foo .bar '.map(x=>x)`)
And do you have nodejs installed on your machine?

@antonmedv - Thanks for the quick response!

I don't use reducers, but just tried them. Doesn't seem to change anything.
I don't think I have charm installed. I tried installing it, nothing changed.
I do have node installed.

Happy to try anything that can help!

Here's some info on my system:

ec2-user in ๐ŸŒ shell in nlp on ๎‚  main [$!?โ‡ก] via ๎œ˜ v18.10.0 via ๐Ÿ v3.10.7
โฏ export | grep TERM
TERM=tmux
TERM_PROGRAM=tmux
TERM_PROGRAM_VERSION=3.3a

ec2-user in ๐ŸŒ shell in nlp on ๎‚  main [$!?โ‡ก] via ๎œ˜ v18.10.0 via ๐Ÿ v3.10.7
โฎ node --version
v18.10.0

ec2-user in ๐ŸŒ shell in nlp on ๎‚  main [$!?โ‡ก] via ๎œ˜ v18.10.0 via ๐Ÿ v3.10.7
โฎ npm ls -g
/home/linuxbrew/.linuxbrew/lib
โ”œโ”€โ”€ fkill-cli@7.1.0
โ”œโ”€โ”€ git-stats@3.1.1
โ”œโ”€โ”€ npm@8.19.2
โ””โ”€โ”€ prettier@2.8.4


ec2-user in ๐ŸŒ shell in nlp on ๎‚  main [$!?โ‡ก] via ๎œ˜ v18.10.0 via ๐Ÿ v3.10.7
โฏ npm ls -g  --all | grep charm

One thing to mention, it happens when I'm running tmux in an ssh session, not if I'm running tmux natively on my mac.

(However, every other app does colors correctly)

Bump

@antonmedv. Saw that message was going to yell at who wrote it. Hahaha.

=)))

I'm actually in full rewrite of fx right now)). But now stuck at https://github.com/antonmedv/expr for a while.

You get to work on some cool stuff!! Excited for fx v.Next.

Out of curiosity, does google let you do this as your day job?

Nope) ๐Ÿ‘Ž

In fact I got laid off a few months back (with 12k others) from Google.

Now just working on my open source project and thinking if I can turn one of them into a business.

I've refactored fx from the ground up and also updated all deps. Please check out if it works in master.

Nope, still doesn't work. Also, assuming you know, but no longer does folding by default. How can I help debug?

no longer does folding by default.

Yes. I'm thinking about making it the default behavior.

Makes sense. my last comment was ambiguous.

I'm happy to help debug the color issues. Just tell me what to do.

It is something in bubbletea code. Maybe some bug in detecting tmux?

To clarify it's tmux over ssh, updated issue title

Yup, repro'd with bubble tea directly:

charmbracelet/bubbletea#825

Looks like upstream issue is closed.