5 ms·
Interactive Javascript Terminal as a personal website
- hkuo 16y agoThis would be an awesome way to port over Zork or any Infocom game to the internet!
- ZenzerNet 16y agoYou can play them all here: http://www.accardi-by-the-sea.org/Infocom/Online/ http://www.accardi-by-the-sea.org/Infocom/Online/ - Java, but nonetheless... Great games!
- wtracy 16y agohttp://thcnet.net/zork/index.php http://thcnet.net/zork/index.php
- mieses 16y agohttp://parchment.toolness.com/ http://parchment.toolness.com/ an interactive fiction game archive in HTML and Javascript
- ncavig 16y agoAt least in chrome the backspace key performs a browser back. Should try to overload the key with keydown event. Would also be cool to have a history of ran commands or tab-completion functionality =)
- miket 16y agoi have something similar http://miketung.com/sh/ http://miketung.com/sh/ . Supports personal home directories with the 'login' command (uses oauth).
- mattgauger 16y agoNote that it won't work on mobile devices, and probably has some accessibility issues too. Fancy, shiny new things are neat, but show off that you know standards and accessibility at the same time.
- Ainab 16y agoneat stuff.
- ameketa 16y agohttp://enekoalonso.com/terminal.php?command=ls&path=../../../../../../../../../../../../etc/ http://enekoalonso.com/terminal.php?command=ls&path=../.... Security fail.
- rwolf 16y agoglad to see HN is enjoying yesterday's release of mod_pagespeed: http://enekoalonso.com/terminal.php?command=ls&path=../../../../../../../../../../../../var http://enekoalonso.com/terminal.php?command=ls&path=../....
- andfarm 16y agoWe (DreamHost) don't have mod_pagespeed support out quite yet, but the feature should be available to our customers by the end of the day today, as soon as I flip the switch to turn it on. :)
- llimllib 16y agoThat's a remarkably terrible way to implement a terminal.
- eneko 16y agoIt was never my intent to implement a terminal. The site does not execute any system commands at all on the server side. Pretty much, all commands are 'custom' or invented, to show stuff about me and stuff I've worked on (a long, long time ago). Nothing else.
- eneko 16y agoNice. The code was already checking for '..' on the path, but the condition was erroneous. Fixed now.
- toolate 16y agoYou might be better off getting the canonical path and then checking against a whitelist. E.g. `strpos(realpath($command_path), '/var/www/html/') === 0`.
- cowpewter 16y agoVery cool, but no backspace/delete/arrow key support? Can't seem to correct a typo other than just hitting enter, getting the 'command not found' message and retrying.
- leif 16y agohttp://adlaiff6.github.com/ http://adlaiff6.github.com/ Old data, but it runs on a (young, but) flexible sh emulation, and by messing with the virtual filesystem you can get it to do whatever you want (try readlink, for example). Grab code from github.com/adlaiff6/jsh and github.com/adlaiff6/readline.js. Doesn't work on firefox for me right now, don't remember why, I haven't touched the code in a long time.
- eof 16y agodoesn't work with vimperator on ff
- kqr2 16y agoAlso see JS/UIX: http://www.masswerk.at/jsuix/ http://www.masswerk.at/jsuix/
- Erwin 16y agoXKCD switched their web page to such a pseudo-terminal on April's Fools day: http://uni.xkcd.com/ http://uni.xkcd.com/ (And there was a cut down adventure game hidden in it).
- pinchyfingers 16y agoAwesome idea, doesn't work so smoothly yet.
- eneko 16y agoI wrote the site on an afternoon a couple of years ago and haven't had time or energy to update it. If anyone is interested, please grab the code :) There is nothing server side other than the 'ls' command, which is nothing else than a directory listing in php (no system command at all is run on the server). All other commands are just basic Javascript.
- deleted 16y ago[deleted]
- mkramlich 16y agoi like that more than most websites. very fast. minimum of visual noise. substance over flashiness.
- growt 16y agoI'll just leave this here: http://goosh.org/ http://goosh.org/
- metageek 16y agoIt looks so much like a terminal that I had a "that's impossible!" reaction when I typed "whois" and got a picture.