| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now we just pass down the value of n and check errno, plus
readDataLoop/writeDataLoop returns a bool indicating whether it failed.
For now this seems to work OK, but maybe I'll add a better abstraction
in the future.
EOFError is still used for handling failed packets; this is brittle,
and should be replaced once we have a proper buffering mechanism for
them. (That will also let us kill BufStream.)
Unrelated: this also fixes a bug in buffer with cacheId.
|
|
|
|
| |
it's still not quite there yet T_T
|
|
|
|
|
| |
Greatly reduces binary sizes. I won't risk it for protocols yet.
Neither for img, because it doesn't work with sixel at all. (y?)
|
|
|
|
|
|
| |
also, make gopher2html more lenient, and add some functioning error
handling in our nc clone. (other scripts still have to be updated to
benefit from this)
|
|
|
|
|
|
|
|
|
| |
* make it so 'echo "$var\n" | urlenc' works as expected
* add special query encode set
* set default encode set to form data
* document encode sets in help message
also, remove a redundant percentEncode implementation from gopher2html
|
|
|
|
|
|
|
|
|
| |
Simple netcat clone, useful for portable scripts. Especially because
some netcats will close the connection as soon as I close stdin... this
one only quits when either stdout or the socket refuses new data.
Also, it uses our standard TCP connection routine, meaning it respects
ALL_PROXY. (i.e. now spartan works with socks5 too)
|
|
|
|
| |
also, move the ln command to make all
|
|
|
|
| |
e.g. `man 2 -k blah' should not override the section
|
| |
|
|
|
|
|
|
|
|
|
|
| |
derived from w3mman2html.cgi, there are only a few minor differences:
* different man page opener command
* use man:, man-k:, man-l: instead of query string to specify action
* no form input (C-lC-uman:pageC-m is faster anyway)
TODO rewrite in Nim so we don't have to depend on Perl...
|
|
* Fix incorrect internal definition of the fragment percent-encode set
* urlenc, urldec: these are simple utility programs mainly for use
with shell local CGI scripts. (Sadly the printf + xargs solution is
not portable.)
* Pass libexec directory as an env var to local CGI scripts
* Update trans.cgi to use urldec and add an example for combining
it with selections
|