aboutsummaryrefslogtreecommitdiff
path: root/client.c (follow)
Commit message (Collapse)AuthorAgeLines
* client/server: implement '--hold' in footclientDaniel Eklöf2020-05-26-0/+13
|
* main/client: be POSIXLY_CORRECT when parsing command lineDaniel Eklöf2020-05-08-3/+3
| | | | | | | | | | | | | | | | | | | | This means command line parsing stops when it encounters the first nonoption argument. The result is that one no longer need to use '--' to ensure arguments are passed to the shell/command, instead of parsed by foot. That is, instead of foot -- sh -c true one can now do foot sh -c true Arguments to foot *must* go before the command: foot --fullscreen sh -c true
* conf: add 'title' conf option and --title command line optionDaniel Eklöf2020-04-01-0/+16
|
* conf: add app-id config option and --app-id command line optionDaniel Eklöf2020-04-01-10/+25
|
* client: add --maximized and --fullscreenDaniel Eklöf2020-03-27-0/+28
| | | | | | | | | We now create a copy of the config for each client, and updates it with the values passed from the client. Since we're not actually cloning it (and e.g. strdup() all strings etc) we can't call conf_destroy() to free it, but need to free just the strings we've replaced.
* client: log path we actually tried to connect to (and failed)Daniel Eklöf2020-03-10-1/+1
|
* client: update --server-socket usage to mention XDG_SESSION_IDDaniel Eklöf2020-03-10-1/+1
|
* server/client: add XDG_SESSION_ID to the default socket pathDaniel Eklöf2020-03-09-1/+4
| | | | This allows multiple foot servers to run in multiple sessions.
* client: make sure 'cwd' is in scope of all goto'sDaniel Eklöf2020-02-20-1/+3
|
* client: allocate current working directory buffer dynamicallyDaniel Eklöf2020-02-20-2/+14
|
* slave: prefix argv[0] with a '-' when spawning a login-shellDaniel Eklöf2020-02-20-0/+6
|
* client: add --login-shell command line optionDaniel Eklöf2020-02-20-0/+7
|
* main: add --print-pid=FILE|FDDaniel Eklöf2020-02-05-5/+22
| | | | | When specified, our PID is written to the specified file (or FD), after we've successfully started up.
* client/server: client sends its CWD to serverDaniel Eklöf2019-12-21-0/+12
|
* log: caller can control syslog levelDaniel Eklöf2019-12-17-1/+1
|
* client: strncpy() size limit must be less than destination sizeDaniel Eklöf2019-12-14-1/+1
|
* client: add missing break after handling -t,--termDaniel Eklöf2019-12-14-0/+1
|
* client: add 's:' to the list of recognized short optionsDaniel Eklöf2019-12-14-1/+1
|
* client: initialize/deinitialize the logging systemDaniel Eklöf2019-12-14-0/+2
|
* client: add -s,--server-socket command line optionDaniel Eklöf2019-12-14-16/+34
| | | | | This allows the user to override the default path (XDG_RUNTIME_DIR/foot.sock) we try to connect to.
* server/client: harden reading of initialization data, and make asyncDaniel Eklöf2019-11-05-2/+21
| | | | | | | | | | | | | | | | | | | | * 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.
* client: bug: verify argv was sent correctlyDaniel Eklöf2019-11-01-1/+1
| | | | We checked we had written 2 bytes (sizeof(len)), not <len> bytes.
* client: add debug logging of argc/argvDaniel Eklöf2019-11-01-0/+4
|
* client: register signal handler for SIGTERM tooDaniel Eklöf2019-11-01-1/+2
|
* client/server: add -t,--term to footclientDaniel Eklöf2019-11-01-2/+18
|
* client: add long options for --verbose and --helpDaniel Eklöf2019-11-01-1/+7
|
* client: a standalone binary that connects to a foot --serverDaniel Eklöf2019-11-01-0/+130