You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im trying to Cleanse the string "\u0008\u001b[K", i would expect to get an empty string afterwards since its all escape chars.
but instead im getting the error in the title.
also according to ChatGPT its seems like a valid sequence:
"\u0008" (Backspace): As mentioned earlier, this is the "Backspace" character, which is used to move the cursor or insertion point one position backward within the same line of text.
"\u001b[K": This is an ANSI escape sequence that instructs the terminal to clear characters from the current cursor position to the end of the line. The "\u001b" represents the Escape character, and "[K" is the control code for erasing characters to the right of the cursor.
The text was updated successfully, but these errors were encountered:
Im not sure regarding all the cases where this sequence occurs, I mean what happens when there's a text adj to it , how can I know where is the cursor and what sequence of bytes I would need to erase. Also I got the same error with the same sequence with '[1P' at the end instead of '[K'.
Do you have any useful resource to read about all those codes?
Hey thank you for this amazing project.
im trying to Cleanse the string
"\u0008\u001b[K"
, i would expect to get an empty string afterwards since its all escape chars.but instead im getting the error in the title.
also according to ChatGPT its seems like a valid sequence:
The text was updated successfully, but these errors were encountered: