Update Shell REPL, suppress unnecessary output + Disable unsupported child menus #523
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
COMMIT 1:
I realized when opening a Shell REPL a bunch of unnecessary output and weird characters:
The bash errors seem to occur because the bash is not running in a TTY and can therefore no process group can be registered. The bash still works as expected but the output is not necessary and can be suppressed since this is not something that can be fixed anyhow (at least not to my knowledge).
The first added regex will therefore filter these errors out so that they are not displayed angain.
The actual Primary Prompt String (PS1) showed some very odd hex characters (\x1b, \x07) and in between I got a PS1 which doesn't quite fulfill the specs from the .bashrc file. After the \x07 the actual defined PS1 is written. Therefore, the second regex will filter the odd hex characters and the PS1 in between them away.
COMMIT 2:
If programs are not installed on an OS and clicking the menu option for it will result in an error thrown when creating the Popen pipe.
To stop that from happening, the menu entries that are not currently supported by the OS should be disabled.