LWN.net Logo

Just change the terminal, no the shell

Just change the terminal, no the shell

Posted Jun 25, 2008 12:53 UTC (Wed) by endecotp (guest, #36428)
Parent article: Hotwire: a combined terminal/GUI for GNU/Linux (Free Software Magazine)

I have occasionally wondered about how the classic "shell + terminal" could be improved.  My
complaints are few, but when I'm using things like Imagemagick's convert and mogrify tools and
wonder whether a more "multimedia" terminal could be useful (with no changes to the shell).
Specifically, if I "cat foo.jpeg", wouldn't it be great if the image were displayed inline in
the terminal, like "cat foo.txt" would have been?  Then I could see it in my scrollback
history.  At present I have to see foo.jpeg in another window which I have to close at some
point, and isn't tied to the place in my history where I launched it.

Similarly, a GUI directory browser can show me thumbnails of the images but ls can't.  Why not
let ls (or an ls-like program) output a mixture of text and graphics to the terminal window
and see image thumbnails there?

Maybe this has already been done.  It's something that I think about from time to time but it
has never yet reached the top of my to-do list.


(Log in to post comments)

Just change the terminal, no the shell

Posted Jun 25, 2008 17:07 UTC (Wed) by ballombe (subscriber, #9523) [Link]

Actually you can do that in the Linux framebuffer.

Just change the terminal, no the shell

Posted Jun 26, 2008 10:23 UTC (Thu) by nix (subscriber, #2304) [Link]

Yeah, but unless you can make it work in an X terminal emulator too it's not going to be
terribly widely used. (I don't use fb even though non-fb is almost unreadable on my LCD screen
--- it gets the width of the screen radically wrong --- simply because, AIUI, fbdev is pretty
much incompatible with accelerated X, and I care much more about accelerated X than I do about
the tiny proportion of the time I'm using the console.)

Just change the terminal, no the shell

Posted Jun 26, 2008 15:07 UTC (Thu) by endecotp (guest, #36428) [Link]

> Actually you can do that in the Linux framebuffer.

Hmm, I just tried "cat foo.jpeg" and got the garbage characters that I was expecting.  Is
there something that I have to enable?

Just change the terminal, no the shell

Posted Jun 27, 2008 12:21 UTC (Fri) by nix (subscriber, #2304) [Link]

It is *possible* to write code such that that works in the Linux 
framebuffer (compared to, say, xterm: w3m can display images in that but 
there's no way it'll work with scrollback or anything because w3m is just 
blatting images into the same X window: xterm doesn't know anything about 
it).

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds