Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion appcui/src/backend/crossterm/implementation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,15 @@ impl Backend for CrossTerm {

flags = ch.flags;
}
if ! position_changed {
if ! position_changed {
queue!(stdout, MoveTo(x as u16, y as u16)).unwrap();
position_changed = true;
}
if ! ch.code.is_ascii() {
// Errors on painting could be due to wide chars.
// Cursor must be reposition after each wide character.
position_changed = false;
}
queue!(stdout, Print(ch.code)).unwrap();
} else if position_changed {
position_changed = false;
Expand Down
Loading