News for hackers. Stuff that matters.
Re:htty, the HTTP TTY by steve19 on Tuesday September 07, 2010 @06:58AM (#1668555)
This app is crying out for readline support and command completion!
Re:htty, the HTTP TTY by kree10 on Tuesday September 07, 2010 @08:22AM (#1668683)
I'd take the next logical step: integrate it with a shell, much like zsh's zftp module does for FTP sessions.

I may have to write this now.

Re:htty, the HTTP TTY by tyweir on Tuesday September 07, 2010 @10:50AM (#1668999)
Please let HN know if you do in fact do this, as it would no doubt be beneficial to a good percentage.
Re:htty, the HTTP TTY by njonsson on Tuesday September 07, 2010 @02:48PM (#1669711)
I'm interested to see where you go with this. Thanks in advance for contributing.
Re:htty, the HTTP TTY by parenthesis on Tuesday September 07, 2010 @09:21AM (#1668789)
Re:htty, the HTTP TTY by telemachos on Tuesday September 07, 2010 @01:03PM (#1669392)
This is interesting, but I'm curious: what do people think are the advantages or disadvantages of using this instead of Ruby's own readline support?

(My first thought: rlwrap already exists. Add one point. A disadvantage is that rlwrap makes the readline support depend on an external, third-party program which would need to be installed separately. Subtract one?)

Re:htty, the HTTP TTY by njonsson on Tuesday September 07, 2010 @02:46PM (#1669707)
I agree. Minimizing external dependencies (with a particular focus on the OS X experience) was a guiding principle of the project.

I will probably use Ruby Readline (http://bogojoker.com/readline) to implement this. Another planned feature will likely require using Curses. It would be nice to reduce these two dependencies to one, but I'm not sure I'll start by reimplementing Ruby Readline in Curses.

Re:htty, the HTTP TTY by steve19 on Tuesday September 07, 2010 @03:41PM (#1669874)
rlwrap is useful, but it lacks command tab completion.

Typing

http://www.google.com>; co[tab]-a

is much easier than typing

http://www.google.com>; cookies-a

Re:htty, the HTTP TTY by parenthesis on Tuesday September 07, 2010 @04:41PM (#1670023)
rlwrap can do completion, given a little setting-up: http://utopia.knoware.nl/~hlub/rlwrap/rlwrap.html