[konsole] [Bug 384620] New: Broken ncurses box() rendering with new terminfo for TERM=xterm (no rep?)

Krzysztof Kundzicz bugzilla_noreply at kde.org
Tue Sep 12 12:45:36 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=384620

            Bug ID: 384620
           Summary: Broken ncurses box() rendering with new terminfo for
                    TERM=xterm (no rep?)
           Product: konsole
           Version: 17.08.1
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: NOR
         Component: emulation
          Assignee: konsole-devel at kde.org
          Reporter: athantor+kdebugs at athi.pl
  Target Milestone: ---

Created attachment 107812
  --> https://bugs.kde.org/attachment.cgi?id=107812&action=edit
konsole with TERM=xterm (up), TERM=linux (down) and a xterm window (right)

After ArchLinux ncurses package update to version 20170902, drawing boxes in
konsole using ncurses' 'box()' function is broken for TERM env variable set to
xterm and its variants.

As far as I've found, it seems to be related to a change in terminfo.src:
# 2017-07-29
#       + add "rep" to xterm-new, available since 1997/01/26 -TD
< http://invisible-island.net/ncurses/terminfo.src.html#t20170729 >

Konsole seems to be lacking `rep` command support.

Steps to reproduce:
 0. Ensure you have the latest versions of ncurses and terminfo database.
 1. Copy and paste example ncurses program's source from
http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/windows.html#LETBEWINDOW into a
file
 2. Compile it, eg.:  gcc -lncurses -o boxtest boxtest.c
 3. Run it, eg. ./boxtest
 4. Rendered box (10 columns wide) is broken: its first and last row has only 3
columns; see attached screenshot

In konsole-17.08.1 box is rendered broken.
xterm-330 displays the box properly; TERM variable set to 'xterm',
'xterm-256color', 'linux', no difference, rendering always works.
rxvt-unicode-9.22 with TERM=xterm renders the box *broken*.

After changing the `TERM` env variable to, for e.g. 'linux' or 'rxvt', konsole
starts to render the box properly.
My locale: LANG=pl_PL.UTF-8

With my distro's previous version of the terminfo (2017-05-13), konsole
rendered box()-es ok.

Attached a screenshot: konsole with TERM=xterm (up), TERM=linux(down) and a
xterm

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list