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

Escaped characters in bash prompt are not decoded #105

Open
mlerman opened this issue Jul 6, 2020 · 1 comment
Open

Escaped characters in bash prompt are not decoded #105

mlerman opened this issue Jul 6, 2020 · 1 comment
Labels
enhancement This issue/PR relates to a feature request.

Comments

@mlerman
Copy link

mlerman commented Jul 6, 2020

The escaped characters in bash prompt are not decoded.
Example I have the prompt $PS1 as follow:
[\e]0;\u@\h: \w\a]${debian_chroot:+($debian_chroot)}\u@\h:\w$
it shows, with a ring bell :
]0;ssd@lerman: �ssd@lerman:$
but it needs to show only:
ssd@lerman:~$
with no ring bell.

The body of the terminal is fine, and that is very cool !

@hartwork
Copy link
Collaborator

hartwork commented Feb 4, 2022

This may be related to #102. What I did to feed a color shell prompt into ansi2html was …

# echo 'exit 123' | script -f script.txt
# ansi2html < script.txt > script.htm
# chromium script.htm

I see no ringing bell but some other magic characters that seem unsupported ANSI "things".

I'm not sure if ansi2html will support those codes, the ones in #100 are also unsupported and maybe that's okay. I'll mark it as an enhancement for now.

@hartwork hartwork added the enhancement This issue/PR relates to a feature request. label Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue/PR relates to a feature request.
Projects
None yet
Development

No branches or pull requests

2 participants