antirez / antirez/kilo

getCursorPosition sometimes fails and sometimes it works but ...

オープン
#69 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
9.1k
フォーク
995
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。