mirror of
https://github.com/NevermindZZT/letter-shell.git
synced 2025-01-01 09:58:41 +08:00
新增是否在登录后清除命令行的配置
This commit is contained in:
parent
85ed0caf02
commit
c9509964d3
@ -131,6 +131,7 @@
|
||||
| SHELL_MAX_NUMBER | 管理的最大shell数量 |
|
||||
| SHELL_GET_TICK() | 获取系统时间(ms) |
|
||||
| SHELL_SHOW_INFO | 是否显示shell信息 |
|
||||
| SHELL_CLS_WHEN_LOGIN | 是否在登录后清除命令行 |
|
||||
| SHELL_DEFAULT_USER | shell默认用户 |
|
||||
| SHELL_DEFAULT_USER_PASSWORD | 默认用户密码 |
|
||||
| SHELL_LOCK_TIMEOUT | shell自动锁定超时 |
|
||||
|
@ -107,6 +107,11 @@
|
||||
*/
|
||||
#define SHELL_SHOW_INFO 1
|
||||
|
||||
/**
|
||||
* @brief 是否在登录后清除命令行
|
||||
*/
|
||||
#define SHELL_CLS_WHEN_LOGIN 1
|
||||
|
||||
/**
|
||||
* @brief shell默认用户
|
||||
*/
|
||||
|
@ -107,6 +107,11 @@
|
||||
*/
|
||||
#define SHELL_SHOW_INFO 1
|
||||
|
||||
/**
|
||||
* @brief 是否在登录后清除命令行
|
||||
*/
|
||||
#define SHELL_CLS_WHEN_LOGIN 1
|
||||
|
||||
/**
|
||||
* @brief shell默认用户
|
||||
*/
|
||||
|
@ -1124,7 +1124,9 @@ static void shellSetUser(Shell *shell, const ShellCommand *user)
|
||||
|| strcmp(user->data.user.password, shell->parser.param[1]) != 0))
|
||||
? 0 : 1;
|
||||
|
||||
#if SHELL_CLS_WHEN_LOGIN == 1
|
||||
shellWriteString(shell, shellText[SHELL_TEXT_CLEAR_CONSOLE]);
|
||||
#endif
|
||||
#if SHELL_SHOW_INFO == 1
|
||||
if (shell->status.isChecked)
|
||||
{
|
||||
|
@ -105,6 +105,11 @@
|
||||
*/
|
||||
#define SHELL_SHOW_INFO 1
|
||||
|
||||
/**
|
||||
* @brief 是否在登录后清除命令行
|
||||
*/
|
||||
#define SHELL_CLS_WHEN_LOGIN 1
|
||||
|
||||
/**
|
||||
* @brief shell默认用户
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user