Hacker News new | ask | show | jobs
by freiheit 2711 days ago
Your client asks for 1 file, the server comes back with 2 files (the 2nd one what you actually asked for), but the name of the first (tiny) file's name contains escape sequences that clear the line, move up a line, or otherwise obscure that the first file was sent.
1 comments

Awesome, found https://en.wikipedia.org/wiki/ANSI_escape_code and played a bit in my terminal. It is fun.

    $ echo -e "hello\n\e[1A[2K\rworld"                                                                      
    $ world