小智 16
这就是我最终为了我的目的而做的事情.
int y, x; // to store where you are
getyx(stdscr, y, x); // save current pos
move(y, 0); // move to begining of line
clrtoeol(); // clear line
move(y, x); // move back to where you were
Run Code Online (Sandbox Code Playgroud)