libncursesw display problem in ubuntu 20.4
Since upgrading from 18.04 LTS to 20.04 LTS I have 2 problems in the screen display using AUBIT4GL
(1)
in displaying data to a screen array where the first field is short (<4 characters) and the gap between the first 2 fields is a single space, and normal display has no explicit colour attribute,
the second field is shifted left by one character.
The CURRENT row, with colour attribute set, displays correctly.
As the row cursor is shifted down the screen and back up, the 'ghost' of previous display remains, so the first 2 fields appear a mess.
If "normal" libncurses is used, the problem does not appear.
The problem can be 'fixed' (or rather, hidden) by applying an explicit colour attribute to the display window, even if it's the same as the implicit colour used when no attribute is given.
(2)
In displaying a window with a border with the top left set at column 3, the border is displayed 1 character space left of the screen fields, so that there is a gap at the left, and the right-hand border is lost.
A variant of this problem appears in a couple of instances, where a MENU line is displayed. In these cases, the border round the 3 sides of the menu lines (top or bottom of the screen) are offset left by 1 and the rest of the border displays correctly.
The only 'fix' I have found is to shift all windows that were starting in column 3, to use column 2 or 4+
I realise that this may not be a cursesw problem, and checking the source code for aubit4gl is beyond me - but as far as I can see, libncursesw is the only thing that has changed ...
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu ncurses Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Bernard Moreton for more information if necessary.