1
0
mirror of https://github.com/NevermindZZT/letter-shell.git synced 2025-01-01 09:58:41 +08:00

新增是否在登录后清除命令行的配置

This commit is contained in:
Letter 2020-06-04 10:20:17 +08:00
parent 85ed0caf02
commit c9509964d3
5 changed files with 18 additions and 0 deletions

View File

@ -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自动锁定超时 |

View File

@ -107,6 +107,11 @@
*/
#define SHELL_SHOW_INFO 1
/**
* @brief
*/
#define SHELL_CLS_WHEN_LOGIN 1
/**
* @brief shell默认用户
*/

View File

@ -107,6 +107,11 @@
*/
#define SHELL_SHOW_INFO 1
/**
* @brief
*/
#define SHELL_CLS_WHEN_LOGIN 1
/**
* @brief shell默认用户
*/

View File

@ -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)
{

View File

@ -105,6 +105,11 @@
*/
#define SHELL_SHOW_INFO 1
/**
* @brief
*/
#define SHELL_CLS_WHEN_LOGIN 1
/**
* @brief shell默认用户
*/