aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
* terminfo: add tab stop related entries, hts and tbcDaniel Eklöf2019-11-18-0/+2
| | | | | hts - Horizontal Tab Set (?) tbc - Tab Clear
* csi: implement "Send Device Attributes (Tertiary DA)"Daniel Eklöf2019-11-18-0/+18
|
* csi: adjust reply to primary DADaniel Eklöf2019-11-18-1/+1
| | | | | | | | | | Report us as being VT220, as VT420 causes vttest to send a DECRQSS. This is a DCS request that we don't implement (there's no DCS handling *at all* - all DCS strings are ignored). Should be ok as no one appears to care about this one. Other terminals report a much lower level (urxvt for example, replies with vt100. We used to reply with vt102, which also was fine).
* csi: improve "Send Device Attributes (Primary DA)"Daniel Eklöf2019-11-18-2/+32
| | | | | | | Pretend we're a VT420, with a couple of supported features indicated. Note that I haven't verified we support *everything* that each features entails - or even what exactly a feature *is* (locator port?)
* csi: document "Send Device Attributes (Secondary DA)"Daniel Eklöf2019-11-18-0/+20
|
* csi: implement 'Query Device Status'Daniel Eklöf2019-11-18-0/+5
| | | | By replying with "Device OK"
* term: report_mouse_click(): legacy mode only supports rows/cols up to 223.Daniel Eklöf2019-11-18-2/+8
| | | | | | In the legacy mouse reporting mode, line and column numbers are limited to 223 (255-32). In case the current coordinate falls outside this, simply ignore it (don't report it).
* csi: add debug logs for the various mouse reporting modesDaniel Eklöf2019-11-18-1/+4
|
* term: assert(false) on MOUSE_X10Daniel Eklöf2019-11-18-3/+15
| | | | | This mouse mode is never enabled. I.e. we don't support it. Add asserts to catch usage of it, should we ever decide to implement it.
* tllist: is now an external "library", so use <> includesDaniel Eklöf2019-11-17-4/+7
|
* tllist: use tllist from external git repositoryDaniel Eklöf2019-11-17-182/+7
|
* term: try to improve on a performance regressionDaniel Eklöf2019-11-17-29/+17
| | | | | | | | When support was added for DECOM (absolute/relative row addressing), a small but noticeable (~3.5%) performance regression was introduced. Try to improve the situation by simplifying the relative-to-absolute conversion; only the row needs to be transformed.
* Revert "term: new function: term_autowrap()"Daniel Eklöf2019-11-17-16/+0
| | | | This reverts commit 686405b7031736445eeb35206e4a797a8dd78d91.
* Revert "vt: replace pre_print() with term_autowrap()"Daniel Eklöf2019-11-17-2/+14
| | | | This reverts commit fd8a3992745b9ec51b6e6c1dfc39faf01369b680.
* csi: implement 'CHT' - Cursor Horizontal TabDaniel Eklöf2019-11-17-0/+16
|
* vt: replace pre_print() with term_autowrap()Daniel Eklöf2019-11-17-14/+2
|
* term: new function: term_autowrap()Daniel Eklöf2019-11-17-0/+16
| | | | | | | Adds a linebreak (+ scroll if necessary) if we're in a deferred wrap and auto-margins are enabled. Return true when we wrapped, false otherwise.
* csi: implement 'CPL' - Cursor Previous LineDaniel Eklöf2019-11-17-0/+6
|
* csi: implement 'CNL' - Cursor Next LineDaniel Eklöf2019-11-17-0/+6
|
* csi: implement 'HPR' - Horizontal Position RelativeDaniel Eklöf2019-11-17-0/+1
|
* csi: fix bad implementation of CBT (back tab)Daniel Eklöf2019-11-17-6/+14
| | | | | | | * It takes a parameter, that indicates the number of tab stops to move through * Use the tab stops defined in the tab stops list, not hard coded mod 8 columns.
* csi: implement 'HPA' - Horizontal Position AbsoluteDaniel Eklöf2019-11-17-0/+1
|
* vt: bug (tab regression): don't get stuck on the same tab stopDaniel Eklöf2019-11-17-2/+2
| | | | | | | | | | | There were actually two bugs here: * When checking for a tab stop, make sure the new tab stop is at a different column. Otherwise you can't tab away from a tab stop. * When there aren't any tab stops configured, or when we're already beyond the last tab stop, then tab to the last column (at least I think that's what we're supposed to do).
* term: save/restore charsets on save/restore cursor+attributesDaniel Eklöf2019-11-17-6/+4
|
* term: convert anonymous 'charsets' struct to a named structDaniel Eklöf2019-11-17-4/+6
|
* term: move charset variables into an anonymous structDaniel Eklöf2019-11-17-14/+23
|
* term: restore_cursor: restore lcf flagDaniel Eklöf2019-11-17-0/+1
|
* term: move lcf flag into 'cursor' structDaniel Eklöf2019-11-17-16/+16
|
* term: add struct cursorDaniel Eklöf2019-11-17-99/+103
|
* term: rename: print_needs_wrap -> lcf (Last Column Flag)Daniel Eklöf2019-11-17-16/+16
|
* csi: el/ed/dch/ich/ech: reset 'print_needs_wrap' (lcf)Daniel Eklöf2019-11-17-0/+9
| | | | | This makes the result of 'wraptest', by Mattias Engdegård, match the behavior of 'DEC' (the architectural behavior of DEC terminals).
* term: cursor_{up,down}: limit cursor movements based on origin modeDaniel Eklöf2019-11-16-2/+8
|
* Merge branch 'tab-stop'Daniel Eklöf2019-11-16-67/+110
|\
| * vt: execute: \t: use tab stops from tab stop listDaniel Eklöf2019-11-16-3/+8
| | | | | | | | | | Instead of assuming hardcoded 8-width tab stops, use the tab stops from the tab stop list.
| * vt: implement ESC H - set tab stop at current columnDaniel Eklöf2019-11-16-0/+11
| |
| * tllist: update to latestDaniel Eklöf2019-11-16-27/+50
| | | | | | | | In particular, pull in tll_insert_{before,after}
| * selection: buffer may be empty if only empty cells where selectedDaniel Eklöf2019-11-16-0/+6
| |
| * csi: implement CSI 0g and CSI 3gDaniel Eklöf2019-11-16-0/+26
| | | | | | | | | | * 0g - clear tab stop at current column * 3g - clear all tab stops
| * vt: remove commented out codeDaniel Eklöf2019-11-16-37/+0
| |
| * render: configure default tab stops when resizing the terminalDaniel Eklöf2019-11-16-0/+5
| |
| * term: add tab-stop list to terminal structDaniel Eklöf2019-11-16-0/+4
|/ | | | This list is intended to store tab stop columns
* vt: DECALN: render at bottom of terminal, not in viewDaniel Eklöf2019-11-14-1/+1
|
* csi: CSI ?4h enables smooth scrolling, ?4l enables jump scrollingDaniel Eklöf2019-11-05-2/+7
|
* server: disable debug outputDaniel Eklöf2019-11-05-1/+1
|
* vt: implement VT - Vertical TabDaniel Eklöf2019-11-05-0/+5
| | | | Despite its name, it always moves down exactly one line.
* vt: always use hex (not octal)Daniel Eklöf2019-11-05-2/+2
|
* vt: log hex version of printed character tooDaniel Eklöf2019-11-05-1/+1
|
* vt: always disable state_names[] arrayDaniel Eklöf2019-11-05-1/+1
| | | | It isn't used anywhere, even with LOG_ENABLE_DBG
* csi: implement DECOM - switch cursor origin between absolute and relativeDaniel Eklöf2019-11-05-14/+64
| | | | | | | | | | | The default is absolute mode, where 0,0 is the upper left corner of the screen. In relative mode, the origin is relative the top scroll margin. Internally, we always track the current cursor position in absolute mode. Every time we the client *sets* or *queries* the cursor position in relative mode, we translate it to absolute.
* csi: DECCOLM erases screenDaniel Eklöf2019-11-05-0/+15
|
* vt: esc dispatch: implement DECALNDaniel Eklöf2019-11-05-65/+118
| | | | | | | In esc dispatch: * Switch on private first, then final * Recognize ESC #8 (DECALN), and implement it
* csi: CSI ?3h enables 132 column mode, CSI ?3l 80 column modeDaniel Eklöf2019-11-05-2/+6
|
* csi: implement force cursor positionDaniel Eklöf2019-11-05-0/+1
|
* scan-build: fix a couple of minor warnings from a scan-build runDaniel Eklöf2019-11-05-5/+7
|
* server/client: harden reading of initialization data, and make asyncDaniel Eklöf2019-11-05-33/+111
| | | | | | | | | | | | | | | | | | | | * Client terminal initialization data is now received asynchronously. To facilitate this, a couple of minor changes to the protocol was made: - The client now starts with sending a 4-byte unsigned integer with the *total* size of the initialization data (*not* including the size field itself. - Strings (TERM variable + argv) are now sent NULL-terminated * The server allocates a single buffer, and fills it asynchronously. When full (as indicated by the initial 'total size' integer), we parse it (taking care not to read outside boundaries etc, and verifies the lengths (of the TERM variable and argv array) indicated by the client matches the actual lengths of the strings received. * The server now ignores 'unexpected' data received from the client, after the terminal has been instantiated.
* server: workaround evil clientsDaniel Eklöf2019-11-05-0/+6
| | | | | If the clients attempt to send more data after we've instantiated the terminal, just consume the data but ignore it.
* server: don't cache argc/argv in client contextDaniel Eklöf2019-11-05-17/+18
|
* main: destroy cached SHM buffers *after* terminals have been destroyedDaniel Eklöf2019-11-05-2/+2
|
* terminal: ptmx: ignore *both* EPOLLIN and EPOLLOUT on EPOLLHUPDaniel Eklöf2019-11-05-5/+11
|
* selection: document the asynchronous behavior of text_from_{primary,clipboard}Daniel Eklöf2019-11-05-1/+17
|
* selection: make text_from_{clipboard,primary} asyncDaniel Eklöf2019-11-05-61/+84
|
* selection: initialize 'ctx' before jumping into its scopeDaniel Eklöf2019-11-05-2/+2
|
* selection: text_from_{clipboard,primary}: add 'done' callbackDaniel Eklöf2019-11-05-34/+59
| | | | | | | | This callback is *always* called, including when there has been an error. This is in preparation for making text_from_{clipboard,primary} asynchronous.
* selection: async send: handle POLLHUPDaniel Eklöf2019-11-05-1/+4
|
* selection: free strdup:ed clipboard data on fdm failureDaniel Eklöf2019-11-05-0/+4
|
* selection: remove debug assertDaniel Eklöf2019-11-05-1/+0
|
* selection: typedef not needed here (copy-paste from fdm.h)Daniel Eklöf2019-11-05-2/+0
|
* selection: we don't set user data on primary/clipboard data sourcesDaniel Eklöf2019-11-04-4/+4
|
* input: remove unneeded(?) term_reset_view() callsDaniel Eklöf2019-11-04-2/+2
| | | | | | Not sure why these were added here; they don't appear to be needed (we're writing to the client - it's up to the client to echo stuff, in which case we redraw as usual).
* selection: try to write selection data synchronously firstDaniel Eklöf2019-11-04-35/+70
| | | | Only if we fail to write everything do we switch to asynchronous mode.
* terminal: use async_write() when writing to ptmxDaniel Eklöf2019-11-04-50/+20
|
* async: add async_write(), a write primitive to write to a NONBLOCK:ing FDDaniel Eklöf2019-11-04-0/+60
|
* selection: send primary/clipboard data asynchronouslyDaniel Eklöf2019-11-04-36/+83
| | | | TODO: try writing synchronously first
* terminal: add comments describing the sync/async writing modesDaniel Eklöf2019-11-04-1/+25
|
* Merge branch 'window-urgency'Daniel Eklöf2019-11-04-0/+20
|\
| * csi: comment out handling of CSI ? 1042/1043 h/lDaniel Eklöf2019-11-04-0/+4
| | | | | | | | | | In Wayland, we neither _have_ an urgency hint to set, nor can we raise the window(?)
| * csi: recognize CSI ? 1042/1043 h/lDaniel Eklöf2019-11-04-0/+16
|/ | | | | 1042: set 'urgency' window manager hint when receiving ctrl-g 1043: raise window when receiving ctrl-g
* doc: foot.5: don't upper case 'one' in the middle of a sentenceDaniel Eklöf2019-11-03-1/+1
|
* doc: foot.1: add description of the (mouse) wheelDaniel Eklöf2019-11-03-0/+2
|
* doc: foot.1: spellingDaniel Eklöf2019-11-03-1/+1
|
* wayland: verify xdg-output-manager interface versionDaniel Eklöf2019-11-03-1/+6
|
* wayland: verify server implements the required interface versionsDaniel Eklöf2019-11-03-18/+77
|
* README: remove extra periodDaniel Eklöf2019-11-03-1/+1
|
* man: foot.1: add reference to footclient(1)Daniel Eklöf2019-11-03-1/+1
|
* man: footclient.1: initial documentationDaniel Eklöf2019-11-03-1/+34
|
* man: foot.1: add a DESCRIPTIONDaniel Eklöf2019-11-03-0/+11
|
* man: foot.1: document -s,--serverDaniel Eklöf2019-11-03-0/+22
|
* main: usage for --server now hints about 'footclient'Daniel Eklöf2019-11-03-1/+1
|
* slave: restore signals before calling exec()Daniel Eklöf2019-11-03-1/+14
|
* main: ignore SIGHUP in master processDaniel Eklöf2019-11-03-0/+5
|
* Remove unneeded includeDaniel Eklöf2019-11-03-2/+0
|
* slave: remove unneeded defineDaniel Eklöf2019-11-03-1/+0
|
* terminal: malloc_trim() is a GNU extensionDaniel Eklöf2019-11-03-0/+4
|
* terminal: trim memory after free:ing a terminalDaniel Eklöf2019-11-03-0/+3
| | | | | | | | | | | | | A terminal with lots of scrollback history will have allocated a lot of memory. Normally, free() wont return this memory to the OS, and we don't seem to trigger the automatic trim calls. This means the server would accumulate quite a lot of memory over time, as terminals come and go. Now we explicitly trim the memory every time a terminal is destroyed.
* README: updatesDaniel Eklöf2019-11-03-2/+17
| | | | | | * Multiple windows _are_ supported, sort of, via --server * Add note about GNOME not having SSDs * Add mouse wheel to list of keyboard/mouse shortcuts
* terminal: ptmx fdm handler: tag unlikely branchesDaniel Eklöf2019-11-03-3/+3
|
* terminal: comments and cleanupDaniel Eklöf2019-11-03-0/+9
|
* server: set CLOEXEC | NONBLOCK directly in socket() callDaniel Eklöf2019-11-03-17/+2
|
* Merge branch 'async-ptmx'Daniel Eklöf2019-11-03-88/+210
|\
| * terminal: cleanup asynchronous ptmx output handlingDaniel Eklöf2019-11-03-37/+41
| | | | | | | | | | Break out actual writing to a separate function, and call this function both from the synchronous and the asynchronous code paths.