aboutsummaryrefslogtreecommitdiff
path: root/client.c (follow)
Commit message (Collapse)AuthorAgeLines
* 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