Earlier quoted context omitted.
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().)
Freedesktop systems get you an 'xdg-open' command (there's also 'gnome-open' for GNOME, and 'open' for Mac OS X). On Linux you should be able to wire up binfmt_misc, the plugin system for execve, to xdg-open.
Black Screen: A modern terminal emulator based on Electron
81–90 of 97 posts
Re: Black Screen: A modern terminal emulator based on Electron
#82Earlier quoted context omitted.
I feel really sorry for the inconvenience, I just wanted to share your awesome project.
I should thank you for the post. It reassured me I'm doing something people are interested in.
Re: Black Screen: A modern terminal emulator based on Electron
#83Earlier 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.
In short: the time savings introduced by shortening the feedback loop tend to add up. There is a reason why Web developers now use auto-reloading solutions, despite the fact that it saves "just one keystroke" (F5 in this case).
Re: Black Screen: A modern terminal emulator based on Electron
#84Hello. I'm the author of Black Screen, and I'm upset this post has appeared on Hacker News. The terminal is at a very early stage; I don't even use it by myself. Although, it's nice to see that people show some interest.
Can you use another npm namespace? . npm install black-screen is far better t'han "install-all" for many reasons: better npm search, no namespace pollution, more semantic than such a generic name. Please consider to change it.
Re: Black Screen: A modern terminal emulator based on Electron
#85Earlier 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?
Re: Black Screen: A modern terminal emulator based on Electron
#86Re: Black Screen: A modern terminal emulator based on Electron
#87Earlier 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.
Re: Black Screen: A modern terminal emulator based on Electron
#88Earlier quoted context omitted.
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
#89Earlier 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?
Re: Black Screen: A modern terminal emulator based on Electron
#90Earlier quoted context omitted.
Hey thanks for replying & I hope my comments didn't seem snooty. I've thought a lot about how to solve this problem and was disappointed by the way some past attempts have just ignored the infrastructure that ensconses current terminals. And its a real shame that so many tools just hard-emit ANSI escape codes - there are even some TUI frameworks that do it. The problem I see is that you seem to have the terminal doin…
Hey. Not snooty at all. I understand your pain: once I tried to open Vim in this Kickstarter terminal project - Xiki - and was disappointed in the same way. Perhaps unexpectedly, Black Screen is both a terminal emulator and a shell. I tried hard to avoid going with writing a shell, but the existing ones simply don't fit. It's even hard to know when a child execution has finished. And I want smart autocompletion, so I…