avocado-framework / aexpect

Python library used to control interactive programs
GNU General Public License v2.0
8 stars 32 forks source link

utils/astring: add expected control characters #134

Open smitterl opened 3 months ago

smitterl commented 3 months ago

Fixes: #133

In recent kernel boots, stripping raised error because of missing control characters.

Add them: c reset screen !p soft reset terminal ]104 - execute OS command '104'

These control characters are listed in the xterm control sequence cheat sheet at https://gist.github.com/justinmk/a5102f9a0c1810437885a04a07ef0a91

smitterl commented 3 months ago

With !p and ]104 issue #133 doesn't happen and my test passes. However I have not found any reference to explain these characters. @clebergnu can you help?

smitterl commented 3 months ago

It looks to me the sequences are:

ESC c: terminal reset ESC !p: terminal reset ESC ]: introduces an OS command

I don't have details about the OS command 104.

Ref. https://gist.github.com/justinmk/a5102f9a0c1810437885a04a07ef0a91

ldoktor commented 1 month ago

Hello @smitterl any updates on this one? The [c] is a big no no for me as it simply matches any error that contains c after the \x1b even if it's 1000 characters later.