←back to thread

298 points miguelraz | 3 comments | | HN request time: 0s | source
Show context
hamasho ◴[] No.45894367[source]
I tried to find a terminal which can shows images, videos, and other media. I know it's not a UNIX way, but sometimes it can help. There are multiple options, but they didn't click in me.

But just showing a browser like Jupyter would be very useful. It can handle a wide variety of media, can easily show JS heavy webpages unlike curl, and with text option to show text based result like w3m but can handle JS, it will be more useful.

  browser google.com/maps  # show google map and use interactively
  browser google.com/search?q=cat&udm=2  # show google image result
  browser --text jsheavy.com | grep -C 10 keyword   # show content around keyword but can handle JS
  vim =(browser --text news.ycombinator.com/item?id=45890186)  # show Hacker News article and can edit text result directly)
replies(1): >>45899214 #
1. 1718627440 ◴[] No.45899214[source]
> terminal which can shows images, videos, and other media

That is typically not the job of terminals, but of programs. fbi, omxplayer, etc exist.

replies(1): >>45899249 #
2. jcgl ◴[] No.45899249[source]
But the terminal can provide capabilities that allow shell programs to do those things. See e.g. the Kitty graphics protocol: https://sw.kovidgoyal.net/kitty/graphics-protocol/
replies(1): >>45899400 #
3. 1718627440 ◴[] No.45899400[source]
Yes.

> fbi, omxplayer, etc exist.