Skip to content
New issue

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

'Graphics mode' ANSI escape codes on OpenWRT (Linux) #3565

Open
max-dw-i opened this issue Feb 1, 2025 · 0 comments
Open

'Graphics mode' ANSI escape codes on OpenWRT (Linux) #3565

max-dw-i opened this issue Feb 1, 2025 · 0 comments

Comments

@max-dw-i
Copy link
Contributor

max-dw-i commented Feb 1, 2025

When we execute some command on OpenWRT devices (that have the linux device type, basically), we can see ANSI escape codes that set the output colours. For example,

ls -s /
     0 \u001b[1;34mbin         0 \u001b[1;34mlib         0 \u001b[1;36mlib64       0 \u001b[1;34mmnt         1 \u001b[1;34moverlay     0 \u001b[1;34mproc        0 \u001b[1;34mrom         0 \u001b[1;34mroot        0 \u001b[1;34msbin        0 \u001b[1;34msys         0 \u001b[1;34mtmp         0 \u001b[1;34musr         0 \u001b[1;36mvar         0 \u001b[1;34mwww
root@OpenWrt:~#

There are already some regexes related to the output colours in the code. But I do not know how general the new regex should be. So far I've seen only the codes where the number after the ; changes (34, 36, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant