[konsole] [Bug 464384] New: Up / down history damaged if last command output did not end in newline

donquixote bugzilla_noreply at kde.org
Mon Jan 16 17:12:39 GMT 2023


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

            Bug ID: 464384
           Summary: Up / down history damaged if last command output did
                    not end in newline
    Classification: Applications
           Product: konsole
           Version: 21.12.3
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: history
          Assignee: konsole-devel at kde.org
          Reporter: py7smpbu at anonaddy.me
  Target Milestone: ---

SUMMARY

I have observed this behavior for a long time, I think in different terminals.
Atm I am using KDE and Konsole, so I report it here first.


STEPS TO REPRODUCE

Open a terminal.
Run `echo -n hello`.
Use "Up" key to get the previous command.
Use "Down" arrow key to get back to the empty prompt.
Use "Up" again.



EXPECTED RESULT

After running `echo -n hello`:
```
~ $ echo -n hello
hello~ $ 
```

After "Up" arrow key:
```
~ $ echo -n hello
hello~ $ echo -n hello
```

After "Down" arrow key:
```
~ $ echo -n hello
hello~ $
```

After second "Up" arrow key:
```
~ $ echo -n hello
hello~ $ echo -n hello
```


OBSERVED RESULT

(first two steps as in "Expected")

After "Down" arrow key:
```
~ $ echo -n hello
hell
```

After second "Up" arrow key:
```
~ $ echo -n hello
hellecho -n hello
```


NOTES

The behavior gets worse if the last command output was multiple lines long, or
the command itself is multiple lines long.




SOFTWARE/OS VERSIONS

Operating System: Ubuntu 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-56-generic (64-bit)
Graphics Platform: X11

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


More information about the konsole-devel mailing list