On Thu, Sep 11, 2014 at 5:35 AM, Michael Longval <
mlon...@gmail.com> wrote:
> Well I've been trying a few things.
>
> On my system:
> MacOS 10.9.4
> with Homebrew (updated)
>
> Using the latest "npycurses" I noticed the following bugs:
>
> ***Assuming zsh, tmux or screen (either one - I tried both), and Terminal.app or iTerm2 are setup properly... ( $TERM=xterm-256color ) ***
>
> If I run npycurses EXAMPLE.py with python3 on any combination of zsh or bash and Terminal.app or iTerm, I have no problems with the proper display of the cursor on npyscreen forms.
>
> If I run EXAMPLE.py under either multiplexer (screen OR tmux), on either Terminal.app or iTerm, then the cursor in invisible on the npyscreen EXAMPLE.py form. (or any other example ... for that matter.)
>
> Colors display correctly now however (no background color problems...)
>
> There is however the case that iTerm does NOT render the form borders exactly the same way the Terminal.app does.
>
> In my opinion Terminal.app rendition is better, for there are no gaps between the characters that compose the vertical stripes around the form.
> It is almost as if the character used by npyscreen for the border is not the same on Terminal.app as it is on iTerm2. (both terminals are set for UTF-8)
Hi Mike,
All of this is pretty much down to problems with a mismatch between
your TERM environment variable and the terminal you are running on.
Terminals use special control characters to do various things, such as
put colours or special characters on the screen. The underlying
curses library knows about different terminal types and then does its
best to send the right control characters to the screen.
tmux seems to really interfere with things. I can't find a good
combination of environment variable and terminal application (I've
tried Terminal.app and xterm on OS X) that doesn't mess up at least
some of the drawing characters.
I'll make any changes to npyscreen that will provide a work-around,
but at the moment I just don't see what these are. Perhaps it is
worth raising with the tmux developers.