1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

Small comment about UTF-8 detection.

This commit is contained in:
Witold Filipczyk 2006-09-01 21:06:08 +02:00 committed by Witold Filipczyk
parent b860e1e29e
commit d9037cc4c3

View File

@ -43,7 +43,10 @@ static void check_if_no_terminal(void);
static int
was_utf8(int in, int out)
{
/* taken from setedit */
/* Taken from setedit.
* Set cursor in the up left corner. Write "\357\200\240" == U+F020.
* Read cursor position. For UTF-8 x will be 2.
* For normal mode it will be 4. */
static unsigned char *str = "\033[1;1H\357\200\240\033[6n";
unsigned char buf[20];
int x, y;