~ghost08/photon#7: 
Why you not supporting termux?

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

Status
RESOLVED CLOSED
Submitter
~plaw
Assigned to
No-one
Submitted
2 years ago
Updated
1 year, 7 months ago
Labels
No labels applied.

~plaw 2 years ago

Termux developers package both photon and ratt for android and you can't do 1 one thing for them? That is supporting termux emulator

~ghost08 2 years ago

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.

~plaw 2 years ago

Can you create a issue in https://github.com/termux/termux-packages ?

~ghost08 1 year, 11 months ago

~plaw 1 year, 11 months ago

Still not working

~ghost08 1 year, 11 months ago

I think, that there is a PR that they still didn't merge.

~plaw 1 year, 11 months ago

I'm using the build from that pr but wonderimg why not working

~plaw 1 year, 11 months ago

I think its a bug of photon 🤔

~plaw 1 year, 7 months ago

termux-monet merged the pr, if you have android phone you can use photon in termux-monet. Closing this issue

~ghost08 1 year, 7 months ago

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

~plaw 1 year, 7 months ago*

See https://ttm.sh/SWn.jpg

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 app

Instructions:

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

~plaw 1 year, 7 months ago

Yes its usable

~ghost08 1 year, 7 months ago

wow that's great, and it looks great too, I need to try it out!

~ghost08 REPORTED CLOSED 1 year, 7 months ago

Register here or Log in to comment, or comment via email.