Skip to content

Commit

Permalink
psh: ls-rootfs: add 'clear', 'reset' internal commands
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gerard5 committed Aug 18, 2023
1 parent b0816ca commit b8db8c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psh/test-ls-rootfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<cmd>' + '|'.join(psh_cmds) + r')'
Expand Down

0 comments on commit b8db8c4

Please sign in to comment.