Use readline to post status

This commit is contained in:
qorg11 2021-04-30 19:01:54 +02:00
parent a0d078e78f
commit 5566cdb09a
Signed by: qorg11
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#include <stdio.h> #include <stdio.h>
#include <readline/readline.h>
#include <unistd.h> #include <unistd.h>
#include "login.h" #include "login.h"
@ -13,5 +14,5 @@ main(void)
char access_token[50]; char access_token[50];
if(access(".demiurgerc", F_OK )) if(access(".demiurgerc", F_OK ))
setup(); setup();
post_status("Hello from demiurge 2!","public"); post_status(readline("Enter your post: "),"public");
} }