| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Makes it so we don't crash the entire browser upon encoding failure.
|
|
|
|
|
|
|
| |
Until recently, glibc used to implement it as fstatat. So don't trap
for fstatat (and for consistency, fstat), but return EPERM.
Just to be sure, rewrite sixel & stbi to never call fread.
|
|
|
|
| |
unused
|
|
|
|
| |
select allocates. (makes sense, but I never realized...)
|
|
|
|
|
|
|
| |
pain...
(also, fix an fd leak, plus a more general bug where we registered
empty output handles.)
|
| |
|
|
|
|
| |
+ be a bit more paranoid about double closes
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Instead of storing pointers to cstrings, put all of them in a single
huge string and store indices of that.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* stream: and passFd is now client-based, and accessible for buffers
* Bitmap's width & height is now int, not uint64
* no more non-network Bitmap special case in the pager for canvas
I just shoehorned it into the static image model, so it still doesn't
render changes after page load. But at least now it doesn't crash the
browser.
|
|
|
|
|
| |
it's really min-height, not height; consistency is not CSS's strong
suit...
|
|
|
|
|
|
|
|
| |
* expand allowed color range somewhat
* update maximum sixel size on window resize
* fix kitty image cropping
* use faster algorithm for sixel compression (also produces less
wasteful output)
|
|
|
|
|
|
| |
* don't emit transparency request when we don't need it
* add lookup table for missing hash entries
* write(2)'ize
|
|
|
|
| |
& clean up outputSixelImage in general
|
|
|
|
|
|
|
| |
in fact, we consider these to be the same image, and arguably that's
a bug in and of itself. but at least we don't crash anymore.
(also, update todo)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* fix return type
* don't choke on empty bitmaps
* don't check for Cha-Image-Dimensions in encoder output (it was unused
anyways)
Mainly so that I can spec the encoder without Cha-Image-Dimensions as an
output header - it's pointless redundancy.
|
|
|
|
|
|
|
|
| |
This caches sixel output. Works best when the line height is a multiple
of 6px, but should still be faster than the previous solution everywhere
else too (simply by virtue of encoding separate images in parallel).
Next step: actual color quantization
|
|
|
|
|
| |
avoid adding whitespace to the previous atom if it's not on the current
line
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
If TERM is unrecognized by termcap, retry as dosansi.
When that fails, just fall back to the non-termcap code path.
(There is no reason to panic without termcap; it's just one of the
several capability detection mechanisms we use.)
|
|
|
|
|
|
|
|
| |
Setting the new hover value before unsetting the previous one would
unset the new hover value for nodes in the same branch.
In particular, this broke hover when moving the cursor from a pseudo
element (e.g. ::before) to its parent.
|
|
|
|
|
|
| |
* actually download & compile modules (but don't run them yet)
* fix a bug in XHR (on some older Nim versions, move() doesn't
actually move)
|
|
|
|
|
|
|
|
|
|
| |
* add responseText, response
* add net tests
-> currently sync XHR only; should find a way to do async
tests...
* update monoucha
-> simplified & updated some related code that no longer worked
properly
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix header case sensitivity issues
-> probably still wrong as it discards the original
casing. better than nothing, anyway
* fix fulfill on generic promises
* support standard open() async parameter weirdness
* refactor loader response body reading (so bodyRead is no longer
mandatory)
* actually read response body
still missing: response body getters
|
|
|
|
|
|
| |
* don't accept flags specified as named fields
* don't error out on named field specified as flag
* allow trailing whitespace on named fields & flags
|
|
|
|
|
|
| |
* parse last line even if it doesn't end with LF
* parse flags & named fields case-insensitively
* update naming
|
|
|
|
| |
Dispatch manually with fromJS instead.
|
|
|
|
| |
+ slightly optimize getContentType
|
|
|
|
| |
It did not actually break rewrite-url, but was still annoying.
|
|
|
|
| |
Nim 1.6 does not like it.
|
|
|
|
| |
called on armhf
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
data URIs can get megabytes long; however, you can only stuff so many
bytes into the envp. (This was thwarting my efforts to view pandoc-
generated standalone HTML in Chawan.) So put `data:' back into the
loader process.
|
|
|
|
| |
was only used by the PNG decoder which got replaced by stbi
|
| |
|
| |
|
|
|
|
|
|
|
| |
* cssvalues, twtstr: unify enum parsing code paths, parse enums by
bisearch instead of hash tables
* mediaquery: refactor (long overdue), fix range comparison syntax
parsing, make ident comparisons case-insensitive (as they should be)
|
| |
|
|
|
|
|
|
|
| |
* History: doesn't really do anything, just adding it to fix some pages
* LocalStorage: kind of works, but does lookups with linear search, and
the quota limitation is on the number of entries not their size. plus
it doesn't actually store anything on disk yet (like cookies).
|
|
|
|
| |
use JSValue varargs instead
|
|
|
|
|
| |
+ also send register & image dimension queries in forced sixel mode,
and image dimension query on window resize
|