|
@@ -1,11 +1,29 @@
|
|
|
#include "esh_main_loop.h"
|
|
|
+#include "esh_misc.h"
|
|
|
|
|
|
void EShRunLoop() {
|
|
|
+ for (;;) {
|
|
|
+ EShShowMsg();
|
|
|
+ char* command = NULL;
|
|
|
+ int command_length = 0;
|
|
|
+ ssize_t buf_size = 0;
|
|
|
|
|
|
+ while ((command_length = getline(&command, &buf_size, stdin)) == 0) {
|
|
|
+ // repeating
|
|
|
+ }
|
|
|
+
|
|
|
+ if (command_length == -1)
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void EShShowMsg() {
|
|
|
+ EShUpdateInviteMessage();
|
|
|
+ EShUpdateInviteMessage();
|
|
|
+ EShUpdateInviteMessage();
|
|
|
+ EShUpdateInviteMessage();
|
|
|
|
|
|
+ printf("%s", esh_info_global->invite_message);
|
|
|
}
|
|
|
|
|
|
void EShParseCommandIntoJobs(char* command) {
|