about summary refs log tree commit diff stats
path: root/src/display
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve encoding supportbptato2023-07-122-31/+60
| | | | | | | | * Use the output charset in lineedit (as w3m does) * encoder: fix broken UTF-8 encoding, use openArray instead of var seq for input queue * Add RuneStream as an in-memory interface to EncoderStream * Document display-charset config option
* Buffer search fixes & improvementsbptato2023-07-111-27/+39
| | | | | * Fix race condition in updateReadLineISearch * Disable reshape during isearch
* term: fix cursorGoto without termcapbptato2023-07-101-1/+1
|
* htmlparser: decouple from DOMbptato2023-07-091-1/+1
| | | | | Instead of directly appending nodes to the DOM, use a DOMBuilder interface.
* term: fix ANSI color approximationbptato2023-07-061-7/+8
| | | | Fixes a bug that lead to incorrect color approximation.
* Add popup menu for select elementbptato2023-07-051-54/+12
| | | | | | | Replaces the weird CSS implementation we have had until now with a searchable popup menu similar to that of w3m. (The previous implementation broke on websites that do not expect <select> to expand on click, had no separate search, and was ugly.)
* Add proxy supportbptato2023-07-042-19/+28
|
* pager: do not store jsctxbptato2023-07-041-12/+12
|
* Do not conditionally disable CastSizesbptato2023-07-031-6/+1
| | | | ...because that doesn't work at all.
* Fix JS type conversion regressionsbptato2023-07-031-3/+6
|
* Fix CastSize warningsbptato2023-07-031-1/+3
| | | | Introduced by 1.6.14. Warns of undefined behavior.
* Add XHR/Event stubsbptato2023-07-021-3/+7
|
* Factor out headers into separate modulebptato2023-07-012-0/+3
|
* use =destroy instead of finalizersbptato2023-07-012-1/+6
| | | | | This should help with moving to ORC in the future. (Also, finalizers do not work very well in the first place.)
* Add window.locationbptato2023-06-291-1/+1
| | | | Note: setters do not work yet.
* Do not block indefinitely if buffer crashes before acceptbptato2023-06-291-34/+46
| | | | Kind of a hack, but better than nothing.
* Do not free jsrt in quit()bptato2023-06-291-2/+2
| | | | | | Free'ing jsrt triggers a QuickJS assertion, presumably because of references still existing to the global object. Needs a proper fix later, for now it's just annoying.
* Free JSRuntime, JSContext and ctors on exitbptato2023-06-271-1/+8
|
* term: convert 8-bit colors to ANSIbptato2023-06-271-0/+6
| | | | (Instead of crashing)
* Support 8-bit output colorsbptato2023-06-261-20/+48
|
* config: add stylesheet, apply siteconf to piped inputbptato2023-06-261-13/+19
|
* Fix crash in openEditor if SIGINT was deliveredbptato2023-06-261-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 worksbptato2023-06-252-2/+13
| | | | Proper fix needed later
* pager: alert on invalid regexbptato2023-06-241-12/+13
|
* Option -> Opt in config, return error in compileSearchRegexbptato2023-06-241-6/+7
|
* Only set terminal title when it is a ttybptato2023-06-241-2/+5
| | | | Avoid writing the escape sequence when dumping files.
* Working Nim-QuickJS GC integrationbptato2023-06-241-1/+2
| | | | I believe this works correctly. Hopefully I'm not wrong.
* term: fix clearEnd regressionbptato2023-06-231-1/+3
| | | | Sending EL at EOL clears the last character, so we avoid doing that.
* Fix module loading bugsbptato2023-06-221-8/+17
|
* Reject fetch promise on network errorbptato2023-06-191-1/+1
| | | | Instead of setting the non-standard res variable.
* Get rid of the .jserr pragmabptato2023-06-192-2/+2
|
* Rework JS exception systembptato2023-06-191-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 promisesbptato2023-06-151-0/+1
| | | | | Now a promise returning nil doesn't just leave the rest of the then chain hanging. Hooray.
* Make Result.text, json return promisebptato2023-06-131-4/+2
|
* Fix various layout bugs, prepare for image supportbptato2023-06-121-0/+3
|
* Add readBlob, fix WebFile serializationbptato2023-06-111-1/+7
| | | | It's still kind of a mess, but it kind of works?
* Fix color U, slightly change contrast algorithmbptato2023-06-101-5/+14
|
* approximateANSIColor: fix possible underflowbptato2023-06-101-3/+4
|
* Fix some type confusion with colors, fix crash in pagerbptato2023-06-092-9/+12
|
* Show error messages, fix some fetch crashesbptato2023-06-091-1/+4
|
* Fix 'F' missing from fullwidth chars + display bugsbptato2023-06-092-40/+42
|
* Add missing null checkbptato2023-06-071-1/+2
|
* Add XTERM title renamingbptato2023-06-072-27/+26
|
* Clean up stream error handlingbptato2023-06-071-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 handlingbptato2023-06-061-2/+6
| | | | + run JS jobs after every poll in headless mode
* Add support for canvas and multipartbptato2023-06-051-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 inconsistenciesbptato2023-06-011-10/+11
| | | | So that the default config actually works again. Also some doc updates.
* Add module loading to clientbptato2023-06-011-0/+24
| | | | Files only, for now.
* Add setTimeout, setInterval to windowbptato2023-06-011-83/+27
|
* Run JS jobs in headless mode toobptato2023-05-221-0/+2
| | | | As previous commit, just for headless mode