pfalcon/picotui

[Question] clear_num_pos

piyueh opened this issue · 1 comments

Hi, thanks for open-sourcing this cool project.

I'm trying to read the source code but not familiar with control sequences. What does the clear_num_pos under the Screen class do?

def clear_num_pos(num):
if num > 0:
Screen.wr("\x1b[%dX" % num)

I couldn't find references to the control sequence X. I thought it was like backspace. But on my machine, instead of deleting characters on the left, it deletes characters on the right of the cursor. So in order to delete characters, I have to first move the cursor to the left and then use \x1b[1X to clear the characters on the right. Do I understand it right?

Thanks in advance!

Alright, I found the reference here: https://www.xfree86.org/current/ctlseqs.html. Closing the issue.