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

what(): Unable to calculate terminal sizes #172

Closed
kaiyga opened this issue Mar 26, 2024 · 2 comments
Closed

what(): Unable to calculate terminal sizes #172

kaiyga opened this issue Mar 26, 2024 · 2 comments

Comments

@kaiyga
Copy link

kaiyga commented Mar 26, 2024

I came to Yazi with this problem. Because Cool-Retro-Term does not have support for image buffering and about ueberzugpp, I know that for this reason it will not render them like it does in Kitty or Xterm

But, yazi uses Chafa for such a case and Ueberzugpp serves as a backend for it.
And since Ueberzugpp cannot start, Chafa in yazi does not work. Paum-Paum

I would like minimal terminall support.

Software:

  • Distribution: Arch Linux
  • Kernel: Linux 6.8.1-arch1-1
  • DE: GNOME 45.5 (Wayland)
  • Term: cool-retro-term ($TERM xterm)

Output:

kaiy@archlinux ~> echo "TERM: $TERM | TERM_PROGRAM: $TERM_PROGRAM | XDG_SESSION: $XDG_SESSION_TYPE"                     
TERM: xterm | TERM_PROGRAM:  | XDG_SESSION: wayland

kaiy@archlinux ~> ueberzugpp layer                                                                                      
terminate called after throwing an instance of 'std::runtime_error'                                                     
  what():  Unable to calculate terminal sizes
fish: Job 1, 'ueberzugpp layer' terminated by signal SIGABRT (Abort)

kaiy@archlinux ~ [SIGABRT]> ueberzugpp layer -so chafa                                                                  
fish: Job 1, 'ueberzugpp layer -so chafa' terminated by signal SIGABRT (Abort)  

Log:

[2024-03-26 21:59:54.988] [terminal] [info] TERM = xterm
[2024-03-26 21:59:54.988] [terminal] [info] PTY = /dev/pts/6
[2024-03-26 21:59:54.988] [terminal] [debug] ioctl sizes: COLS=120 ROWS=52 XPIXEL=0 YPIXEL=0
[2024-03-26 21:59:54.988] [terminal] [debug] iterm2 is not supported
[2024-03-26 21:59:54.989] [terminal] [debug] x11 is not supported
[2024-03-26 21:59:54.989] [terminal] [debug] Wayland is not supported

image

@jstkdng
Copy link
Owner

jstkdng commented Mar 26, 2024

seems cool-retro-term doesn't properly respond to the TIOCGWINSZ ioctl call, I suggest raising the issue with them.

@kaiyga
Copy link
Author

kaiyga commented Mar 26, 2024

Thanks

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

No branches or pull requests

2 participants