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

            Bug ID: 399615
           Summary: Mishandling \b at the right margin
           Product: konsole
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: konsole-de...@kde.org
          Reporter: apodt...@gmail.com
  Target Milestone: ---

Make sure your window is 80-column wide then

$ printf "%080d\b \n" 0
000000000000000000000000000000000000000000000000000000000000000000000000000000
0

Notice the 79th zero deleted instead of the 80th. According to C99,

\b (backspace) Moves the active position to the previous position on the
current line. If the active position is at the initial position of a line, the
behavior of the display device is unspecified.

The filled line hardly qualifies as "the initial position" so the behavior is
wrong.

The bug also exists in xterm and xfce4-teminal. Gnome terminal behaves
correctly.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to