View Single Post

   
  #1 (permalink)  
Old 01-05-2008, 06:35 AM
ak@nyangau.fsnet.co.uk
 
Posts: n/a
Default Any known issues with terminfo ich/dch and AIX Curses on 5.3

I have a curses program which works fine on numerous other platforms,
including AIX Extended Curses on earlier AIXes. It uses foreground and
background colors. I'm now using curses rather than AIX Extended Curses
on AIX 5.3.

I took the normal vt100 and xterm terminfo entries and added some color
capabilities, to make vt100-color and xterm-color, I added
colors, pairs, setab, setaf, setb, setf, op, bce, ncv
I used "use" to pick up everything else from the base vt100 and xterm
definitions.

All is fine using vt100-color, but with xterm-color, I occassionally
get single character black spaces where I should get a space printed
with a different background colour.

Looking at the xterm-color and vt100-color entries, the only
significant difference is the fact that the xterm-color inherited a
couple of extra capabilities,
dch1, dch, dl, ich1, ich, il

There are some minor differences in padding, but I'm not really
expecting this to be a factor, given my choice of terminal emulator.

I note that when I see the problem, it looks as if the curses library
may have decided to use the ich1 or ich sequences. It certainly would
have been a reasonable thing to do at that point. For example, the line
on the screen might be changing from
word_word
to
wordy_wordy
where the entire line is yellow on red, and the _ is a space.
The (unexpected result) is that sometimes the space becomes (something
on) black.
My guess is that it is actually a white on black space.

I'm using PuTTY, and this emulates xterm (+extra stuff), and I have
confirmed
that it responds correctly to the \E[@ and \[P sequences used by ich
and dch, including the handling of the background.

Note that I do have bce in the terminfo definitions.


So I ask, are there any known issues with terminfo ich/dch and AIX
Curses on 5.3 ?

{{{ Andy

Reply With Quote