113 |
{ |
{ |
114 |
int y, x; |
int y, x; |
115 |
|
|
116 |
printf("%s", "\030\032" "\r\xEF\x81\x81" "\033[6n\033D"); |
/* ^X ^Z ^M \170101 */ |
117 |
|
//printf("%s", "\030\032" "\r\xEF\x81\x81" "\033[6n\033D"); |
118 |
|
/* Just print utf-8 encoding for eacute and check cursor position */ |
119 |
|
printf("%s", "\030\032" "\r\xC3\xA9" "\033[6n\033D"); |
120 |
scanf("\033[%u;%u", &y, &x);/* get cursor position */ |
scanf("\033[%u;%u", &y, &x);/* get cursor position */ |
121 |
printf("\033[1F" "\033[%uX", (x-1)); /* go back; erase 1 or 3 char */ |
printf("\033[1F" "\033[%uX", (x-1)); /* go back; erase 1 or 3 char */ |
122 |
if (x == 2) { |
if (x == 2) { |