Live data from Hacker News

Black Screen: A modern terminal emulator based on Electron

github.com

41–50 of 97 posts

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

#43

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

You may be diappointed to know that Windows' cmd.exe will automatically open the default associated program, so all you need to do is enter the filename if you've associated image files with a default viewer:

http://superuser.com/questions/246825/open-file-from-the-com...

(I suppose a similar thing could be done on *nix with a suitably modified execlp()/execvp().)

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

#44
post #37
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…

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…

Wow, how? I use urxvt and dindn't know that.

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

#45
post #35

Earlier quoted context omitted.

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.

For easier use, you could even alias `cat` to run `file` first, then pass to your image viewer or whatever if it's not a text file.

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

#46
post #40
post #33

Earlier quoted context omitted.

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.

That's a confusing assertion. Wayland is only a few years old, and has only very recently seen anything approaching widespread usage. What do you mean by "Wayland is old"?

And, who's "we" when you say "We're planning to get all the major toolkits migrated to DisplayWebKit"?

I'm not trying to be argumentative, I just don't get where you're coming from.

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

#47
post #44
post #37

Earlier quoted context omitted.

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…

Wow, how? I use urxvt and dindn't know that.

The ranger file manager, which I use can do image previews in urxvt and claims to also work with iTerm, st and xterm.

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

#48
post #2

Screenshot looks awesome! I get this error on mac os Yosemite, I made a github issue here: https://github.com/shockone/black-screen/issues/21 black-screen$ gulp [17:35:09] Using gulpfile ~/black-screen/gulpfile.js [17:35:09] Starting 'default'... [17:35:09] Starting 'watch'... [17:35:09] Starting 'clean'... [17:35:09] Finished 'default' after 359 ms [17:35:09] Finished 'clean' after 58 ms [17:35:09] Starting 'typescr…

If anyone's curious to try this, here's how to get it working: https://github.com/shockone/black-screen/issues/21#issuecomm...

Overall, actually really like the interface and the potential behind it. Super laggy and could use some work.

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

#49
post #40

Earlier quoted context omitted.

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.

That's a confusing assertion. Wayland is only a few years old, and has only very recently seen anything approaching widespread usage. What do you mean by "Wayland is old"? And, who's "we" when you say "We're planning to get all the major toolkits migrated to DisplayWebKit"? I'm not trying to be argumentative, I just don't get where you're coming from.

I think GP's post was tongue-in-cheek; I read it that way, anyway.

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

#50

Earlier quoted context omitted.

That's a confusing assertion. Wayland is only a few years old, and has only very recently seen anything approaching widespread usage. What do you mean by "Wayland is old"? And, who's "we" when you say "We're planning to get all the major toolkits migrated to DisplayWebKit"? I'm not trying to be argumentative, I just don't get where you're coming from.

I think GP's post was tongue-in-cheek; I read it that way, anyway.

Ah, too subtle for me. There are enough people looking at the world through the lens of "everything should be on the web" that it doesn't seem entirely crazy to have the browser as the display target.
Post reply on HN