| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
| |
POSIX does not guarantee that an error is negative.
|
| |
|
| |
|
|
|
|
|
|
|
| |
turns out whitespace-only lines also count as blanks
also, fix the long-standing issue where a paragraph in a list would
break out of the list
|
|
|
|
|
|
| |
the types are from gopher+.
(not that we support gopher+, but they work anyways if mime.types and
mailcap is configured)
|
| |
|
|
|
|
| |
no longer needed as we just redirect on wrong dir URLs
|
|
|
|
|
|
| |
It does not have to, according to the standard.
(Slashes before the item selector are still collapsed.)
|
| |
|
|
|
|
| |
Assume it is required, so that we can still skip the first scan.
|
|
|
|
| |
gmifetch did this, but apparently it got lost in the rewrite.
|
| |
|
|
|
|
| |
for consistency
|
| |
|
| |
|
|
|
|
|
|
|
| |
* query, fragment are now strings, not options
* get rid of Host, Path types, now hostname/pathname are strings
* fix ipv4 parsing error case
* in file protocol, fix URL for dirlist without slash with a redirection
|
|
|
|
|
|
|
| |
* add some more env vars to makefile
* remove fpermissive from GCC builds
* update Monoucha
* fix borked seccomp filter length safety check (ugh)
|
| |
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
|
| |
* line, vector, matrix -> path
* twtuni, charcategory -> twtstr
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I'm starting to favor dotfiles over XDG basedirs, but there's no reason
why we couldn't have both. So now the search path is:
0. if config was set through -C, use that
1. $CHA_CONFIG_DIR is set -> $CHA_CONFIG_DIR/config.toml
2. $XDG_CONFIG_HOME is set -> $XDG_CONFIG_HOME/chawan/config.toml
3. ~/.config/chawan/config.toml exists -> use that
4. ~/.chawan/config.toml exists -> use that
Notably, this makes it so the default directory is ~/.chawan *if* you
don't have an existing config.toml file. So in that case known_hosts
will be placed in ~/.chawan/known_hosts. However, configurations with a
config in ~/.config/chawan/config.toml continue to work as expected, as
for those the known_hosts file remains inside ~/.config/chawan/.
Finally, I've added a default user CGI directory to reduce friction in
setting CGI up. (Like known_hosts, it's also relative to whatever config
dir you have.)
|
| |
|
| |
|
|
|
|
| |
also, parse the last paragraph properly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Just to remove a level of indirection; the libcurl API is annoying to
deal with when you don't even need asynchrony.
It doesn't change anything in actual dependencies, because libcurl uses
libssh2 too - however, now only http depends on libcurl, which makes
reducing it to an optional module feasible.
Still, I've listed libssh2 (along with OpenSSL - long overdue) in the
readme just in case some OS doesn't pull in the headers by default as
a libcurl dependency.
Also, fix some bugs:
* fix missing CWD command in FTP
* resolve directories even if they don't end in /
* allow links without -> in dirlist
|
| |
|
| |
|
|
|
|
|
| |
I originally left this at 32-bits because I was on a 32-bit arch, but
that is no longer the case.
|
|
|
|
|
|
|
|
| |
* fix line not being printed on pre end
* add head to pre tags
- this isn't in CommonMark, but it makes it easier to write
hybrid markdown/HTML.
* use character range constants
|
|
|
|
|
| |
On a second thought, no timeouts for name resolution is fine - and even
if it weren't, it's better implemented in the loader.
|
| |
|
|
|
|
|
|
|
|
| |
so it turns out you *can't* just deref refcounted strings through
a ptr...
the entire algorithm was a mess anyway, so I've just re-done the sorting
with refc.
|
|
|
|
|
|
|
| |
not quite sure this approach is right, because it still won't work with
HTTPS without linking everything with OpenSSL...
maybe a socks5 bridge through a UNIX socket would work better?
|
|
|
|
|
| |
* use correct headers for types (libressl doesn't have types.h)
* use SSL_get_peer_certificate (libressl doesn't have a get0 variant)
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Now the dirlist parser lives inside dirlist2html, and the file protocol
just emulates FTP LIST.
|
|
|
|
|
|
|
|
|
|
| |
This finally makes it possible to use socks5 for Gemini.
Also slightly refactored the config, to make it easier to pass on the
config dir.
By the way, the known_hosts file is now stored in the config dir too.
The adapter will try to move it to there from the old location.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Substitute tabs with one of eight PUA characters based on their width,
and convert them back in the pager:
* TUI mode always prints spaces, but now handles tabs appropriately on
cursor movement
* dump mode tries to preserve hard tabs, but uses soft tabs when that is
not possible (e.g. tabs after a margin, tab with background color,
etc)
* selection mode always outputs hard tabs.
|
| |
|
|
|
|
|
|
|
|
| |
since that's our input color space
(Actually, mainstream browsers seem to use linear scaling nevertheless.
But apparently that produces surprising results in some cases, and stbir
can do srgb, so might as well use it.)
|
|
|
|
|
|
| |
* split out CSSColor from CellColor; now CellColor is just 4 bytes
(which helps reduce FormatCell size)
* unify color function naming (still not perfect)
|
| |
|
| |
|
| |
|
|
|
|
| |
now I know why overloading dealloc felt wrong
|
|
|
|
|
|
|
| |
Makes it slightly easier to debug image output.
Also, we stop sending dimension headers, and no longer check for the
scheme env var to make CLI invocation a bit less annoying.
|