satyr / coco

Unfancy CoffeeScript
http://satyr.github.com/coco/
MIT License
498 stars 48 forks source link

End stdin on ctrl+d #204

Closed vendethiel closed 11 years ago

vendethiel commented 11 years ago

Looks like Windows can't generate EOF, which prevents using coco -s

satyr commented 11 years ago

Should it be CTRL+D ... Should it be CTRL+Z ...

How about both.

maybe another way to track that ?

No idea.

do you not want that

Doesn't hurt I guess. Lemme whip up a cleaner patch.

vendethiel commented 11 years ago

Indeed cleaner, but I wanted 3 + 4<ctrl-D> to work too. (No idea I could've used it.0 haha...).

satyr commented 11 years ago

Uh. So 3 + 4<^D> + 5 should read as 3 + 4 as well?

Seems a lil too much to allow those EOF characters terminate anywhere, since they can validly appear in a JS string.

vendethiel commented 11 years ago

No - not anywhere.

if it.0 of [4 26] or it[*-1] of [4 26]

While I'm at it, just asking - would you mind a PR for a real website, not just 4/5 coco-related links ? Rather than the additions page.

satyr commented 11 years ago

I see, last-position-only makes more sense. Can do that.

Since you have to enter anyway, code.slice(-3) would be '\x04\r\n' right?

would you mind a PR for a real website, not just 4/5 coco-related links ? Rather than the additions page.

PR for index.html? 'course welcome.

vendethiel commented 11 years ago

right?

yes

PR for index.html? 'course welcome.

will select a theme and put things in form - got people interested in that too