32 lines
537 B
C
32 lines
537 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "draw.h"
|
|
#include "main.h"
|
|
|
|
#ifdef _WIN32
|
|
#include <windows.h>
|
|
#define sleep_ms(ms) Sleep(ms)
|
|
#else
|
|
#include <unistd.h>
|
|
#define sleep_ms(ms) usleep((ms) * 1000)
|
|
#endif
|
|
|
|
int main() {
|
|
char output[1024];
|
|
|
|
getInitialWorries(output);
|
|
|
|
drawEdges();
|
|
drawEmptyLines(1);
|
|
drawTitle(TITLE);
|
|
drawEmptyLines(1);
|
|
drawEdges();
|
|
printf("%s", output);
|
|
|
|
return 0;
|
|
}
|
|
|
|
void getInitialWorries(char* output) {
|
|
scanf("What's on your mind? %s\n", output);
|
|
}
|