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 codes for this use case:
"\033[F"
– move cursor to the beginning of the previous line"\033[A"
– move cursor up one lineExample (Python):
print("\033[FMy text overwriting the previous line.")