Summary: | Using ANSI codes to set the title has a delay of one title | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | sergio.costas <sergio.costas> |
Component: | emulation | Assignee: | Konsole Developer <konsole-devel> |
Status: | REPORTED --- | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
sergio.costas@canonical.com
2023-06-22 18:58:54 UTC
Running this script also shows the bug: #!/bin/sh echo -n "\033]2;New terminal title1\007" sleep 2 echo -n "\033]2;New terminal title2\007" sleep 2 echo -n "\033]2;New terminal title3\007" sleep 2 When launching it, the title changes to "New terminal title1", and after six seconds, it changes to "New terminal title3" when it ends and returns to the command line. The "New terminal title2" title is never shown. This python3 program also reproduces the problem: #!/usr/bin/env python3 import time print("\033]2;Window title 1\007", flush=True, end="") time.sleep(2) print("\033]2;Window title 2\007", flush=True, end="") time.sleep(2) print("\033]2;Window title 3\007", flush=True, end="") time.sleep(2) |