URL: <https://savannah.gnu.org/bugs/?67277>
Summary: Terminal Output Overwritten in Edge Case Group: The GNU Bourne-Again SHell Submitter: None Submitted: Fri 04 Jul 2025 07:14:33 PM UTC Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Fri 04 Jul 2025 07:14:33 PM UTC By: Anonymous After a program returns output that doesn't end with a newline (and is long enough), pressing the up or down keys more than once to view history overwrites past terminal output (in particular, the prompt.) *To Reproduce* 1. Open a Terminal (first noticed in kitty, but it seems to happen in tty as well) 2. Run a program that produces a long output (for me, at least 12 characters) with no newline at the end. Such as: echo -n "hihdkjfdfkudkfhldfuldkfdafdjkfhjkadfhjkfhklfhda" 3. Press up (nothing will happen) 4. Press down or up again. Part of the last line will be overwritten. `uname -a` gives `Linux archlinux 6.15.4-arch2-1 x86_64 GNU/Linux` `bash -version` gives `GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu)` Originally reported here (https://github.com/kovidgoyal/kitty/issues/8779), before I tried the process in tty. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?67277> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature