You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seems like ftxui::ScreenInteractive disables raw mode only after the program exited, so if mouse was moving on terminal screen i get a few garbage symbols in terminal
same if program stops by SIGINT or by ScreenInteractive.Exit()
minimal working example
#include"ftxui/component/component.hpp"
#include"ftxui/component/screen_interactive.hpp"intmain(){
auto screen = ftxui::ScreenInteractive::Fullscreen();
auto testComponent = ftxui::Renderer([](){returnftxui::text("test Component");});
screen.Loop(testComponent);
return0;
}
output(sometimes) :
# ./issue # 1;48;10M
program is run on arm processor on embedded linux, to which I'm connecting by ssh using "GNOME Terminal" version 3.44.0 on linux mint
ftxui::ScreenInteractive.TrackMouse(false) doesn't fix it
the only consistent workaround i found is this monstrosity
#include"ftxui/component/component.hpp"
#include"ftxui/component/screen_interactive.hpp"
#include<stdlib.h>
#include<termios.h>
#include<unistd.h>structtermios orig_termios;
intmain(){
tcgetattr(STDIN_FILENO, &orig_termios);
{ // so screen destructor is called firstauto screen = ftxui::ScreenInteractive::Fullscreen();
screen.TrackMouse(false);
auto testComponent = ftxui::Renderer([](){returnftxui::text("test Component");});
screen.Loop(testComponent);
}
tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios);
// std::system("clear");return0;
}
The text was updated successfully, but these errors were encountered:
it seems like ftxui::ScreenInteractive disables raw mode only after the program exited, so if mouse was moving on terminal screen i get a few garbage symbols in terminal
same if program stops by SIGINT or by ScreenInteractive.Exit()
minimal working example
output(sometimes) :
program is run on arm processor on embedded linux, to which I'm connecting by ssh using "GNOME Terminal" version 3.44.0 on linux mint
ftxui::ScreenInteractive.TrackMouse(false) doesn't fix it
the only consistent workaround i found is this monstrosity
The text was updated successfully, but these errors were encountered: