Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
70120168
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
70120168
编写于
1月 05, 2023
作者:
sangshuduo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: prompt
上级
bcbf6726
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
13 deletion
+13
-13
tools/shell/inc/shellInt.h
tools/shell/inc/shellInt.h
+1
-1
tools/shell/src/shellArguments.c
tools/shell/src/shellArguments.c
+8
-8
tools/shell/src/shellAuto.c
tools/shell/src/shellAuto.c
+2
-2
tools/shell/src/shellEngine.c
tools/shell/src/shellEngine.c
+2
-2
未找到文件。
tools/shell/inc/shellInt.h
浏览文件 @
70120168
...
...
@@ -81,7 +81,7 @@ typedef struct {
typedef
struct
{
const
char
*
clientVersion
;
char
brand
Name
[
32
];
char
cus
Name
[
32
];
char
promptHeader
[
32
];
const
char
*
promptContinue
;
const
char
*
osname
;
...
...
tools/shell/src/shellArguments.c
浏览文件 @
70120168
...
...
@@ -19,16 +19,16 @@
#include "shellInt.h"
#ifndef
OEM_BRAND
char
brandN
ame
[]
=
"TDengine"
;
#ifndef
CUS_NAME
char
cus_n
ame
[]
=
"TDengine"
;
#else
char
brandName
[]
=
OEM_BRAND
;
char
cust_name
[]
=
CUS_NAME
;
#endif
#ifndef
OEM
_PROMPT
char
brand
Prompt
[]
=
"taos"
;
#ifndef
CUS
_PROMPT
char
cus
Prompt
[]
=
"taos"
;
#else
char
brandPrompt
[]
=
OEM
_PROMPT
;
char
cusPrompt
[]
=
CUS
_PROMPT
;
#endif
#define TAOS_CONSOLE_PROMPT_CONTINUE " -> "
...
...
@@ -402,8 +402,8 @@ int32_t shellParseArgs(int32_t argc, char *argv[]) {
shell
.
info
.
clientVersion
=
"Welcome to the %s Command Line Interface, Client Version:%s
\r\n
"
"Copyright (c) 2022 by %s, all rights reserved.
\r\n\r\n
"
;
strcpy
(
shell
.
info
.
brandName
,
brand
Name
);
sprintf
(
shell
.
info
.
promptHeader
,
"%s> "
,
brand
Prompt
);
strcpy
(
shell
.
info
.
cusName
,
cus
Name
);
sprintf
(
shell
.
info
.
promptHeader
,
"%s> "
,
cus
Prompt
);
shell
.
info
.
promptContinue
=
TAOS_CONSOLE_PROMPT_CONTINUE
;
shell
.
info
.
promptSize
=
strlen
(
shell
.
info
.
promptHeader
);
snprintf
(
shell
.
info
.
programVersion
,
sizeof
(
shell
.
info
.
programVersion
),
"version: %s"
,
version
);
...
...
tools/shell/src/shellAuto.c
浏览文件 @
70120168
...
...
@@ -329,7 +329,7 @@ int cntDel = 0; // delete byte count after next press tab
// show auto tab introduction
void
printfIntroduction
()
{
printf
(
" ****************************** Tab Completion **********************************
\n
"
);
printf
(
" * The %s CLI supports tab completion for a variety of items,
*
\n
"
,
shell
.
info
.
brand
Name
);
printf
(
" * The %s CLI supports tab completion for a variety of items,
\n
"
,
shell
.
info
.
cus
Name
);
printf
(
" * including database names, table names, function names and keywords. *
\n
"
);
printf
(
" * The full list of shortcut keys is as follows: *
\n
"
);
printf
(
" * [ TAB ] ...... complete the current word *
\n
"
);
...
...
@@ -344,7 +344,7 @@ void printfIntroduction() {
}
void
showHelp
()
{
printf
(
"
\n
The %s CLI supports the following commands:"
,
shell
.
info
.
brand
Name
);
printf
(
"
\n
The %s CLI supports the following commands:"
,
shell
.
info
.
cus
Name
);
printf
(
"
\n
\
----- A -----
\n
\
...
...
tools/shell/src/shellEngine.c
浏览文件 @
70120168
...
...
@@ -1072,8 +1072,8 @@ void *shellThreadLoop(void *arg) {
}
int32_t
shellExecute
()
{
printf
(
shell
.
info
.
clientVersion
,
shell
.
info
.
brand
Name
,
taos_get_client_info
(),
shell
.
info
.
brand
Name
);
printf
(
shell
.
info
.
clientVersion
,
shell
.
info
.
cus
Name
,
taos_get_client_info
(),
shell
.
info
.
cus
Name
);
fflush
(
stdout
);
SShellArgs
*
pArgs
=
&
shell
.
args
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录