noahgorstein / jqp

A TUI playground to experiment with jq
MIT License
2.19k stars 40 forks source link

Layout problem #47

Closed BillyLiou closed 9 months ago

BillyLiou commented 1 year ago

I use brew to install jqp Although it can query as normal, but it shows like that.

image

Machine information: MacOS: Sonoma 14.0 2.3 GHz 4 cores Intel Core i5

iTerm2: Build 3.4.21 jqp version: v0.5.0

Thanks

noahgorstein commented 1 year ago

Unable to reproduce with jqp v0.5.0 on my M1 running MacOS Sonoma 14.0 with iTerm2 v3.4.21.

Do you have the same issue with other terminal emulators like stock Terminal.app or other popular emulators like Alacritty and Kitty?

Additional, when you resize the window, does it "fix" the layout?

lunrenyi commented 11 months ago

你好,我从 Release中 下载的 jqp_Linux_x86_64.tar.gz 也存在同样的问题,我使用的系统是 Ubuntu .

1 2

% ls -lh ./jqp_Linux_x86_64.tar.gz
-rw-rw-r-- 1 lunrenyi lunrenyi 4.2M 11月 11 16:06 ./jqp_Linux_x86_64.tar.gz
% file ./jqp                      
./jqp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=EjVwBSAm8-6gJX5kDXWx/iljnHxtlI61BLfikfIrl/4jjkrJGyLEE9nd4FgJGn/iXvxk5NH8Xzqihtr8Orp, stripped
% ./jqp -f ascii.json

3

noahgorstein commented 11 months ago

@lunrenyi check out this issue reported earlier in the year: https://github.com/noahgorstein/jqp/issues/6#issuecomment-1518503774

Can you see if specifying your LANG env variable as en_US.UTF-8 fixes this?

lunrenyi commented 11 months ago

@noahgorstein 指定LANG环境变量为en_US.UTF-8可以解决这个问题

1 2

noahgorstein commented 9 months ago

Appears to be resolved by setting the environment variable LANG to en_US.UTF-8.