["python","c++","terminal","console"]
Is there go up line character? (Opposite of \n)

I would like to overwrite something on a line above in a serial console. Is there a character that allows me to move up?
Most terminals understand ANSI escape codes. The relevant "Control Sequence Introducer" commands for this use case: "\033[F" – move cursor to the beginning of the previous line "\033[A" – move cursor up one line Example (Python): print("\033[FMy text overwriting the previous line.")