ansi2html
ansi2html copied to clipboard
Escaped characters in bash prompt are not decoded
trafficstars
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 !
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.