Lurker News

Comments (171) 86 threads

rbtprograms5 replies#
Neat! If I can make one suggestion: I know this is usually not at all what people should with websites, but consider hijacking basic browser hotkeys to augment the shell. Tab for auto complete instead of select next element would be a good start, and I think in this type of situation its acceptable to hijack.
ivan888#
Also consider auto focusing the field when the page loads
aavshr2 replies#
thanks for the input, yes definitely planning to do this
eyelidlessness#
If you do, please check the various meta keys. Hijacking tab is expected here, but not cmd-/alt-tab etc.
rbtprograms#
nice! this is a fun project so I ma glad you are wanting to go further with it.
XCSme2 replies#
I agree, hijacking is good when it leads to the expected user behaviour. I kept pressing tab to auto-complete the command, but the cursor jumped to the address bar.
SketchySeaBeast1 reply#
I kept pressing up to retrieve my last command.
spurgu#
There we go, I opened this thread with two things in mind that immediately struck me - tab completion and pressing up for previous command and those two are the top comments!
skohan#
I am in ok with hijacking tab in general. The fact that tab doesn't act as a tab key in text areas is one of the most annoying things about the web.
smthngwitty1 reply#
Also CMD+K to clear window
besnn00#
isn't it Ctrl+L
oceanghost#
I immediately tripped on the autocomplete issue. Still, a super neat thing.
tombert9 replies#
This if fun, few suggestions.

The first command I ran was `ls`, which worked as expected, but then I tried running `./cowsay blah`, which didn't work. I wasn't sure how to run it until eventually I guessed `sh cowsay blah`, and it worked.
Maybe make the `./` shortcut for executing stuff?
While I'm not sure how much work it would be, it might also be kind of cool to implement the `cd` command as well.

j4yav#
I did the exact same thing and assumed I was seeing some strange behaviour on mobile, until I came here.
kroltan2 replies#
Yes, especially since cowsay was marked in a different color!

Expected behaviour from *nix would be that you'd either

  sh somescript.sh
Or

  ./someexecutable
Of course the extension is not technically required, but it would help in the UX for the user to try running it on the sh command.
joshspankit#
I personally think this is the best solution besides implementing ‘./‘: take the colouring off and simply return “permission denied” when someone tries to ‘chmod’
froh42#
As "cat cowsay" tells me that cowsay is an executable, I wouldn't expect "sh cowsay" to work in any event.
amelius1 reply#
If you type "help", it says:

    sh: run an executable file
tombert#
Yeah, I saw that after, but since it looks like a Unix shell, my first reaction is to just use typical Unix commands.
aavshr#
hi thanks for the suggestion.

Yes, I plan to implement './' which is the expected behavior for running executables. I also plan to implement 'cd' and organize the content into nix style directories.

ed2 replies#
I kept trying `./cowsaydo-not-run-me` because `ls` outputs with no separators (`ls -l` fixed me up)
comprev#
Same here on mobile (iPhone 7)
definitelyhuman#
Same here, ls output needs formatting help on mobile. I was hoping glob might work too - could be a useful update
aavshr2 replies#
I implemented './' and it should be live now.
tdy721#
This "just worked" for me. Nice work
antb123#
tab completion?
Scarblac#
Also I was wondering what 'do-not-run-me' would be so my first try was 'file do-not-run-me', but alas, that command didn't exist.
spurgu#
It seems to work now.

    ./cowsay covfefe
xeromal#
Once I couldn't figure out how to run it, I typed help and it showed me way to do. Seemed pretty intuitive
nichochar3 replies#
Never seen a thread with so little hate and so many suggestions. Made me smile! Good work OP I enjoyed playing around with your website
pxi#
That's what I was thinking!

So here's my suggestion: add some text adventure games. Use emscriptem to convert frotz or something similar to javascript.

whatshisface#
Hackers only hate on things that they don't think they could have written themselves.
ChrisArchitect#
same, but oh there's hate (further down)

Stupid nerds that felt mislead and needed to express disdain that 'personal website' and 'shell' isn't useable as a full shell to hax0r on. smh

c43verge1 reply#
I have two suggestions: 1) Add support for tab key so users don't have to type the entire file names 2) On initiation display the available commands or a brief intro text automatically, then let users dive deep into whatever they are interested in (help command works fine but it's a personal website so you would like to give people as much info as possible as fast as you can in the most original way.) It's a quite original idea.
aavshr1 reply#
hi thanks for the suggestions. Yeah, I also thought whether I should display the available commands at the start or not, but it makes more sense to do so.
lostgame#
Absolutely do this. The initial blank prompt felt intimidating without any suggestions; and would help with the esoteric aspect of it for certain user sets. :)

Load more comments