diff --git a/tools/shell/inc/shellAuto.h b/tools/shell/inc/shellAuto.h index b2aaee9b6bcb2b6f96efd70be76547089897f18e..2cfab41f26e91c0ad015670e825e216bb266996a 100644 --- a/tools/shell/inc/shellAuto.h +++ b/tools/shell/inc/shellAuto.h @@ -36,5 +36,7 @@ void shellAutoExit(); // callback autotab module void callbackAutoTab(char* sqlstr, TAOS* pSql, bool usedb); +// introduction +void printfIntroduction(); #endif diff --git a/tools/shell/src/shellAuto.c b/tools/shell/src/shellAuto.c index 67852ec8375ac532bf51bb14f84e10ca6d23a41a..f8c93a524af524cfeb3e7ac0ea4c76c1ea5a58ab 100644 --- a/tools/shell/src/shellAuto.c +++ b/tools/shell/src/shellAuto.c @@ -328,8 +328,8 @@ int cntDel = 0; // delete byte count after next press tab // show auto tab introduction void printfIntroduction() { - printf(" ********************* How to Use TAB in TAOS Shell ******************************\n"); - printf(" * Taos shell supports pressing TAB key to complete word. You can try it. *\n"); + printf(" **************************** How to Use TAB Key ********************************\n"); + printf(" * TDengine Command Line supports pressing TAB key to complete word. *\n"); printf(" * Press TAB key anywhere, You'll get surprise. *\n"); printf(" * KEYBOARD SHORTCUT: *\n"); printf(" * [ TAB ] ...... Complete the word or show help if no input *\n"); @@ -583,8 +583,6 @@ bool shellAutoInit() { GenerateVarType(WT_VAR_DATATYPE, data_types, sizeof(data_types) /sizeof(char *)); GenerateVarType(WT_VAR_KEYTAGS, key_tags, sizeof(key_tags) /sizeof(char *)); - printfIntroduction(); - return true; } diff --git a/tools/shell/src/shellEngine.c b/tools/shell/src/shellEngine.c index f07d5e2cc42a9012777826f65f2a15ba1c46b8bc..3a96bec451bd6e59b297c94018b85178fda17b29 100644 --- a/tools/shell/src/shellEngine.c +++ b/tools/shell/src/shellEngine.c @@ -1105,6 +1105,7 @@ int32_t shellExecute() { #ifdef WEBSOCKET if (!shell.args.restful && !shell.args.cloud) { #endif + printfIntroduction(); shellGetGrantInfo(); #ifdef WEBSOCKET }