News for hackers. Stuff that matters.
Re:Zsh and Fish’s simple but clever trick for highlighting m... by koala_man on Sunday June 14, 2020 @11:35PM (#23523520)
I did indeed skip some details in the article. In the case of Zsh, the output actually ends with `\r \r` which is probably meant to handle this exact case by having a space overwrite any marker in case the prompt doesn't.
Re:Zsh and Fish’s simple but clever trick for highlighting m... by ComputerGuru on Monday June 15, 2020 @12:10AM (#23523713)
Ah, I couldn't remember what it was that we did differently from zsh, but I knew there was something.

I would imagine - depending on the terminal emulator - the zsh behavior would cause copy-paste-cruft in the form of trailing whitespace while appearing correct, and would guess this was why we changed our implementation.