mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-06-28 10:51:12 +08:00
Workaround for bug in the kitty terminal application.
This commit is contained in:
parent
56d31ac22b
commit
5b5aa4c3b4
@ -841,22 +841,22 @@ void ScreenInteractive::Draw(Component component) {
|
||||
|
||||
// Set cursor position for user using tools to insert CJK characters.
|
||||
{
|
||||
const int dx = dimx_ - 1 - cursor_.x + int(dimx_ != terminal.dimx);
|
||||
const int dy = dimy_ - 1 - cursor_.y;
|
||||
int const dx = dimx_ - 1 - cursor_.x;
|
||||
int const dy = dimy_ - 1 - cursor_.y;
|
||||
|
||||
set_cursor_position.clear();
|
||||
reset_cursor_position.clear();
|
||||
|
||||
if (dx != 0) {
|
||||
set_cursor_position += "\x1B[" + std::to_string(dx) + "D";
|
||||
reset_cursor_position += "\x1B[" + std::to_string(dx) + "C";
|
||||
}
|
||||
|
||||
if (dy != 0) {
|
||||
set_cursor_position += "\x1B[" + std::to_string(dy) + "A";
|
||||
reset_cursor_position += "\x1B[" + std::to_string(dy) + "B";
|
||||
}
|
||||
|
||||
if (dx != 0) {
|
||||
set_cursor_position += "\x1B[" + std::to_string(dx) + "D";
|
||||
reset_cursor_position += "\x1B[" + std::to_string(dx) + "C";
|
||||
}
|
||||
|
||||
if (cursor_.shape == Cursor::Hidden) {
|
||||
set_cursor_position += "\033[?25l";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user