shell: fix shell ctrl-d error

This commit is contained in:
afwerar 2022-07-01 15:16:19 +08:00
parent f421ab09dd
commit e10e621fc2
1 changed files with 1 additions and 0 deletions

View File

@ -482,6 +482,7 @@ int32_t shellReadCommand(char *command) {
#endif
break;
case 4: // EOF or Ctrl+D
taosResetTerminalMode();
printf("\n");
return -1;
case 5: // ctrl E