Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
Qt Creator 17.0.0
-
None
-
Debian GNU/Linux 11 (bullseye) gnome 3.38.5 /wayland
-
-
Linux/Wayland
Description
It seems that the terminal as indicated at projects->run->Run is not a full interactive terminal anymore. (Linux only)
Eg isatty(STDIN_FILENO)) returns false. Eg a canonical getch() like function like:
int getch()
{
struct termios oldt, newt;
tcgetattr( STDIN_FILENO, &oldt );
newt = oldt;
newt.c_lflag &= ~ ICANON; // not buffered
newt.c_lflag &= ~ ECHO ; // no echo
tcsetattr( STDIN_FILENO, TCSANOW, &newt ); // set
int ch = getchar();
tcsetattr( STDIN_FILENO, TCSANOW, &oldt ); // restore
return ch;
}
Does not work anymore and always immediately returns -1. Worked fine with QtCreators before 17.0