Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PDCurses でしばしば画面が乱れる件ですが、やっと原因が分かったため対策しました。
PDCurses の getch が、内部で wrefresh を呼んでおり、
Lem の入力用スレッドと本体スレッドの両方から画面を更新していました。。。
対策として、charms/ll:newpad で作成したダミーの画面で getch を発行するようにしました。
(参考URL:
https://github.com/wmcbrine/PDCurses/blob/b7135bc906413898c13e47ec9e154ce3d642c939/pdcurses/getch.c#L193
https://stackoverflow.com/questions/19748685/curses-library-why-does-getch-clear-my-screen )
これでだいぶ表示が安定すると思います。
その他、少し修正しました。
( M-( と M-) が使えない件の対応。lem-if:redraw-view-after の処理見直し等)
また、本修正により、ConEmu の ansi color 設定 が ON でも、
(事前に chcp 65001 を実行しておけば) 正常に表示できるようになりました。