panic: can't get terminal pixel resolution
goroutine 1 [running]: main.Background() /home/builder/.termux-build/photon-rss/src/context.go:13 +0xc8 main.main() /home/builder/.termux-build/photon-rss/src/main.go:122 +0xc04
Termux developers package both photon and ratt for android and you can't do 1 one thing for them? That is supporting termux emulator
Wow I didn't know that they are packaging it :)
But why are they doing it if it doesn't run? Did anyone test it? Does termux support sixel?
Anyway photon needs the terminal window resolution for scaling the images. It tries TIOCGWINSZ syscall and if it doesn't succeed then it tries to ask the terminal with CSI 14. When that also doesn't go well, then it just prints out this error message and quits.
The solution would be for termux to implement CSI14, or that photon would just ignore this error and play along without images.
sorry for my behavour
https://github.com/termux/termux-app/pull/2973
get apk from https://github.com/termux/termux-app/actions/runs/3013631991
Can you create a issue in https://github.com/termux/termux-packages ?
So maybe this will do:
Still not working
I think, that there is a PR that they still didn't merge.
I'm using the build from that pr but wonderimg why not working
I think its a bug of photon 🤔
termux-monet merged the pr, if you have android phone you can use photon in termux-monet. Closing this issue
Wow that's great news! Newer thought that photon would be on a mobile. Is it usable? This needs to be shared with the world! :)
Dňa 21. januára 2023 19:22:10 SEÄŒ použÃvateľ ~plaw outgoing@sr.ht napÃsal:
termux-monet merged the pr, if you have android phone you can use photon in termux-monet. Closing this issue
I run with
ratt auto https://www.youtube.com/results --data-urlencode="search_query=Termux" | photon - --video-cmd "termux-open $" --image-cmd "termux-open -" --torrent-cmd "termux-open %"
You can see in args, I use termux-ope because it'll open youtube link (in NewPipe or Revanced app, you can use
mpv --vo=sixel
to play video in termux but since photon is TUIyou wont be able to see mpv it will open in background), torrent (Libretorrent app or use --torrent-cmd "rtorrent/transmission-cli %" (both available in termux) ) in dedicated android appInstructions:
You need to build termux with these patches: https://github.com/termux/termux-app/pull/3098 https://github.com/termux/termux-app/pull/2973 Otherwise, You can use Termux-monet which has these both patches https://github.com/HardcodedCat/termux-monet
Next install photon in termux.
yes | pkg upgrade
pkg update
pkg ins photon-rss ratt
Yes its usable
wow that's great, and it looks great too, I need to try it out!