[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Different behavior in Linux and Mac OS X
From: |
Thomas Dickey |
Subject: |
Re: Different behavior in Linux and Mac OS X |
Date: |
Sun, 9 May 2021 06:31:18 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Sun, May 09, 2021 at 03:34:09AM +0100, Sebastiano Vigna wrote:
>
>
> > On 9 May 2021, at 03:20, Sebastiano Vigna <sebastiano.vigna@unimi.it> wrote:
> >
> > No, that's the first thing I tried. It almost works, but not completely.
> > The cursor is not always positioned correctly. There is some visible
> > improvement from the no-setupterm() version, but still it does not work.
>
> Let me be more precise:
>
> - If I unset TERM, the behavior is identical to not calling setupterm()
> - If I set TERM to "dummy" , the behavior is identical to not calling
> setupterm()
> - If I set TERM to "ansi", or leave it xterm-256color, some cursor placement
> happens but, for example, when moving around the update of line and column
> numbers happen in the middle of the screen, instead of the status bar.
If you set TERM to a valid terminal description, but use your hard-coded
escape sequence (e.g., ignoring the terminal description's strings while
allowing the tputs check for initialization to succeed), then it should
work as intended.
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature
- Re: Different behavior in Linux and Mac OS X, (continued)
- Re: Different behavior in Linux and Mac OS X, Sebastiano Vigna, 2021/05/05
- Re: Different behavior in Linux and Mac OS X, Thomas Dickey, 2021/05/05
- Re: Different behavior in Linux and Mac OS X, Thomas Dickey, 2021/05/08
- Re: Different behavior in Linux and Mac OS X, Sebastiano Vigna, 2021/05/08
- Re: Different behavior in Linux and Mac OS X, Sebastiano Vigna, 2021/05/08
- Re: Different behavior in Linux and Mac OS X, Sebastiano Vigna, 2021/05/09
- Re: Different behavior in Linux and Mac OS X, Thomas Dickey, 2021/05/09
- Re: Different behavior in Linux and Mac OS X, Sebastiano Vigna, 2021/05/09
- Re: Different behavior in Linux and Mac OS X, Thomas Dickey, 2021/05/09
- Re: Different behavior in Linux and Mac OS X, Sebastiano Vigna, 2021/05/09
- Re: Different behavior in Linux and Mac OS X,
Thomas Dickey <=