about summary refs log tree commit diff stats
path: root/src/local/term.nim
Commit message (Collapse)AuthorAgeFilesLines
* term: query sixel color register numberbptato2024-04-271-32/+51
|
* Remove unnecessary unsigned castsbptato2024-04-261-2/+2
| | | | | Unsigned operations and conversions to unsigned types always wrap/narrow without checks, so no need to manually mask/cast/etc. them.
* term: add sixel encoderbptato2024-04-251-84/+179
|
* Initial image supportbptato2024-04-251-12/+85
| | | | | | | | | | | | | | | | | * png: add missing filters, various decoder fixes * term: fix kitty response interpretation, add support for kitty image detection * buffer, pager: initial image display support Emphasis on "initial"; it only "works" with kitty output and PNG input. Also, it's excruciatingly slow, and repaints images way too often. Left undocumented intentionally it for now, until it actually becomes useful. In the meantime, adventurous users can find out themselves why: [[siteconf]] url = "https://.*" images = true
* Update code stylebptato2024-04-171-27/+28
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* term: save/restore title after "set title"bptato2024-04-161-2/+12
| | | | | | | | | It is quite straightforward, because XTerm has a functionality to do just this. (In fact, it automatically restores the title when I use smcup/rmcup. But when I don't, it will linger until I close the window or change the title again.)
* term: do not eat last DA1 valuebptato2024-04-101-3/+9
|
* term: flush stdout in anyKeybptato2024-03-291-0/+1
|
* term: improve color detectionbptato2024-03-271-5/+16
| | | | | some terminals (alacritty) don't support XTGETTCAP and don't even respond with ANSI color support to DA1, so just fall back to termcap.
* config, toml: rename enumsbptato2024-03-261-13/+13
|
* term: use termcap for italic resetbptato2024-03-211-3/+7
|
* cell: update FormatFlag naming, remove useless templatesbptato2024-03-211-15/+15
|
* client: refactor inputbptato2024-03-181-41/+113
| | | | | * move mouse handling to term * do not use File for input just to disable buffering anyway
* client, pager: various file saving fixesbptato2024-03-161-2/+2
| | | | | | * do not immediately quit when all containers are gone * fix double saving bug * fix wrong "save to" string
* Move around some modulesbptato2024-03-141-0/+899
* extern -> gone, runproc absorbed by pager, others moved into io/ * display -> local/ (where else would we display?) * xhr -> html/ * move out WindowAttributes from term, so we don't depend on local from server