News for hackers. Stuff that matters.
Re:Zsh and Fish’s simple but clever trick for highlighting m... by dahfizz on Sunday June 14, 2020 @10:09PM (#23523156)
My understanding is that the ⏎ character (and some whitespace) is printed unconditionally, but is overwritten by my prompt if the previous command ended with a newline.

If there is no prompt to overwrite the ⏎, why can I not see it?

Re:Zsh and Fish’s simple but clever trick for highlighting m... by ComputerGuru on Sunday June 14, 2020 @11:09PM (#23523405)
That would actually not be OK because we can't count on the prompt to overwrite n characters, and the resulting cruft would give you an incorrect representation of the output if you captured a snapshot of the terminal state (or tried to copy and select). Fish clears the line itself after finding itself at col 0 of the correct row. See my other response for more.