Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove newFormat | bptato | 2024-01-23 | 1 | -3/+3 |
| | | | | Pointless; it just returned a default zero-initialized object. | ||||
* | Remove std/terminal dependency | bptato | 2024-01-17 | 1 | -14/+30 |
| | | | | It is mostly unnecessary, and conflicts with our use of termcap anyway. | ||||
* | Use std/* imports everywhere | bptato | 2024-01-07 | 1 | -9/+9 |
| | |||||
* | Compile with styleCheck:usages | bptato | 2023-12-28 | 1 | -5/+5 |
| | | | | much better | ||||
* | break up twtstr somewhat | bptato | 2023-12-13 | 1 | -0/+1 |
| | | | | | Avoid computing e.g. charwidth data for http which does not need it at all. | ||||
* | pager, container: add text selection/copying | bptato | 2023-12-03 | 1 | -3/+12 |
| | | | | | | | | | | * Add select & copy selection functionality to container * Fix bug in generateSwapOutput where output could be misplaced because of zero-width cells * Add fromJSPromise, call runJSJobs in every iteration of the headed event loop * "await" pager actions that output a promise * Change default view source keybinding to `\' | ||||
* | pager: fix regression | bptato | 2023-11-21 | 1 | -2/+2 |
| | | | | | pager.tty refers to infile, not outfile. rename to avoid further confusion | ||||
* | bindings: find termcap on FreeBSD | bptato | 2023-11-21 | 1 | -8/+8 |
| | | | | | pkg-config does not find termcap (or really, ncurses) here, so we have to find it ourselves. | ||||
* | pager: remove pager.tty member | bptato | 2023-11-21 | 1 | -4/+5 |
| | | | | now it's a function | ||||
* | term: replace control chars in setTitle | bptato | 2023-10-20 | 1 | -1/+5 |
| | |||||
* | WindowAttributes: refactor | bptato | 2023-10-19 | 1 | -1/+1 |
| | | | | | | * rename module (window -> winattrs, to avoid conflict with env/window) * do not use result * remove unused cell_ratio | ||||
* | term: un-export canvas | bptato | 2023-10-01 | 1 | -1/+1 |
| | |||||
* | term: simplify/cleanup | bptato | 2023-09-18 | 1 | -77/+17 |
| | |||||
* | move around more modules | bptato | 2023-09-14 | 1 | -3/+3 |
| | | | | | | | | | | * ips -> io/ * loader related stuff -> loader/ * tempfile -> extern/ * buffer, forkserver -> server/ * lineedit, window -> display/ * cell -> types/ * opt -> types/ | ||||
* | add extern, refactor some term functions | bptato | 2023-09-09 | 1 | -47/+54 |
| | | | | | | | | | | | * Add an extern() call. Maybe it should be defined on client. It certainly should accept a dictionary instead of the enum type we use now. Perhaps it should return the error code? I'll leave it undocumented until I figure this out. * Refactor enableRawMode, unblockStdin, etc. so that they operate on the term object instead of global state. * Move editor to a separate folder, and factor out runprocess into a different module. | ||||
* | Move charsets into chakasu | bptato | 2023-08-14 | 1 | -2/+3 |
| | | | | Operation "modularize Chawan somewhat" part 1 | ||||
* | Add default background/foreground color override | bptato | 2023-07-29 | 1 | -38/+39 |
| | |||||
* | Improve encoding support | bptato | 2023-07-12 | 1 | -29/+58 |
| | | | | | | | | * 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 | ||||
* | term: fix cursorGoto without termcap | bptato | 2023-07-10 | 1 | -1/+1 |
| | |||||
* | term: fix ANSI color approximation | bptato | 2023-07-06 | 1 | -7/+8 |
| | | | | Fixes a bug that lead to incorrect color approximation. | ||||
* | term: convert 8-bit colors to ANSI | bptato | 2023-06-27 | 1 | -0/+6 |
| | | | | (Instead of crashing) | ||||
* | Support 8-bit output colors | bptato | 2023-06-26 | 1 | -20/+48 |
| | |||||
* | hacks for readline so that it at least kind of works | bptato | 2023-06-25 | 1 | -1/+1 |
| | | | | Proper fix needed later | ||||
* | Only set terminal title when it is a tty | bptato | 2023-06-24 | 1 | -2/+5 |
| | | | | Avoid writing the escape sequence when dumping files. | ||||
* | 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 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 | 1 | -8/+11 |
| | |||||
* | Fix 'F' missing from fullwidth chars + display bugs | bptato | 2023-06-09 | 1 | -34/+29 |
| | |||||
* | Add XTERM title renaming | bptato | 2023-06-07 | 1 | -27/+21 |
| | |||||
* | Add display/output encoding | bptato | 2023-05-19 | 1 | -10/+45 |
| | | | | Some encodings are still missing | ||||
* | Refactor config, add charset opts | bptato | 2023-05-16 | 1 | -12/+12 |
| | | | | Only document-charset supported for now. | ||||
* | pager, term: fix inefficiencies, off by one errors | bptato | 2023-01-11 | 1 | -7/+6 |
| | | | | and other weird things I forgot to remove while debugging | ||||
* | term: hack to avoid a weird crash | bptato | 2023-01-02 | 1 | -2/+8 |
| | | | | Looks like we can't just assign canvas to pcanvas. | ||||
* | Proper support for tabs | bptato | 2022-12-27 | 1 | -7/+11 |
| | |||||
* | Add unicode normalization, etc | bptato | 2022-12-19 | 1 | -6/+18 |
| | |||||
* | Fix a processFormat bug | bptato | 2022-12-16 | 1 | -4/+6 |
| | |||||
* | term: improve screen/line clearing | bptato | 2022-12-15 | 1 | -4/+12 |
| | |||||
* | Add all sorts of config options and cookies | bptato | 2022-12-13 | 1 | -15/+20 |
| | |||||
* | Fix color contrast correction | bptato | 2022-12-12 | 1 | -28/+27 |
| | | | | | Instead of just inverting the color and hoping for the best, convert it to YUV and increase/decrease luminance based on results. | ||||
* | Fix -d | bptato | 2022-12-10 | 1 | -23/+44 |
| | |||||
* | Fix blocking socketstream recv/send, clean up ips/serialize & types/color | bptato | 2022-12-10 | 1 | -4/+4 |
| | | | | Write always blocks for now, as it's too big of a footgun not to | ||||
* | Fix overline emulation in middle of line | bptato | 2022-12-07 | 1 | -0/+11 |
| | |||||
* | Add multiple text-decoration, overline emulation | bptato | 2022-12-07 | 1 | -1/+21 |
| | |||||
* | Add force-clear | bptato | 2022-12-07 | 1 | -1/+1 |
| | |||||
* | Make redraw() actually clear the screen | bptato | 2022-12-01 | 1 | -0/+3 |
| | | | | It's more useful this way. | ||||
* | term: fix cursorForward, cursorBackward | bptato | 2022-11-30 | 1 | -2/+2 |
| | |||||
* | Add textarea | bptato | 2022-11-28 | 1 | -0/+472 |
Editing is implemented using an external editor (like vi). |