1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #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) {
- }
- void EShExecuteJobs(int jobs_num, EShJob* jobs_list) {
- }
- void EShSetJobCommandType(EShJob* job) {
- }
- void EShRunJob(EShJob* job) {
- }
- int EmptyCommand(const char* command) {
- }
- int InnerCommand(const char* command) {
- }
- void EShProcessInnerJob(const char* command) {
- }
- void EShProcessExecJob(const char* command) {
-
- }
|