Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugged output on Nixos #455

Closed
ztlevi opened this issue Apr 15, 2022 · 3 comments · Fixed by #529
Closed

Bugged output on Nixos #455

ztlevi opened this issue Apr 15, 2022 · 3 comments · Fixed by #529

Comments

@ztlevi
Copy link

ztlevi commented Apr 15, 2022

Hi, team,

I'm trying to run skim on nixos. But I got bugged output like this.

image

I think something is busted, but I'm not sure if it's due to my setup. But I can run fzf without any problem.

I'm on nixos 21.11, and zsh.

Would you please help me here? Thanks!

@marcosfnsc
Copy link

same behavior when trying to run in termux

@n8henrie
Copy link
Contributor

n8henrie commented Sep 25, 2022

Suddenly started getting this yesterday in MacOS 12.6. Seems to be putting everything on one line. Seeing it in both Terminal.app and Alacritty, including with /bin/bash --norc --noprofile, and after quitting / restarting the apps. FZF still working.

I'll look into enabling debug output if there's an option for that.

Installed via Homebrew, I don't see any changes to that package in a while, so not sure what happened.

$ for n in {1..10}; do echo "$n"; done | sk
  0/10 0/0.> 10/10  10  9  8  7  6  5  4  3  2> 1
$ for n in {1..10}; do echo "$n"; done | fzf
> 10                                                                                                                                                                                                                                          
  9                                                                                                                                                                                                                                           
  8                                                                                                                                                                                                                                           
  7                                                                                                                                                                                                                                           
  6                                                                                                                                                                                                                                           
  5                                                                                                                                                                                                                                           
  4                                                                                                                                                                                                                                           
  3                                                                                                                                                                                                                                           
  2                                                                                                                                                                                                                                           
  1                                                                                                                                                                                                                                           
  10/10                                                                                                                                                                                                                                       
>     

EDIT: No change after updating Xcode tools and a reboot.

@n8henrie
Copy link
Contributor

n8henrie commented Oct 4, 2022

For me on MacOS, it looks like #412 is related, as unset TERMINFO_DIRS fixes this issue.

Around the time this started I was messing with nix-darwin and home-manager, and I see that my TERMINFO_DIRS contains ~/.nix-profile/share/terminfo, so may be what caused my issue (and less likely but possibly related Homebrew/brew#13248), though I still haven't found what is modifying that envvar or where.

Following instructions at https://gpanders.com/blog/the-definitive-guide-to-using-tmux-256color-on-macos/ I regenerated a terminfo and added it to that envvar, which fixes the skim rendering issue in Terminal.app (but not alacritty)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants