bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Different behavior in Linux and Mac OS X


From: Sebastiano Vigna
Subject: Re: Different behavior in Linux and Mac OS X
Date: Sun, 9 May 2021 12:15:11 +0100


> On 9 May 2021, at 11:41, Thomas Dickey <dickey@his.com> wrote:
> 
> 
> I don't see that difference, testing on each platform, and assuming that
> you are still referring to the hard-coded example.
> 

OK, try this:

#include <curses.h>
#include <term.h>

int main() {
   tgetent(NULL, "xterm");
   tputs(tgoto("\x1b[%i%d;%dH", 80, 25), 1, putchar);
}

Output on Linux: ESC + [81;26H

Output on Mac Os X: ESC + [26;81H


Ciao,

                                        seba




reply via email to

[Prev in Thread] Current Thread [Next in Thread]