• 4 Posts
  • 49 Comments
Joined 1 year ago
cake
Cake day: June 26th, 2023

help-circle

  • joucker29toProgrammer HumorDebugging
    link
    fedilink
    arrow-up
    2
    ·
    1 month ago

    Im pretty sure its because of char 13 (carriage return). This char sets cursor to the start of the line overwriting whatever was printed there (in most terminals). I belive that some error messages use this char and when you print something the char at the begining or end of the error message overwrites your message. A workaround is simply printing a newline after or before your message.