Merge pull request #14431 from taosdata/fix/ZhiqiangWang/TD-16357-fix-shell-ctrl-d-error

shell: fix shell ctrl-d error
This commit is contained in:
Zhiqiang Wang 2022-07-01 02:24:18 -07:00 committed by GitHub
commit 9c5c9ac568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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