Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | config: add stylesheet, apply siteconf to piped input | bptato | 2023-06-26 | 1 | -13/+19 | |
| | ||||||
* | Fix crash in openEditor if SIGINT was delivered | bptato | 2023-06-26 | 1 | -0/+1 | |
| | | | | | | | | | | | nvi for example sets ISIG and traps SIGINT. Without this patch, this would propagate to all processes in the same process group and kill them. (It still does, but we set a signalHandler to ignore that.) Still not perfect, because for some reason we receive WIFSIGNALED even if the signal did not actually kill the editor. For now, we just treat this as a success. | |||||
* | hacks for readline so that it at least kind of works | bptato | 2023-06-25 | 2 | -2/+13 | |
| | | | | Proper fix needed later | |||||
* | pager: alert on invalid regex | bptato | 2023-06-24 | 1 | -12/+13 | |
| | ||||||
* | Option -> Opt in config, return error in compileSearchRegex | bptato | 2023-06-24 | 1 | -6/+7 | |
| | ||||||
* | Only set terminal title when it is a tty | bptato | 2023-06-24 | 1 | -2/+5 | |
| | | | | Avoid writing the escape sequence when dumping files. | |||||
* | Working Nim-QuickJS GC integration | bptato | 2023-06-24 | 1 | -1/+2 | |
| | | | | I believe this works correctly. Hopefully I'm not wrong. | |||||
* | term: fix clearEnd regression | bptato | 2023-06-23 | 1 | -1/+3 | |
| | | | | Sending EL at EOL clears the last character, so we avoid doing that. | |||||
* | Fix module loading bugs | bptato | 2023-06-22 | 1 | -8/+17 | |
| | ||||||
* | Reject fetch promise on network error | bptato | 2023-06-19 | 1 | -1/+1 | |
| | | | | Instead of setting the non-standard res variable. | |||||
* | Get rid of the .jserr pragma | bptato | 2023-06-19 | 2 | -2/+2 | |
| | ||||||
* | Rework JS exception system | bptato | 2023-06-19 | 1 | -0/+3 | |
| | | | | | Now we use Result for passing exceptions to JS. As a result, we can finally get rid of the .jserr pragma. | |||||
* | Cleanups & bug fixes involving promises | bptato | 2023-06-15 | 1 | -0/+1 | |
| | | | | | Now a promise returning nil doesn't just leave the rest of the then chain hanging. Hooray. | |||||
* | Make Result.text, json return promise | bptato | 2023-06-13 | 1 | -4/+2 | |
| | ||||||
* | Fix various layout bugs, prepare for image support | bptato | 2023-06-12 | 1 | -0/+3 | |
| | ||||||
* | Add readBlob, fix WebFile serialization | bptato | 2023-06-11 | 1 | -1/+7 | |
| | | | | It's still kind of a mess, but it kind of works? | |||||
* | Fix color U, slightly change contrast algorithm | bptato | 2023-06-10 | 1 | -5/+14 | |
| | ||||||
* | approximateANSIColor: fix possible underflow | bptato | 2023-06-10 | 1 | -3/+4 | |
| | ||||||
* | Fix some type confusion with colors, fix crash in pager | bptato | 2023-06-09 | 2 | -9/+12 | |
| | ||||||
* | Show error messages, fix some fetch crashes | bptato | 2023-06-09 | 1 | -1/+4 | |
| | ||||||
* | Fix 'F' missing from fullwidth chars + display bugs | bptato | 2023-06-09 | 2 | -40/+42 | |
| | ||||||
* | Add missing null check | bptato | 2023-06-07 | 1 | -1/+2 | |
| | ||||||
* | Add XTERM title renaming | bptato | 2023-06-07 | 2 | -27/+26 | |
| | ||||||
* | Clean up stream error handling | bptato | 2023-06-07 | 1 | -0/+2 | |
| | | | | | | * sread now raises EOFError if readData returns too few bytes * buffer handleError ignores unregistered fds like client * client handleError ignores unregistered fds like buffer | |||||
* | Fix bug in client's unregistered fd handling | bptato | 2023-06-06 | 1 | -2/+6 | |
| | | | | + run JS jobs after every poll in headless mode | |||||
* | Add support for canvas and multipart | bptato | 2023-06-05 | 1 | -0/+6 | |
| | | | | | | | | | | | | | | | Quite incomplete canvas implementation. Crucially, the layout engine can't do much with whatever is drawn because it doesn't support images yet. I've re-introduced multipart as well, with the FormData API. For the append function I've also introduced a hack to the JS binding generator that allows requesting the JSContext pointer in nim procs. Really I should just fix the union generator thing and add support for overloading. In conclusion, for now the only thing canvas can be used for is exporting it as PNG and uploading it somewhere. Also, we now have PNG encoding and decoding too. (Now if only we had sixels as well...) | |||||
* | Fix more config inconsistencies | bptato | 2023-06-01 | 1 | -10/+11 | |
| | | | | So that the default config actually works again. Also some doc updates. | |||||
* | Add module loading to client | bptato | 2023-06-01 | 1 | -0/+24 | |
| | | | | Files only, for now. | |||||
* | Add setTimeout, setInterval to window | bptato | 2023-06-01 | 1 | -83/+27 | |
| | ||||||
* | Run JS jobs in headless mode too | bptato | 2023-05-22 | 1 | -0/+2 | |
| | | | | As previous commit, just for headless mode | |||||
* | Run JS jobs on timeout handlers | bptato | 2023-05-21 | 1 | -0/+2 | |
| | ||||||
* | Rewrite new Request binding | bptato | 2023-05-21 | 1 | -1/+1 | |
| | | | | | Still far from perfect, but now at least it has a bit more to do with what the standard mandates. | |||||
* | Add display/output encoding | bptato | 2023-05-19 | 2 | -12/+49 | |
| | | | | Some encodings are still missing | |||||
* | Refactor config, add charset opts | bptato | 2023-05-16 | 3 | -42/+56 | |
| | | | | Only document-charset supported for now. | |||||
* | Fix some fetch crashes | bptato | 2023-05-11 | 1 | -1/+4 | |
| | | | | Now it should work for very basic use-cases | |||||
* | Improve debugging, reduce crashes | bptato | 2023-05-09 | 1 | -1/+23 | |
| | | | | Loader no longer dies when not everything is read from the stream. | |||||
* | WIP fetch | bptato | 2023-04-30 | 1 | -0/+4 | |
| | ||||||
* | setTimeout, setInterval: hack to fix 0 timeout | bptato | 2023-02-09 | 1 | -2/+2 | |
| | | | | Timers with a timeout < 1 seem to block indefinitely. No clue why. | |||||
* | Slightly improve request api (less crashes) | bptato | 2023-02-05 | 1 | -1/+1 | |
| | ||||||
* | pager, term: fix inefficiencies, off by one errors | bptato | 2023-01-11 | 2 | -13/+15 | |
| | | | | and other weird things I forgot to remove while debugging | |||||
* | display/pager: correct maximum status message width | bptato | 2023-01-07 | 1 | -4/+6 | |
| | ||||||
* | Slightly refactor commandMode | bptato | 2023-01-06 | 2 | -10/+19 | |
| | ||||||
* | display/client: quit when pager.buffer is null | bptato | 2023-01-05 | 1 | -0/+3 | |
| | ||||||
* | Get rid of eprint in place of stderr.write | bptato | 2023-01-05 | 1 | -1/+1 | |
| | | | | eprint should only be used for debugging. | |||||
* | Add ask() | bptato | 2023-01-05 | 2 | -47/+80 | |
| | ||||||
* | pager: fix prevBuffer, nextBuffer, replace weirdness | bptato | 2023-01-04 | 1 | -8/+16 | |
| | | | | Now they should behave as expected. (I hope.) | |||||
* | client, pager, dom, ...: better error handling | bptato | 2023-01-04 | 2 | -83/+92 | |
| | | | | Now the browser shouldn't completely die when a buffer crashes. | |||||
* | container, pager: work around bad codegen | bptato | 2023-01-02 | 1 | -7/+7 | |
| | ||||||
* | term: hack to avoid a weird crash | bptato | 2023-01-02 | 1 | -2/+8 | |
| | | | | Looks like we can't just assign canvas to pcanvas. | |||||
* | Fix connection load info not being shown | bptato | 2023-01-02 | 2 | -3/+6 | |
| |