Bug 415463 - konsole stops updating after setting a long title
Summary: konsole stops updating after setting a long title
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-22 20:35 UTC by Ivan Kozik
Modified: 2020-01-05 15:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 19.12.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Kozik 2019-12-22 20:35:01 UTC
SUMMARY

On konsole master, this stops visually updating the terminal into which it is entered:

echo -e '\e]0;very long string very long string very long string very long string very long string very long string very long string very long string very long string very long string very long string very long string very long string very long string very long string very long string very long string very long string very long string\a'

You may need to make the string longer if you have a very wide monitor.

Note that konsole still processes input (you can `exit<Enter>`).

I encountered this bug while I was using zsh with:

# preexec is run after you hit Enter, but before the command is run
preexec() {
	# Set the terminal title to 'hostname# the command being run'
	#
	# See http://www.zsh.org/mla/users/2004/msg00948.html
	# "Re: question about quoting % in preexec" to understand
	# the escaping strategy here.
	print -Pn '\e]0;%m# '
	print -rn -- "$1"
	print -Pn '\a'
}

konsole 19.08.3 works fine, so this regressed somewhere after that and before 4444f288940184c479f5d9aad17b718f702a3ce9. I tested on NixOS master, x86_64.




STEPS TO REPRODUCE
1. Build and run konsole master
2. Run the echo -e command above
3. Observe apparently stuck console, no more visual updates

I tested by applying https://gist.github.com/ivan/ec0fabe224e32c99a25f65eaabf65d72 onto nixpkgs master

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: NixOS master
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.64.0
Qt Version: Qt 5.12.6 (built against 5.12.6)

ADDITIONAL INFORMATION
Comment 1 Mariusz Glebocki 2020-01-05 15:47:05 UTC
Git commit 90b4f33965b9be2188af2e7bc223b88744a5c992 by Mariusz Glebocki.
Committed on 04/01/2020 at 17:23.
Pushed by hindenburg into branch 'master'.

Fix token buffer indexing
Related: bug 415249

M  +2    -1    src/Vt102Emulation.cpp

https://invent.kde.org/kde/konsole/commit/90b4f33965b9be2188af2e7bc223b88744a5c992
Comment 2 Mariusz Glebocki 2020-01-05 15:47:08 UTC
Git commit 90b4f33965b9be2188af2e7bc223b88744a5c992 by Mariusz Glebocki.
Committed on 04/01/2020 at 17:23.
Pushed by scmsync into branch 'master'.

Fix token buffer indexing
Related: bug 415249

M  +2    -1    src/Vt102Emulation.cpp

https://commits.kde.org/konsole/90b4f33965b9be2188af2e7bc223b88744a5c992
Comment 3 Kurt Hindenburg 2020-01-05 15:51:01 UTC
Git commit 23ddfcc4fcd3cce1b52a68f44b8a44f121d11919 by Kurt Hindenburg, on behalf of Mariusz Glebocki.
Committed on 05/01/2020 at 15:50.
Pushed by hindenburg into branch 'release/19.12'.

Fix token buffer indexing
Related: bug 415249

FIXED-IN: 19.12.1
(cherry picked from commit 90b4f33965b9be2188af2e7bc223b88744a5c992)

M  +2    -1    src/Vt102Emulation.cpp

https://invent.kde.org/kde/konsole/commit/23ddfcc4fcd3cce1b52a68f44b8a44f121d11919
Comment 4 Kurt Hindenburg 2020-01-05 15:51:05 UTC
Git commit 23ddfcc4fcd3cce1b52a68f44b8a44f121d11919 by Kurt Hindenburg, on behalf of Mariusz Glebocki.
Committed on 05/01/2020 at 15:50.
Pushed by scmsync into branch 'release/19.12'.

Fix token buffer indexing
Related: bug 415249

FIXED-IN: 19.12.1
(cherry picked from commit 90b4f33965b9be2188af2e7bc223b88744a5c992)

M  +2    -1    src/Vt102Emulation.cpp

https://commits.kde.org/konsole/23ddfcc4fcd3cce1b52a68f44b8a44f121d11919