From b8db8c406566f0b1673d7ad5e11987b1e461ce9e Mon Sep 17 00:00:00 2001 From: Gerard Swiderski Date: Fri, 18 Aug 2023 09:53:55 +0200 Subject: [PATCH] psh: ls-rootfs: add 'clear', 'reset' internal commands Adds 'clear' and 'reset' commands to pshapp internal commands. On large targets, these commands should be implemented by alias to `tset` provided by system tools, while on small targets where psh is used, pshapp controls the terminal (termios) directly, therefore these commands have been implemented as internal (pshapp builtins). JIRA: RTOS-561 --- psh/test-ls-rootfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psh/test-ls-rootfs.py b/psh/test-ls-rootfs.py index 1ace2058..385af323 100644 --- a/psh/test-ls-rootfs.py +++ b/psh/test-ls-rootfs.py @@ -21,8 +21,8 @@ def assert_ls_pshcmds(p, psh_cmds): - # history and exit symlinks shouldn't be present in bin - psh_cmds = set(psh_cmds) - {'history', 'exit'} + # history, exit, clear and reset symlinks shouldn't be present in bin + psh_cmds = set(psh_cmds) - {'history', 'exit', 'clear', 'reset'} psh_cmd_pattern = CONTROL_CODE psh_cmd_pattern += r'(?P' + '|'.join(psh_cmds) + r')'