Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCursorPosition sometimes fails and sometimes it works but ... #69

Open
jay51 opened this issue Jul 16, 2020 · 0 comments
Open

getCursorPosition sometimes fails and sometimes it works but ... #69

jay51 opened this issue Jul 16, 2020 · 0 comments

Comments

@jay51
Copy link

jay51 commented Jul 16, 2020

I'm following your blog on building a text editor. btw Thank you so much for that nice blog.

when I call getCursorposition to query the window size it stores the window size to the buf variable noramly but also print the escape sequence to the terminal and waits for me to entire a key before it refresh the screen and display the ~ rows.
terminal example

I tired to clear the screen after reading the window size but it't not working.
I also cloned down your repo to test it and you have the same issue.

my question is, why is that happinging and how to fix it?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant