| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | * | | changelog: box drawing characters are rendered by foot | Daniel Eklöf | 2021-01-01 | -0/+2 | |
| | | | | |||||
| | * | | box-drawing: LIGHT DIAGONALs | Daniel Eklöf | 2021-01-01 | -6/+50 | |
| | | | | | | | | | | | | | | | | | | | * U+2571 * U+2572 * U+2573 | ||||
| | * | | box-drawing: silence variable-may-not-be-initialized warnings | Daniel Eklöf | 2021-01-01 | -2/+2 | |
| | | | | |||||
| | * | | box-drawing: LIGHT/HEAVY DOUBLE/TRIPLE/QUADRUPLE VERTICAL | Daniel Eklöf | 2021-01-01 | -72/+138 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also combine the HORIZONTAL versions into a single draw function. * U+2506 * U+2507 * U+250A * U+250B * U+254E * U+254F | ||||
| | * | | box-drawing: LIGHT/HEAVY DOUBLE/TRIPLE/QUADRUPLE HORIZONTAL | Daniel Eklöf | 2021-01-01 | -6/+130 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | *U+2504 *U+2505 *U+2508 *U+2509 *U+254C *U+254D | ||||
| | * | | box-drawing: LIGHT ARC: improve symmetry when cell width is even | Daniel Eklöf | 2021-01-01 | -4/+24 | |
| | | | | |||||
| | * | | box-drawing: LIGHT ARC: no need to do floating point since we’re truncating | Daniel Eklöf | 2021-01-01 | -4/+4 | |
| | | | | |||||
| | * | | box-drawing: LIGHT ARC: pixel-perfect | Daniel Eklöf | 2021-01-01 | -24/+26 | |
| | | | | | | | | | | | | | At least in odd-sized cells, with a thickness of 1 pixel. | ||||
| | * | | box-drawing: wip: LIGHT ARC: U+256d-U+2570 | Daniel Eklöf | 2021-01-01 | -6/+95 | |
| | | | | |||||
| | * | | box-drawing: {h,v}line(): handle both start/end point being too small *and* too large | Daniel Eklöf | 2021-01-01 | -2/+8 | |
| | | | | |||||
| | * | | box-drawing: thickness(): ensure thickness is *at least* 1px | Daniel Eklöf | 2021-01-01 | -1/+1 | |
| | | | | |||||
| | * | | box-drawing: make sure we never walk outside the (image) buffer | Daniel Eklöf | 2021-01-01 | -13/+14 | |
| | | | | |||||
| | * | | box-drawing: wrap {h,v}hline() functions in macros, to shorten argument list | Daniel Eklöf | 2021-01-01 | -94/+98 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Rename the *function* {h,v}line() to _{h,v}line(), and add two new macros: hline() and vline(). This allows us to shorten the argument list by removing the ‘buf’ and ‘stride’ arguments. | ||||
| | * | | box-drawing: SEXTANTS, U+1fb00-1fb3b | Daniel Eklöf | 2021-01-01 | -3/+143 | |
| | | | | |||||
| | * | | box-drawing: oops - remove accidental ‘x’ | Daniel Eklöf | 2021-01-01 | -1/+1 | |
| | | | | |||||
| | * | | box-drawing: remove LOG_WARN from U+259x range - all codepoints have been implemented | Daniel Eklöf | 2021-01-01 | -4/+1 | |
| | | | | |||||
| | * | | box_drawing(): mark function as ‘cold’ | Daniel Eklöf | 2021-01-01 | -1/+1 | |
| | | | | |||||
| | * | | box-drawing: remove __attribute__((__const__)) from thickness() | Daniel Eklöf | 2021-01-01 | -1/+1 | |
| | | | | | | | | | | | | | thickness() is a static function and thus ‘const’ is not necessary. | ||||
| | * | | box-drawing: make ‘term’ parameter const | Daniel Eklöf | 2021-01-01 | -2/+2 | |
| | | | | |||||
| | * | | box-drawing: DOUBLE lines, U+2550-U+256C | Daniel Eklöf | 2021-01-01 | -31/+418 | |
| | | | | |||||
| | * | | box-drawing: LIGHT/MEDIUM/DARK SHADE | Daniel Eklöf | 2021-01-01 | -3/+39 | |
| | | | | | | | | | | | | | | | | | | | * U+2591 * U+2592 * U+2593 | ||||
| | * | | box-drawing: QUADRANTs: ensure all quads have equal width and hight | Daniel Eklöf | 2021-01-01 | -4/+4 | |
| | | | | | | | | | | | | | | | | If the cell width/height is odd, the previous implementation would result in uneven quads. | ||||
| | * | | box-drawing: QUADRANTs | Daniel Eklöf | 2021-01-01 | -10/+86 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * U+2596 * U+2597 * U+2598 * U+2599 * U+259A * U+259B * U+259C * U+259D * U+259E * U+259F | ||||
| | * | | box-drawing: RIGHT HALF, UPPER ONE EIGHTH and RIGHT ONE EIGTH | Daniel Eklöf | 2021-01-01 | -3/+21 | |
| | | | | | | | | | | | | | | | | | | | * U+2590 * U+2594 * U+2595 | ||||
| | * | | box-drawing: use floating point math, and round(), when drawing block elements | Daniel Eklöf | 2021-01-01 | -15/+15 | |
| | | | | | | | | | | | | | | | | This is especially important for the LEFT xxx BLOCK characters, since cells can be quite narrow, and one eighth is not a lot... | ||||
| | * | | box-drawing: first half of the block elements, U+2580-U+258F | Daniel Eklöf | 2021-01-01 | -18/+126 | |
| | | | | |||||
| | * | | box-drawing: mixed LIGHT/HEAVY HORIZONTAL, VERTICAL | Daniel Eklöf | 2021-01-01 | -4/+32 | |
| | | | | | | | | | | | | | | | | | | | | | | * U+257C * U+257D * U+257E * U+257F | ||||
| | * | | box-drawing: use #defines for LIGHT and HEAVY thicknesses | Daniel Eklöf | 2021-01-01 | -208/+211 | |
| | | | | |||||
| | * | | box-drawing: hline/vline macros now call thickness() | Daniel Eklöf | 2021-01-01 | -216/+235 | |
| | | | | |||||
| | * | | box-drawing: thickness(): tag as CONST, convert point-size to a float | Daniel Eklöf | 2021-01-01 | -3/+4 | |
| | | | | |||||
| | * | | macros: add CONST (__attribute((__const__))) | Daniel Eklöf | 2021-01-01 | -0/+6 | |
| | | | | |||||
| | * | | box-drawing: LIGH/HEAVY LEFT, UP, RIGTH, DOWN | Daniel Eklöf | 2021-01-01 | -8/+57 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * U+2574 * U+2575 * U+2576 * U+2577 * U+2578 * U+2579 * U+257A * U+257B | ||||
| | * | | box-drawing: mixed LIGHT/HEAVY variants of VERTICAL AND HORIZONTAL | Daniel Eklöf | 2021-01-01 | -17/+140 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * U+253D * U+253E * U+253F * U+2540 * U+2541 * U+2542 * U+2542 * U+2543 * U+2544 * U+2545 * U+2546 * U+2547 * U+2548 * U+2549 * U+254A | ||||
| | * | | box-drawing: mixed LIGHT/HEAVY variants of UP AND HORIZONTAL | Daniel Eklöf | 2021-01-01 | -6/+54 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * U+2535 * U+2536 * U+2537 * U+2538 * U+2539 * U+253A | ||||
| | * | | box-drawing: mixed LIGHT/HEAVY variants of DOWN AND HORIZONTAL | Daniel Eklöf | 2021-01-01 | -9/+54 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * U+252d * U+252e * U+252f * U+2530 * U+2531 * U+2532 | ||||
| | * | | box-drawing: mixed LIGHT/HEAVY variants of VERTICAL AND LEFT | Daniel Eklöf | 2021-01-01 | -6/+54 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * U+2525 * U+2526 * U+2527 * U+2528 * U+2529 * U+252A | ||||
| | * | | box-drawing: add mixed LIGHT/HEAVY VERTICAL AND RIGHT | Daniel Eklöf | 2021-01-01 | -9/+54 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * U+251D * U+251E * U+251F * U+2520 * U+2521 * U+2522 | ||||
| | * | | box-drawing: add mixed LIGHT/HEAVY corners | Daniel Eklöf | 2021-01-01 | -22/+76 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * U+250D * U+250E * U+2511 * U+2512 * U+2515 * U+2516 * U+2519 * U+251A | ||||
| | * | | box-drawing: add {h,v}line_middle_{left,right,up,down} primitives | Daniel Eklöf | 2021-01-01 | -109/+71 | |
| | | | | | | | | | | | | | | | | All solid lines LIGHT/HEAVY line drawings implemented so far can be implemented in terms of these. | ||||
| | * | | box-drawing: HEAVY versions of solid lines | Daniel Eklöf | 2021-01-01 | -33/+145 | |
| | | | | |||||
| | * | | box-drawing: break out thickness calculation | Daniel Eklöf | 2021-01-01 | -10/+16 | |
| | | | | |||||
| | * | | box-drawing: initial set of LIGHT box drawings | Daniel Eklöf | 2021-01-01 | -15/+167 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2500 * 2502 * 250c * 2510 * 2514 * 2518 * 251c * 2524 * 252c * 2534 * 253c | ||||
| | * | | term: clear box drawing glyph cache when reloading fonts | Daniel Eklöf | 2021-01-01 | -0/+8 | |
| | | | | |||||
| | * | | box-drawing: fix compilation error on 32-bit; wc is int on 64-bit, long on 32-bit | Daniel Eklöf | 2021-01-01 | -2/+2 | |
| | | | | |||||
| | * | | box-drawing: add infrastructure for rendering box drawing characters ourselves | Daniel Eklöf | 2021-01-01 | -1/+274 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | * ‘term’ struct contains an array of 160 fcft glyph pointers * the glyph pointers are lazily allocated when we need to draw a box drawings character * Filtering out box drawings characters is easy - they are (except unicode 13, which isn’t handled yet )all in a single range. | ||||
| * | | | render: mark cell overflowed into as dirty | Daniel Eklöf | 2021-01-02 | -1/+13 | |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When tweak.allow-overflowing-double-width-glyphs=yes, then certain glyphs are allowed to overflow into the neighbouring cell. However, if the cell “owning” the double-width glyph is erased (_only_ that cell), then the cell overflowed into is not redrawn, causing part of the double-width glyph to remain on screen. To avoid checking for these glyphs when printing to the terminal (i.e at parse time), simply mark both cells as dirty when we render the overflowing glyph. Yes, this means that the cells will always be re-rendered. We count on them only making up a small portion of the screen. | ||||
| * | | doc: foot.ini: remove FONT FORMAT section, expand description of ‘font’ | Daniel Eklöf | 2020-12-31 | -12/+11 | |
| | | | |||||
| * | | foot.ini: add (default) size to font | Daniel Eklöf | 2020-12-31 | -1/+1 | |
| | | | |||||
| * | | ci: run codespell on README/INSTALL/CHANGELOG | Daniel Eklöf | 2020-12-26 | -2/+3 | |
| | | | |||||
| * | | ci: run codespell on the man pages (the source files) | Daniel Eklöf | 2020-12-26 | -2/+2 | |
| | | | |||||
| * | | changelog: update ‘contributors’ | Daniel Eklöf | 2020-12-26 | -0/+1 | |
| | | | |||||
| * | | Merge branch 'fix-typo' | Daniel Eklöf | 2020-12-26 | -1/+1 | |
| |\ \ | |||||
| | * | | Fix typo | Birger Schacht | 2020-12-26 | -1/+1 | |
| | | | | | | | | | | | | | programatically -> programmatically | ||||
| * | | | Merge branch 'no-ime' | Daniel Eklöf | 2020-12-26 | -0/+15 | |
| |\ \ \ | |/ / |/| | | | | | Closes #259 | ||||
| | * | | ime: don’t call text-input functions when it isn’t available | Daniel Eklöf | 2020-12-26 | -0/+8 | |
| | | | | | | | | | | | | | Closes #259 | ||||
| | * | | wayland: log warning when compositor does not implement text-input | Daniel Eklöf | 2020-12-26 | -0/+7 | |
| |/ / | |||||
| * | | terminal: reaper callback: don’t close ptmx if already closed | Daniel Eklöf | 2020-12-26 | -2/+5 | |
| | | | |||||
| * | | terminal: shutdown (or --hold) when the client process terminates | Daniel Eklöf | 2020-12-26 | -6/+28 | |
| | | | | | | | | | | | | | | | | | | | Shutdown the terminal when the client process terminates, not when the ptmx file descriptor is closed. This fixes an issue where the terminal remains running after the client process has terminated, if it spawned child processes that inherited the ptmx file descriptor. | ||||
| * | | reaper: add optional callback | Daniel Eklöf | 2020-12-26 | -20/+39 | |
| | | | | | | | | | | | | | | | | | | | When calling ‘reaper_add()’, the caller can provide a callback. If non-NULL, the reaper will call the callback to handle the actual reaping. If the callback is NULL, or if it returns false, the reaper reaps the child process. | ||||
| * | | readme: add builds.sr.ht status badge | Daniel Eklöf | 2020-12-25 | -0/+2 | |
| | | | |||||
| * | | readme: try to position pipeline badge after description | Daniel Eklöf | 2020-12-25 | -1/+1 | |
| | | | |||||
| * | | readme: try to fix gitlab pipeline status badge | Daniel Eklöf | 2020-12-25 | -1/+1 | |
| | | | |||||
| * | | readme: test: add gitlab pipeline badge | Daniel Eklöf | 2020-12-25 | -0/+1 | |
| | | | |||||
| * | | ci: sr.ht: cd into ‘foot’ before running codespell | Daniel Eklöf | 2020-12-24 | -0/+1 | |
| | | | |||||
| * | | input: remove non-existing state from debug log | Daniel Eklöf | 2020-12-23 | -1/+1 | |
| | | | |||||
| * | | readme: add repology packaging status badge | Daniel Eklöf | 2020-12-22 | -0/+3 | |
| | | | |||||
| * | | doc: updated ‘laptop’ benchmarks for 1.6.0 | Daniel Eklöf | 2020-12-21 | -8/+9 | |
| | | | |||||
| * | | Merge branch 'releases/1.6' | Daniel Eklöf | 2020-12-21 | -2/+10 | |
| |\| | |||||
| | * | meson/pkgbuild: bump version to 1.6.21.6.2 | Daniel Eklöf | 2020-12-21 | -2/+10 | |
| | | | |||||
| * | | Merge branch 'releases/1.6' | Daniel Eklöf | 2020-12-21 | -9/+15 | |
| |\| | |||||
| | * | changelog: prepare for 1.6.11.6.1 | Daniel Eklöf | 2020-12-21 | -3/+0 | |
| | | | |||||
| | * | changelog: mention -Wno-profile-instr-unprofiled | Daniel Eklöf | 2020-12-21 | -0/+2 | |
| | | | |||||
| | * | changelog: mention --seed in in generate-alt-random.pu | Daniel Eklöf | 2020-12-21 | -0/+5 | |
| | | | |||||
| | * | generate-alt-random: ioctl(TIOCGWINSZ) may fail in run inside a container | Daniel Eklöf | 2020-12-21 | -5/+15 | |
| | | | | | | | | | | | | | This _should_ only happen when we’re doing a partial PGO build, since then the script is run in the parent terminal. In this case, the user is expected to use --rows/--cols anyway. | ||||
| | * | install: remove -march=native | Daniel Eklöf | 2020-12-21 | -8/+4 | |
| | | | | | | | | | | | This simplifies the instructions. People interested in performance are likely to know how to use it. | ||||
| | * | install.md: mention that packagers should not use -march=native | Daniel Eklöf | 2020-12-21 | -0/+4 | |
| | | | |||||
| | * | install.md: add -Wno-profile-instr-unprofiled to clang flags in PGO builds | Daniel Eklöf | 2020-12-21 | -1/+4 | |
| | | | |||||
| | * | changelog: use -std=c11 instead of -std=c18 | Daniel Eklöf | 2020-12-21 | -0/+4 | |
| | | | |||||
| | * | meson: default to c11 | sterni | 2020-12-21 | -1/+1 | |
| | | | | | | | | | | | We don't need any C18 specifics, so C11 is also fine and more widely supported (i. e. in older clang versions). | ||||
| | * | install: fix typo in ‘ninja’ | Daniel Eklöf | 2020-12-21 | -1/+1 | |
| | | | |||||
| * | | generate-alt-random: ioctl(TIOCGWINSZ) may fail in run inside a container | Daniel Eklöf | 2020-12-21 | -5/+18 | |
| | | | | | | | | | | | | | This _should_ only happen when we’re doing a partial PGO build, since then the script is run in the parent terminal. In this case, the user is expected to use --rows/--cols anyway. | ||||
| * | | install: remove -march=native | Daniel Eklöf | 2020-12-21 | -8/+4 | |
| | | | | | | | | | | | This simplifies the instructions. People interested in performance are likely to know how to use it. | ||||
| * | | Merge branch 'clang-wno-profile-instr-unprofile' | Daniel Eklöf | 2020-12-21 | -1/+8 | |
| |\ \ | |||||
| | * | | install.md: mention that packagers should not use -march=native | Daniel Eklöf | 2020-12-21 | -0/+4 | |
| | | | | |||||
| | * | | install.md: add -Wno-profile-instr-unprofiled to clang flags in PGO builds | Daniel Eklöf | 2020-12-21 | -1/+4 | |
| |/ / | |||||
| * | | changelog: use -std=c11 instead of -std=c18 | Daniel Eklöf | 2020-12-21 | -0/+2 | |
| | | | |||||
| * | | Merge branch 'meson-c11' | Daniel Eklöf | 2020-12-21 | -1/+1 | |
| |\ \ | |||||
| | * | | meson: default to c11 | sterni | 2020-12-20 | -1/+1 | |
| | | | | | | | | | | | | | | | | We don't need any C18 specifics, so C11 is also fine and more widely supported (i. e. in older clang versions). | ||||
| * | | | install: fix typo in ‘ninja’ | Daniel Eklöf | 2020-12-21 | -1/+1 | |
| |/ / | |||||
| * | | Merge branch 'releases/1.6' | Daniel Eklöf | 2020-12-20 | -3/+11 | |
| |\| | |||||
| | * | changelog: update ‘contributors’ | Daniel Eklöf | 2020-12-20 | -0/+3 | |
| | | | |||||
| | * | changelog: remove trailing ‘5’ | Daniel Eklöf | 2020-12-20 | -1/+1 | |
| | | | |||||
| | * | generate-alt-random: override detected width/height when --cols/--rows have been used | Daniel Eklöf | 2020-12-20 | -0/+2 | |
| | | | | | | | | | | | This ensures we have a valid width and height, that matches what the PGO helper binary expects. | ||||
| | * | generate-alt-random: fix “new style” cube escape | Daniel Eklöf | 2020-12-20 | -1/+1 | |
| | | | | | | | | | It’s “38:5:<idx>”, not “38:2:5:<idx>”. | ||||
| | * | generate-alt-random-writes: use python random, allow setting a seed | sterni | 2020-12-20 | -99/+101 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using Python's own PRNG should make the code cleaner and allow for reproducible stimulus files if that is desired via setting --seed (at least for the same versions of the script, changing the kind and/or order of the random calls will of course impact the output in the future). I did the following substitutions: * rand.read(1)[0] % n and struct.unpack('@H', rand.read(2))[0] % n → random.randrange(n) * rand.read(1)[0] → random.randrange(256) * rand.read(n) → [random.randrange(256) for _ in range(n)] (better alternative would have been random.randbytes(n), but is only available for Python >= 3.9, switching to this in the future will impact output) * list[rand.read(1) % len(list)] → random.choice(list) | ||||
| | * | render: fix rounding error when calculating background color with alpha | Daniel Eklöf | 2020-12-20 | -7/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use pre-multiplied alpha color channels, but were having bad rounding errors due to the alpha divider being truncated to an integer. The algorithm for pre-multiplying a color channel is: alpha_divider = 0xffff / alpha pre_mult_color = color / alpha_divider In order to fix the rounding errors, we could turn ‘alpha_divider’ into a double. That however would introduce a performance penalty since now we’d need to do floating point math for each cell. The algorithm can be trivially converted to: pre_mult_color = color * alpha / 0xffff Since both color and alpa values are < 65536, the multiplication is “safe”; it will not overflow an uint32_t. Closes #249 | ||||
| | * | meson: add wl_proto_headers to pgo executable | Daniel Eklöf | 2020-12-20 | -1/+1 | |
| | | | | | | | | | This fixes a build failure of pgo.o | ||||
| | * | changelog: mention meson dependency fix | Daniel Eklöf | 2020-12-20 | -0/+5 | |
| | | | |||||
| | * | changelog: add 1.6.1 section | Daniel Eklöf | 2020-12-20 | -0/+11 | |
| | | | |||||
| | * | meson: add missing "wl_proto_headers" dependency for pgolib and vtlib | Craig Barnes | 2020-12-20 | -0/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dependency chains: * pgolib -> terminal.c -> terminal.h -> wayland.h * vtlib -> csi.c -> config.h -> wayland.h wayland.h includes <primary-selection-unstable-v1.h>, which must be generated by a custom_target() rule *before* any sources that require it are built. Failure to fully specify these dependencies can otherwise result in a race condition, where a dependent source file gets compiled (and fails with a "header not found" error) before the header itself has been generated. | ||||
