| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | sixel: track which grid image was created on | Daniel Eklöf | 2020-02-22 | -0/+2 |
| | | ||||
| * | sixel: rename: purge_at_cursor() -> delete_at_cursor() | Daniel Eklöf | 2020-02-22 | -4/+4 |
| | | ||||
| * | Merge branch 'sixel-graphics' | Daniel Eklöf | 2020-02-22 | -6/+849 |
| |\ | ||||
| | * | README: add screenshot of sixel graphics | Daniel Eklöf | 2020-02-22 | -0/+3 |
| | | | ||||
| | * | sixel: purge images in unhook, rather than in init | Daniel Eklöf | 2020-02-22 | -2/+2 |
| | | | | | | | | | | | This fixes an issue where the cursor was seen blinking in animated GIFs. | |||
| | * | sixel: purge images at current cursor row | Daniel Eklöf | 2020-02-22 | -7/+21 |
| | | | | | | | | | | | When printing a character, or starting a new sixel image, purge all images that cover the cursor's current row. | |||
| | * | sixel: oops | Daniel Eklöf | 2020-02-22 | -2/+2 |
| | | | ||||
| | * | README: add sixel support to feature list | Daniel Eklöf | 2020-02-22 | -0/+1 |
| | | | ||||
| | * | sixel: don't ever shrink the image | Daniel Eklöf | 2020-02-22 | -3/+9 |
| | | | ||||
| | * | sixel: add HLS color format support | Daniel Eklöf | 2020-02-22 | -2/+132 |
| | | | ||||
| | * | sixel: add comments to max_width()/max_height() | Daniel Eklöf | 2020-02-22 | -0/+2 |
| | | | ||||
| | * | sixel: application configurable image max width/height | Daniel Eklöf | 2020-02-22 | -8/+86 |
| | | | ||||
| | * | sixel: application configurable palette size (color count) | Daniel Eklöf | 2020-02-22 | -6/+73 |
| | | | | | | | | | | | This implements the CSI escapes for retrieving and (re)setting the palette size. | |||
| | * | sixel: use terminal's background color, not palette[0] | Daniel Eklöf | 2020-02-22 | -3/+3 |
| | | | ||||
| | * | csi: DA: we now implement sixel | Daniel Eklöf | 2020-02-22 | -1/+1 |
| | | | ||||
| | * | sixel: finalize: use width/height from image, not row/col pos | Daniel Eklöf | 2020-02-22 | -10/+4 |
| | | | ||||
| | * | sixel: resize: initialize new rows/columns with the background color | Daniel Eklöf | 2020-02-22 | -9/+15 |
| | | | ||||
| | * | sixel: mention why we add one | Daniel Eklöf | 2020-02-22 | -1/+3 |
| | | | ||||
| | * | sixel: clean up state machine | Daniel Eklöf | 2020-02-22 | -94/+105 |
| | | | | | | | | | | | Use proper state names, and implement the state machine using switch statements. | |||
| | * | sixel: use a struct coord for current sixel position | Daniel Eklöf | 2020-02-22 | -35/+33 |
| | | | ||||
| | * | sixel: rename state SIXEL_SIXEL -> SIXEL_GROUND | Daniel Eklöf | 2020-02-22 | -7/+7 |
| | | | ||||
| | * | sixel: raster: only resize image buffer if necessary | Daniel Eklöf | 2020-02-22 | -1/+3 |
| | | | ||||
| | * | term: free sixel images on reset | Daniel Eklöf | 2020-02-22 | -0/+4 |
| | | | ||||
| | * | sixel: resize image buffer after receiving a "raster" command | Daniel Eklöf | 2020-02-22 | -0/+1 |
| | | | ||||
| | * | sixel: resize image buffer dynamically | Daniel Eklöf | 2020-02-22 | -24/+86 |
| | | | ||||
| | * | sixel: add sixel_destroy() | Daniel Eklöf | 2020-02-21 | -14/+22 |
| | | | ||||
| | * | sixel: always bump row on unhook | Daniel Eklöf | 2020-02-21 | -6/+4 |
| | | | ||||
| | * | sixel: ugly hack to remove over-written sixel images | Daniel Eklöf | 2020-02-21 | -0/+8 |
| | | | ||||
| | * | sixel: calculate image height in (cell) rows | Daniel Eklöf | 2020-02-21 | -23/+25 |
| | | | ||||
| | * | render: break out sixel rendering code | Daniel Eklöf | 2020-02-21 | -61/+73 |
| | | | ||||
| | * | sixel: wip: maintain a list of finished, and "active" sixel images | Daniel Eklöf | 2020-02-21 | -38/+122 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In unhook, add the generated image to a list of finished sixel images, along with positioning and size information. When rendering, loop this list of images, and render the images (or parts of) that are visible. When scrolling, check if any part of the images cover the re-cycled lines, and if so, remove the *entire* image from the list. This means we have the following limitations: * The renderer always renders the whole (visible area of) the image(s). There are times when this isn't necessary - for example, when the image is scrolled inside the visible area. * It would be nice if we could crop the image when parts of it is scrolled out. | |||
| | * | Merge branch 'master' into sixel-graphics | Daniel Eklöf | 2020-02-21 | -0/+3 |
| | |\ | ||||
| | | * | scroll-up: ensure view is valid after adjusting an overshot scrollback | Daniel Eklöf | 2020-02-21 | -0/+3 |
| | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | When we scroll up, we need to ensure that we don't scroll too far, "past" the scrollback limit. I.e. we need to ensure we don't wrap around. The code did this. But, in certain scenarios, the resulting view points into uninitialized scrollback history. This happens when we haven't yet filled the entire scrollback, and scroll up enough lines to wrap around the scrollback. The old code would adjust the view for the wrap around, but doing so pointed the view at the not-yet utilized scrollback. | |||
| | * | sixel: initial support | Daniel Eklöf | 2020-02-21 | -3/+350 |
| |/ | | | | | | | | | This implements basic parsing of sixel data. Lots of limitations and temporary solutions as this is still work-in-progress: * Maximum image size hardcoded to 800x800 * No HLS color format support * Image is always rendered at 0x0 in the terminal | |||
| * | keymap: tab: handle all modifiers | Daniel Eklöf | 2020-02-21 | -2/+17 |
| | | | | | | | | Tab is one of the keys included in our "otherModifierKeys" implementation. However, since the key sym falls outside the checks required to trigger it, special case it and implement its sequences as a table. | |||
| * | keymap: align backspace escapes with XTerm | Daniel Eklöf | 2020-02-21 | -3/+44 |
| | | | | | | | | | | | | | | | | Backspace now emits DEL for all non-ctrl modifier combos, and BS for all ctrl modifier combos. The alt modifier prefixes DEL/BS with ESC. This also removes my own hack of mapping ctrl+backspace to alt+backspace. Describe backspace behavior in both the README and the man page. TODO: implement DECBKM to allow applications to toggle the backspace behavior. | |||
| * | client: make sure 'cwd' is in scope of all goto's | Daniel Eklöf | 2020-02-20 | -1/+3 |
| | | ||||
| * | doc: foot.5: login-shell: add default value ('no') | Daniel Eklöf | 2020-02-20 | -1/+1 |
| | | ||||
| * | doc: foot.5: change 'shell' example, add login-shell | Daniel Eklöf | 2020-02-20 | -1/+4 |
| | | ||||
| * | main: check return value of getcwd() | Daniel Eklöf | 2020-02-20 | -1/+5 |
| | | ||||
| * | slave: check return value of chdir() | Daniel Eklöf | 2020-02-20 | -1/+6 |
| | | ||||
| * | term: spawn_new: check return value of chdir() and write() | Daniel Eklöf | 2020-02-20 | -3/+7 |
| | | ||||
| * | client: allocate current working directory buffer dynamically | Daniel Eklöf | 2020-02-20 | -2/+14 |
| | | ||||
| * | Merge branch 'login-shell' | Daniel Eklöf | 2020-02-20 | -14/+79 |
| |\ | ||||
| | * | doc: add --login-shell | Daniel Eklöf | 2020-02-20 | -0/+6 |
| | | | ||||
| | * | completions: zsh: add --login-shell | Daniel Eklöf | 2020-02-20 | -0/+2 |
| | | | ||||
| | * | footrc: add login-shell option | Daniel Eklöf | 2020-02-20 | -0/+1 |
| | | | ||||
| | * | slave: prefix argv[0] with a '-' when spawning a login-shell | Daniel Eklöf | 2020-02-20 | -13/+44 |
| | | | ||||
| | * | config: add 'login-shell' option | Daniel Eklöf | 2020-02-20 | -0/+11 |
| | | | ||||
| | * | client: add --login-shell command line option | Daniel Eklöf | 2020-02-20 | -0/+7 |
| | | | ||||
| | * | main: add --login-shell command line option | Daniel Eklöf | 2020-02-20 | -1/+8 |
| |/ | ||||
| * | README: list 'lightweigh' under features | Daniel Eklöf | 2020-02-18 | -0/+1 |
| | | ||||
| * | PKGBUILD: meson already adds these flags | Daniel Eklöf | 2020-02-16 | -1/+1 |
| | | ||||
| * | meson: always disable stack-protector and enable strict-aliasing | Daniel Eklöf | 2020-02-16 | -1/+6 |
| | | ||||
| * | log: always log file:lineno | Daniel Eklöf | 2020-02-16 | -4/+0 |
| | | ||||
| * | meson: strip build relative paths from file macros | Daniel Eklöf | 2020-02-16 | -1/+30 |
| | | ||||
| * | render/grid: move grid reflow code to grid.c | Daniel Eklöf | 2020-02-15 | -184/+158 |
| | | ||||
| * | wayland: output_mode: update PPI | Daniel Eklöf | 2020-02-15 | -0/+1 |
| | | | | | | Since we now use the width/height values from output_mode(), we also need to update the PPI here. | |||
| * | main: bug: -t requires an argument | Daniel Eklöf | 2020-02-15 | -1/+1 |
| | | ||||
| * | README: change wording of DPI header | Daniel Eklöf | 2020-02-15 | -2/+2 |
| | | ||||
| * | README: talk about DPI, add font on-the-fly features to feature list | Daniel Eklöf | 2020-02-15 | -0/+33 |
| | | ||||
| * | doc: foot.5: make 'pad' syntax/example clearer | Daniel Eklöf | 2020-02-15 | -1/+1 |
| | | ||||
| * | PKGBUILD: experimental: build with -fstrict-aliasing | Daniel Eklöf | 2020-02-15 | -1/+1 |
| | | ||||
| * | shm: prefer posix_fallocate over ftruncate | Daniel Eklöf | 2020-02-15 | -3/+14 |
| | | ||||
| * | wayland: debug: make sure state_str is properly NULL terminated | Daniel Eklöf | 2020-02-15 | -0/+2 |
| | | ||||
| * | Merge branch 'font-dpi-adjust-on-the-fly' | Daniel Eklöf | 2020-02-15 | -79/+178 |
| |\ | ||||
| | * | term: implement term_font_dpi_changed() | Daniel Eklöf | 2020-02-15 | -56/+147 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function reloads the font *if* the DPI has changed. To handle user run-time adjusted font sizes, we record the number of adjustments made. Then, when re-loading the font, we first load the font as specified in the configuration. Then, we re-apply the size adjustment using font_size_adjust(). Note that this means we end up loading the fonts twice; first using the default size (but with adjusted DPI), and then again with the adjusted size. This can probably be improved upon. The existing font code has been refactored to avoid code duplication. For example, term_init() now calls term_font_dpi_changed() to load the initial fonts, instead of directly instantiating them. Finally, the way we calculate the DPI to use has changed: instead of using the highest DPI of all available outputs, we use the highest DPI of the output's we're actually mapped on. If we're not mapped at all, we use the globally highest DPI. Doing it this way means we usually only have to load the fonts once. Otherwise, we'd end up using the default DPI of 96 when the terminal is first instantiated (since it's not mapped at that time). On a single monitor system, we'll use the globally highest DPI at first, before being mapped. Then when we get mapped, we re-load the fonts using the highest mapped DPI. But since they'll be the same, we can skip actually reloading the fonts. | |||
| | * | wayland: calculate DPI from physical size, not logical size | Daniel Eklöf | 2020-02-15 | -4/+2 |
| | | | | | | | | | | | | | | | | | xdg_output_handle_logical_size() reports _logical_ output size. That is, it is scaled by the output's scale factor. We want the _actual_ DPI. The _real_ output size is reported by output_mode(), so use that instead. | |||
| | * | wayland: break out scale/resize updating to a new function | Daniel Eklöf | 2020-02-15 | -19/+29 |
| |/ | | | | | And call this function once from output_done(), rather than from each output_*() callback. | |||
| * | input: fix xcursor getting stuck | Daniel Eklöf | 2020-02-15 | -0/+8 |
| | | | | | | | | | | | | Apparently, a frame callback for the cursor surface is *never* triggered if we get a pointer-leave event *before* the callback is triggered. At least on Sway 1.4. This caused the cursor being stuck, and never updating once this state was reached. Fix by destroying the cursor frame callback on pointer-leave. | |||
| * | Merge branch 'configurable-padding' | Daniel Eklöf | 2020-02-15 | -3/+42 |
| |\ | ||||
| | * | doc: foot.5: document new 'pad' configuration option | Daniel Eklöf | 2020-02-15 | -1/+6 |
| | | | ||||
| | * | footrc: add 'pad' option | Daniel Eklöf | 2020-02-15 | -0/+3 |
| | | | ||||
| | * | render: resize: take padding from configuration into account | Daniel Eklöf | 2020-02-15 | -2/+16 |
| | | | ||||
| | * | config: add 'pad' option, default to 2 | Daniel Eklöf | 2020-02-15 | -0/+17 |
| |/ | ||||
| * | Merge branch 'text-reflow-fixes' | Daniel Eklöf | 2020-02-15 | -56/+53 |
| |\ | ||||
| | * | render: reflow: set 'linebreak' flag before inserting new line | Daniel Eklöf | 2020-02-15 | -9/+14 |
| | | | ||||
| | * | render: reflow: remove 'linebreak' flag from recycled rows | Daniel Eklöf | 2020-02-15 | -4/+6 |
| | | | ||||
| | * | render: reflow: no need to mark new rows as dirty | Daniel Eklöf | 2020-02-15 | -4/+3 |
| | | | ||||
| | * | render: resize: cancel selection before reflowing text | Daniel Eklöf | 2020-02-15 | -0/+2 |
| | | | | | | | | | The old selection will no longer be valid once we resize the grids. | |||
| | * | render: reflow: bug: fix off-by-one | Daniel Eklöf | 2020-02-15 | -6/+7 |
| | | | | | | | | | | | | | | | | | The 'last-row' variable points to the last row the cursor is *on*, thus it's not a counter, and we need to add one when calculating the new grid offsets, or we get an off-by-one error. With this, there's no longer any need to scroll the reflowed text. | |||
| | * | term: reset: use grid_row_alloc() with initialize=true | Daniel Eklöf | 2020-02-14 | -2/+2 |
| | | | | | | | | | | | This will both zero out the cells, *and* re-initialize the row properties correctly. | |||
| | * | term: convert cell 'linefeed' attribute to a row 'linebreak' property | Daniel Eklöf | 2020-02-14 | -42/+30 |
| |/ | | | | | | | | | | | | | | | | To do text reflow, we only need to know if a line has been explicitly linebreaked or not. If not, that means it wrapped, and that we should *not* insert a linebreak when reflowing text. When reflowing text, when reaching the end of a row in the old grid, only insert a linebreak in the new grid if the old row had been explicitly linebreaked. Furthermore, when reflowing text and wrapping a row in the new grid, mark the previous row as linebreaked if either the last cell was (the last column in the last row) empty, or the current cell (the first column in the new row) is empty. If both are non-empty, then we assume a linewrap. | |||
| * | render: resize: don't reflow text if grid layout hasn't changed | Daniel Eklöf | 2020-02-14 | -0/+7 |
| | | | | | | | | | A window resize doesn't necessarily mean the grid layout changes. When it doesn't, don't reflow text. This fixes a slowness issue on Sway, when swapping positions of two ~equally sized windows. | |||
| * | render: reflow: erase row when wrapping around the scrollback | Daniel Eklöf | 2020-02-14 | -1/+2 |
| | | ||||
| * | render: reflow: mark all "new" rows as dirty | Daniel Eklöf | 2020-02-14 | -2/+4 |
| | | ||||
| * | render: resize: do linefeed *after* updating cursor position | Daniel Eklöf | 2020-02-12 | -2/+6 |
| | | ||||
| * | render: resize; heuristics to prevent prompt from being printed on a newline | Daniel Eklöf | 2020-02-12 | -5/+5 |
| | | ||||
| * | render: resize: temporarily disable row adjustment | Daniel Eklöf | 2020-02-12 | -0/+3 |
| | | | | | | | This was intended to prevent a new prompt from being printed on a newline. However, it breaks normal output under certain conditions, that have yet to be determined exactly what they are. | |||
| * | render: resize: only stay on current row if col is within grid width | Daniel Eklöf | 2020-02-12 | -1/+3 |
| | | ||||
| * | term: formfeed: set linefeed correctly when we're at last column with lcf=1 | Daniel Eklöf | 2020-02-12 | -2/+5 |
| | | | | | | | When cursor.lcf is set, that means the cursor column was *not* incremented when we printed the last character. Thus, we should *not* decrement the column before setting the linefeed bit. | |||
| * | render: spelling | Daniel Eklöf | 2020-02-12 | -1/+1 |
| | | ||||
| * | footrc, doc/foot.5: improve documentation of 'shell', and mention --login | Daniel Eklöf | 2020-02-11 | -2/+3 |
| | | ||||
| * | Merge branch 'text-reflow' | Daniel Eklöf | 2020-02-11 | -50/+172 |
| |\ | ||||
| | * | selection: handle line break at last column correctly | Daniel Eklöf | 2020-02-11 | -1/+2 |
| | | | | | | | | | | | Insert a newline into the selection even if the last column contained a printable character, *if* that column also has linefeed=1. | |||
| | * | render: resize: calculated cursor row *should* never be beyond the screen bottom | Daniel Eklöf | 2020-02-10 | -1/+2 |
| | | | ||||
| | * | render: reflow: clear new line if already allocated | Daniel Eklöf | 2020-02-10 | -1/+2 |
| | | | ||||
| | * | render: resize: fix cursor positioning at grid wrap around | Daniel Eklöf | 2020-02-10 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | When current view is at a grid wrap around (last emitted row index is < grid offset), the cursor row ended up being negative which we then mapped to the top line. This is wrong. When we're at a wrap around, re-adjust cursor by adding the grid's row count. | |||
| | * | render: reflow: initial line is always unallocated | Daniel Eklöf | 2020-02-10 | -5/+5 |
| | | | ||||
| | * | term: font_size_{increase,descrease}: adjust size by 0.5pt | Daniel Eklöf | 2020-02-10 | -2/+2 |
| | | | ||||
