getCursorPosition sometimes fails and sometimes it works but ...
- Ngôn ngữ chính
- C
- Star
- 9.1k
- Fork
- 995
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.

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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.