termcaps を使用して複数のカーソル位置を保存し、後で復元できるかどうかを知りたいですか?
例えば :
char *c_pos_1 = tgetstr("sc", NULL); //save cursor position at position 1
コードの後半で
char *c_pos_2 = tgetstr("sc", NULL);
コードの後半で
char *c_pos_3 = tgetstr("sc", NULL);
コードの後半で
tputs(c_pos_2, 1, my_out); // restoring cursor at c_pos_2
その後のコードで
tputs(c_pos_1, 1, my_out); //restoring cursor at c_pos_1
それが不可能な場合はどうすればよいですか?
ご協力ありがとうございました :)