We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好,我定义了这样一个函数
/** * @brief shell写字符,但会判断解锁状态,未解锁只显示'*' * * @param shell shell对象 * @param data 字符数据 */ static void shellCheckWriteByte(Shell *shell, char data) { static char s='*'; if(shell->status.isChecked) shell->write(&data, 1); else shell->write(&s, 1); }
并用该函数替换了void shellRight(Shell *shell)和void shellInsertByte(Shell *shell, char data)函数中调用的shellCheckWriteByte
void shellRight(Shell *shell)
void shellInsertByte(Shell *shell, char data)
shellCheckWriteByte
以此实现了输入密码回显为指定字符,请问您会有计划将改功能添加到cfg中吗?
The text was updated successfully, but these errors were encountered:
可以加这个功能,但是要考虑完整些,退格,光标移动都需要做处理
Sorry, something went wrong.
No branches or pull requests
密码回显
您好,我定义了这样一个函数
并用该函数替换了
void shellRight(Shell *shell)
和void shellInsertByte(Shell *shell, char data)
函数中调用的shellCheckWriteByte
以此实现了输入密码回显为指定字符,请问您会有计划将改功能添加到cfg中吗?
The text was updated successfully, but these errors were encountered: