Live data from Hacker News

Black Screen: A modern terminal emulator based on Electron

github.com

31–40 of 97 posts

Re: Black Screen: A modern terminal emulator based on Electron

#31
post #9

Earlier quoted context omitted.

I would really love it if one of these web-based terminals managed to stick around. Just being able to view images in a terminal would be amazing. The trouble with building on web technologies seems to be that the overhead is just too high (eg. Atom) considering how many terminals the average developer has open at a time. I guess at least since it's based on Electron, it might have more longevity than something built…

Just being able to view images in a terminal would be amazing What are the advantages of that over using a dedicated image viewer program?

Focus and context. You don't have to switch to another application and, presumably, displayed image will stay in terminal output. It would be great for printing out inline performance graphs, or even sparklines.

Re: Black Screen: A modern terminal emulator based on Electron

#32

I kind of don't want to have my terminal emulator run a complete webbrowser because that's how all the cool kids now pull off the Delphi window skinning look of 2000.

If we can have a teletype metaphor today in 2015, 40-odd (or thereabouts) years later, with the awfulness of this whole idea being a minority viewpoint, perhaps we need to just go with the web browser metaphor today, and see what comes of it by 2055.

Thanks to people insisting for years that the TTY is just fine, we don't appear have any other options. Ideally, we'd have progress - but as it is, we have nothing, or a shit sandwich. Forgive me for not going for nothing.

Re: Black Screen: A modern terminal emulator based on Electron

#33

I kind of don't want to have my terminal emulator run a complete webbrowser because that's how all the cool kids now pull off the Delphi window skinning look of 2000.

I have a feeling that when enough things want to run "a complete web browser", what we'll get instead is a single web-browser window server process for these applications to talk to.

Re: Black Screen: A modern terminal emulator based on Electron

#34
post #26
post #9

Earlier quoted context omitted.

I would really love it if one of these web-based terminals managed to stick around. Just being able to view images in a terminal would be amazing. The trouble with building on web technologies seems to be that the overhead is just too high (eg. Atom) considering how many terminals the average developer has open at a time. I guess at least since it's based on Electron, it might have more longevity than something built…

You can view images on iTerm 2: https://db.tt/nO3P7yO6 And yes, iTerm2 also displays animated gifs.

What is displaying your "tabs" at the bottom of your terminal?

Re: Black Screen: A modern terminal emulator based on Electron

#35

Earlier quoted context omitted.

Just being able to view images in a terminal would be amazing What are the advantages of that over using a dedicated image viewer program?

cat tmp.png "Yep that looks like it's right" git add tmp.png

Whoopee, you saved one keystroke (`eom tmp.png` "Yep, looks good. Presses Escape") and if you become interested in any data from previous commands' output you'll have to scroll up more / live with a larger window than otherwise because now you've got an image sucking up n rows in your terminal.

Re: Black Screen: A modern terminal emulator based on Electron

#36
post #34
post #26

Earlier quoted context omitted.

You can view images on iTerm 2: https://db.tt/nO3P7yO6 And yes, iTerm2 also displays animated gifs.

What is displaying your "tabs" at the bottom of your terminal?

That's part of iTerm. In appearance, set tab style "bottom" and "dark" to emulate that screenshot.

Re: Black Screen: A modern terminal emulator based on Electron

#37
post #9

One of these seems to pop up every few months, which is great, terminals are old crusty awful things, but it seems like they always die out in development before they can run existing things like Vim which makes them fun POC's and not much else :/

I would really love it if one of these web-based terminals managed to stick around. Just being able to view images in a terminal would be amazing. The trouble with building on web technologies seems to be that the overhead is just too high (eg. Atom) considering how many terminals the average developer has open at a time. I guess at least since it's based on Electron, it might have more longevity than something built…

urxvt also supports viewing images (or at least I know that because that's the emulator I use, maybe other emulators also support it)

Like I know ranger has an option for it, but iirc there's also a way to just run a command ala `cat`ing a text file. If you'd like, I can look into it more if you can't already find out how to do it by searching.

Also, people are mentioning feh, I'd like to plug in sxiv (not my program though).

Re: Black Screen: A modern terminal emulator based on Electron

#38
post #34
post #26

Earlier quoted context omitted.

You can view images on iTerm 2: https://db.tt/nO3P7yO6 And yes, iTerm2 also displays animated gifs.

What is displaying your "tabs" at the bottom of your terminal?

Yep as steckerbrett mentioned, it's the new Dark style tabs introduced in iTerm nightlies, which you can put it in the bottom. It might be included now in the betas or the stable version, not sure.

Re: Black Screen: A modern terminal emulator based on Electron

#39
post #10
post #3

Bummer. Doesn't compile with iojs.

It looks like it uses "child_pty" to spawn pty's. child_pty hasn't been updated to support the latest nan/v8 api (in fact, it looks like it's been unmaintained since March). It also improperly uses fs streams to read and write to the pty fd which will exhaust the thread pool very quickly. So, even if you can compile it, it will still break. It also looks like it doesn't handle sigchld with a waitpid anywhere, so be p…

Add an issue for it.

Re: Black Screen: A modern terminal emulator based on Electron

#40
post #33

I kind of don't want to have my terminal emulator run a complete webbrowser because that's how all the cool kids now pull off the Delphi window skinning look of 2000.

I have a feeling that when enough things want to run "a complete web browser", what we'll get instead is a single web-browser window server process for these applications to talk to.

Wayland and its associated protocol stack is old, crufty, and written for a use case that doesn't exist anymore. We're planning to get all the major toolkits migrated to DisplayWebKit sometime within the next two years.
Post reply on HN