<div dir="ltr"><div>I have the following:<br></div><div><br></div><div><div>    put_progress(Format, Args) -></div><div>        io:put_chars(user,</div><div>                     [tsl(), io_lib:format(Format, Args), fsl()]),</div><div>        io:put_chars(user,</div><div>                     [colored(), io_lib:format(Format, Args), reset(), "\n"]),</div><div>        ok.</div><div><br></div><div>    tsl() -> "\e]0;".</div><div>    fsl() -> "\a".</div><div>    colored() -> "\e[1;44m".</div><div>    reset() -> "\e[0m".</div></div><div><br></div><div>That is: output the same message to the title bar (tsl, fsl are the tput capability names; see <a href="https://serverfault.com/a/23998/7027">https://serverfault.com/a/23998/7027</a>), and then (for now) also output it in colour, so that I can see if it's being called correctly.</div><div><br></div><div>Unfortunately, something is messing with my tsl() and fsl() escape codes. The coloured text is coming out correctly, but the other stuff's garbage. The escape codes are correct; I've tested them at the bash prompt with "echo -e '\e]0;Hello\a'".</div><div><br></div><div>So... what's screwing with them when they're output from ct_run?</div><div><br></div><div>Interestingly, if I try the same at the Erlang prompt, it hangs the shell until I press Ctrl+C twice, at which point the text is output, but still messed up.</div><div><br></div><div>Cheers,</div><div>Roger.</div></div>