CSI sequences in CLion debugger.
Is there any way to enable CSI sequences in CLion Debug/Run tools windows?
For example:
std::vector<int> Terminal::getCurrPos(void)
{
std::vector<int> res(2, 0);
std::string buff;
size_t i;
this->disableCREAD();
std::cout << "\033[6n";
while (buff.back() != 'R')
buff.append(1, std::cin.get());
res[1] = stoi(buff.substr(2), &i, 10);
i += 3;
res[0] = stoi(buff.substr(i), &i, 10);
this->enableCREAD();
return (res);
}
This code works in Terminal tool window, but in Run/Debug tool windows instead of receiving ESC[n;mR program just waits for user input.
Please sign in to leave a comment.
Hi! What OS do you use? What are disableCREAD() and enableCREAD()?