diff options
author | June McEnroe <june@causal.agency> | 2018-08-24 22:31:14 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-08-24 22:31:14 -0400 |
commit | 9ccee371e151bad820eba125a02a2ec1b11a390d (patch) | |
tree | 76fe634465363fec4ac5aadc4710c8d80e5c8919 /client.c | |
parent | Always interpret space as space (diff) | |
download | torus-9ccee371e151bad820eba125a02a2ec1b11a390d.tar.gz torus-9ccee371e151bad820eba125a02a2ec1b11a390d.zip |
Fill in the help page
Also display it before connecting to the socket.
Diffstat (limited to '')
-rw-r--r-- | client.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client.c b/client.c index f97ec92..9e7ab5d 100644 --- a/client.c +++ b/client.c @@ -487,6 +487,10 @@ static void readInput(void) { } int main() { + curse(); + modeHelp(); + readInput(); + client = socket(PF_LOCAL, SOCK_STREAM, 0); if (client < 0) err(EX_OSERR, "socket"); @@ -497,11 +501,6 @@ int main() { int error = connect(client, (struct sockaddr *)&addr, sizeof(addr)); if (error) err(EX_NOINPUT, "torus.sock"); - curse(); - - modeHelp(); - readInput(); - struct pollfd fds[2] = { { .fd = STDIN_FILENO, .events = POLLIN }, { .fd = client, .events = POLLIN }, |