antirez / antirez/kilo

getCursorPosition sometimes fails and sometimes it works but ...

Ouverte
#69 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C
Étoiles
9.1k
Forks
995
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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](https://i.imgur.com/EfwMM1O.png)

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.