[Bug 2067490] Re: byobu prompt
This bug was fixed in the package byobu - 6.11-0ubuntu1.1 --- byobu (6.11-0ubuntu1.1) noble; urgency=medium * d/p/lp-2067490-prompt-runtime-stdout.patch: don't output byobu_prompt_runtime to stderr (LP: #2067490) -- Andreas Hasenack Mon, 22 Jun 2026 15:59:45 -0300 ** Changed in: byobu (Ubuntu Noble) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
This bug was fixed in the package byobu - 6.11-0ubuntu3.1 --- byobu (6.11-0ubuntu3.1) resolute; urgency=medium * d/p/lp-2067490-prompt-runtime-stdout.patch: don't output byobu_prompt_runtime to stderr (LP: #2067490) -- Andreas Hasenack Mon, 22 Jun 2026 15:48:39 -0300 ** Changed in: byobu (Ubuntu Resolute) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
I've been using byobu/noble-proposed for a few days now, and it looks good in noble. I _briefly_ also spun up a 26.04 VM, and tried byobu/resulute-proposed, and that also looked good, though I do mean I was there only briefly. Thanks!! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
# Noble verification Reproducing the bug: byobu: Installed: 6.11-0ubuntu1 Candidate: 6.11-0ubuntu1 Version table: *** 6.11-0ubuntu1 500 500 http://br.archive.ubuntu.com/ubuntu noble/main amd64 Packages 100 /var/lib/dpkg/status Verified prompt corruption: [0.052s] ubuntu@n-bapt-cache policy byobu < Upgrading to byobu from proposed: byobu: Installed: 6.11-0ubuntu1.1 Candidate: 6.11-0ubuntu1.1 Version table: *** 6.11-0ubuntu1.1 100 100 http://br.archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages 100 /var/lib/dpkg/status 6.11-0ubuntu1 500 500 http://br.archive.ubuntu.com/ubuntu noble/main amd64 Packages Cycled through the full shell history, no prompt corruption detected. Noble verification succeeded. ** Tags removed: verification-needed-noble ** Tags added: verification-done-noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
# Resolute verification Reproducing the bug: ubuntu@r-byobu:~$ apt-cache policy byobu byobu: Installed: 6.11-0ubuntu3 Candidate: 6.11-0ubuntu3 Version table: *** 6.11-0ubuntu3 500 500 http://br.archive.ubuntu.com/ubuntu resolute/main amd64 Packages 100 /var/lib/dpkg/status Prompt corruption confirmed: [0.053s] ubuntu@r-byobu:~$ date Sat Aug 15 13:10:04 UTC 2026 [0.038s] ubuntu@r-byobu:~$ echo "Hello world" Hello world [0.026s] ubuntu@r-bbyobu-prompt^C byobu [7.948s] 130 ubuntu@r-byobu:~$ echo oops corruption detected oops corruption detected [0.026s] ubuntu@r-bbyobu-promptcy byobu <-- Updated to version from proposed: byobu: Installed: 6.11-0ubuntu3.1 Candidate: 6.11-0ubuntu3.1 Version table: *** 6.11-0ubuntu3.1 100 100 http://br.archive.ubuntu.com/ubuntu resolute-proposed/main amd64 Packages 100 /var/lib/dpkg/status 6.11-0ubuntu3 500 500 http://br.archive.ubuntu.com/ubuntu resolute/main amd64 Packages Cycled through the whole shell history, no prompt corruption noticed anymore. Resolute verification succeeded. ** Tags removed: verification-needed-resolute ** Tags added: verification-done-resolute -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
Hello Djerk, or anyone else affected, Accepted byobu into resolute-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/byobu/6.11-0ubuntu3.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed- resolute to verification-done-resolute. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-resolute. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Changed in: byobu (Ubuntu Resolute) Status: In Progress => Fix Committed ** Tags added: verification-needed-resolute ** Changed in: byobu (Ubuntu Noble) Status: In Progress => Fix Committed ** Tags added: verification-needed-noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
** Changed in: byobu (Ubuntu Noble) Importance: Undecided => Low ** Changed in: byobu (Ubuntu Resolute) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
** Description changed: [ Impact ] - * An explanation of the effects of the bug on users and justification -for backporting the fix to the stable release. + Byobu on Ubuntu shows a timer before the user prompt, to show how long + the previous command took to run. This is causing prompt corruption when + navigating through command history (up and down arrow) as the cursor + position is wrong. - * In addition, it is helpful, but not required, to include an -explanation of how the upload fixes this bug. [ Test Plan ] - * detailed instructions how to reproduce the bug + * Install byobu if not installed yet - * these should allow someone who is not familiar with the affected -package to reproduce the bug and verify that the updated package -fixes the problem. + sudo apt update; sudo apt install byobu -y - * if other testing is appropriate to perform before landing this -update, this should also be described here. + * Enter a byobu session, and enable the prompt with the timer: + + byobu + byobu-prompt + + * Run some shell commands to fill the history. + + * Navigate through that history with up and down arrow. Notice the + prompt corruption. For example: + + ubuntu@r-byobu:~$ + [1.377s] ubuntu@r-byobu:~$ + [3.235s] ubuntu@r-bapt-cache policy byobu <--- corrupted prompt + + + * Update to byobu from the proposed pocket + + * Exit the current byobu session, and enter a new one + + * Repeat the shell history tests, now the prompt will no longer corrupt. + [ Where problems could occur ] - * Think about what the upload changes in the software. Imagine the -change is wrong or breaks something else: how would this show up? + * Think about what the upload changes in the software. Imagine the + change is wrong or breaks something else: how would this show up? - * It is assumed that any SRU candidate patch is well-tested before -upload and has a low overall risk of regression, but it's important -to make the effort to think about what ''could'' happen in the event -of a regression. + * It is assumed that any SRU candidate patch is well-tested before + upload and has a low overall risk of regression, but it's important + to make the effort to think about what ''could'' happen in the event + of a regression. - * This must never be "None" or "Low", or entirely an argument as to why -your upload is low risk. + * This must never be "None" or "Low", or entirely an argument as to why + your upload is low risk. - * This both shows the SRU team that the risks have been considered, -and provides guidance to testers in regression-testing the SRU. + * This both shows the SRU team that the risks have been considered, + and provides guidance to testers in regression-testing the SRU. [ Other Info ] - * Anything else you think is useful to include + * Anything else you think is useful to include - * Make sure to explain any deviation from the norm, to save the SRU -reviewer from having to infer your reasoning, possibly incorrectly. -This should also help reduce review iterations, particularly when the -reason for the deviation is not obvious. + * Make sure to explain any deviation from the norm, to save the SRU + reviewer from having to infer your reasoning, possibly incorrectly. + This should also help reduce review iterations, particularly when the + reason for the deviation is not obvious. - * Anticipate questions from users, SRU, +1 maintenance, security teams -and the Technical Board and address these questions in advance - + * Anticipate questions from users, SRU, +1 maintenance, security teams + and the Technical Board and address these questions in advance [ Original Description ] Byobu on Ubuntu 24.04 shows a timer before the user prompt. The timer appears to display how long the previous command took. This is causing screen corruption when navigating previous commands as the cursor position is wrong and I've not found a way to disable the times from showing. Experienced both on a dist-upgrade from 22.04 via 23.10, and ona clean install of 24.04. Both server distros. Example prompts: [0.015s] dgeurts@nfc00:~$ lsb_release -rd No LSB modules are available. Description:Ubuntu 24.04 LTS Release:24.04 [0.010s] dgeurts@nfc00:~$ apt-cache policy byobu byobu: Installed: 6.11-0ubuntu1 Candidate: 6.11-0ubuntu1 Version table: *** 6.11-0ubuntu1 500 500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages 100 /var/lib/dpkg/status Expected prompt: dgeurts@nfc00:~$ ** Description changed: [ Impact ] Byobu on Ubuntu shows a timer before the user prompt, to show how long the previous command took to run. This is causing prompt corruption when navigating through command history (up and down arrow) as the cursor position is wrong. - [ Test Plan ]
[Bug 2067490] Re: byobu prompt
** Description changed: + [ Impact ] + + * An explanation of the effects of the bug on users and justification +for backporting the fix to the stable release. + + * In addition, it is helpful, but not required, to include an +explanation of how the upload fixes this bug. + + [ Test Plan ] + + * detailed instructions how to reproduce the bug + + * these should allow someone who is not familiar with the affected +package to reproduce the bug and verify that the updated package +fixes the problem. + + * if other testing is appropriate to perform before landing this +update, this should also be described here. + + [ Where problems could occur ] + + * Think about what the upload changes in the software. Imagine the +change is wrong or breaks something else: how would this show up? + + * It is assumed that any SRU candidate patch is well-tested before +upload and has a low overall risk of regression, but it's important +to make the effort to think about what ''could'' happen in the event +of a regression. + + * This must never be "None" or "Low", or entirely an argument as to why +your upload is low risk. + + * This both shows the SRU team that the risks have been considered, +and provides guidance to testers in regression-testing the SRU. + + [ Other Info ] + + * Anything else you think is useful to include + + * Make sure to explain any deviation from the norm, to save the SRU +reviewer from having to infer your reasoning, possibly incorrectly. +This should also help reduce review iterations, particularly when the +reason for the deviation is not obvious. + + * Anticipate questions from users, SRU, +1 maintenance, security teams +and the Technical Board and address these questions in advance + + + [ Original Description ] + Byobu on Ubuntu 24.04 shows a timer before the user prompt. The timer appears to display how long the previous command took. This is causing screen corruption when navigating previous commands as the cursor position is wrong and I've not found a way to disable the times from showing. Experienced both on a dist-upgrade from 22.04 via 23.10, and ona clean install of 24.04. Both server distros. Example prompts: [0.015s] dgeurts@nfc00:~$ lsb_release -rd No LSB modules are available. Description:Ubuntu 24.04 LTS Release:24.04 [0.010s] dgeurts@nfc00:~$ apt-cache policy byobu byobu: - Installed: 6.11-0ubuntu1 - Candidate: 6.11-0ubuntu1 - Version table: - *** 6.11-0ubuntu1 500 - 500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages - 100 /var/lib/dpkg/status + Installed: 6.11-0ubuntu1 + Candidate: 6.11-0ubuntu1 + Version table: + *** 6.11-0ubuntu1 500 + 500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages + 100 /var/lib/dpkg/status Expected prompt: dgeurts@nfc00:~$ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
PPA LGTM in noble, thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
LGTM Andreas, thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
I applied the upstream fix to noble and resolute packages in this ppa: https://launchpad.net/~ahasenack/+archive/ubuntu/byobu-fix-prompt Would you mind giving either a quick whirl? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
** Merge proposal linked: https://code.launchpad.net/~ahasenack/ubuntu/+source/byobu/+git/byobu/+merge/507073 ** Merge proposal linked: https://code.launchpad.net/~ahasenack/ubuntu/+source/byobu/+git/byobu/+merge/507074 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
** Also affects: byobu (Ubuntu Noble) Importance: Undecided Status: New ** Changed in: byobu (Ubuntu Resolute) Status: New => In Progress ** Changed in: byobu (Ubuntu Noble) Status: New => In Progress ** Changed in: byobu (Ubuntu Noble) Assignee: (unassigned) => Andreas Hasenack (ahasenack) ** Changed in: byobu (Ubuntu Resolute) Assignee: (unassigned) => Andreas Hasenack (ahasenack) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
Will older LTS releases get this fix, or only 26.04? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
** Also affects: byobu (Ubuntu Resolute) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
** Tags removed: dcr-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
I just ran into this myself. Looks like it's finally been merged upstream and released in v6.14 on Feb 14. Hopefully that version gets picked up by Ubuntu soon. Looks like the less "caveman" fix is to apply this half-line patch https://github.com/dustinkirkland/byobu/commit/8d86768da3980fee974a17c85fa401b2d01837b3.diff to your `/usr/share/byobu/profiles/bashrc`. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
Here is my "caveman" workaround.
At the end of ~/.bashrc, paste the following, and then exit all byobu
sessions and relogin:
```
#FIX THE BYOBU PROMPT
export
PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;202m\]\$(byobu_prompt_status)\[\e[00m\]\[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;172m\]\h\[\e[00m\]:\[\e[38;5;5m\]\w\[\e[00m\]\$(byobu_prompt_symbol)
"
```
This will remove the timestamp portion of the prompt without changing
the good parts of the byobu prompt as well.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2067490
Title:
byobu prompt
To manage notifications about this bug go to:
https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
The upstream PR is still open. I have pinged there again for awareness, and then we wait. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
I re-pinged upstream (PR#68) about their opinion, as we'd like to avoid diverging from the upstream codebase here. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
** Tags added: dcr-incoming ** Changed in: byobu (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
A proposed fix is available here: https://github.com/dustinkirkland/byobu/pull/68 A workaround was proposed by Dustin (upstream) in a previous comment. > You can byobu-disable-prompt if you want to turn it off. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
Is there any workaround in the meantime? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
Is there any workaround in the meantime? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
I'm fine with Anas solution, it works! Thanks a lot, I'm happy! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
Thanks for the update, Stefan. This bug is in our backlog and someone from our team will get to it as soon as they can. Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
Hello @Miriam España Acebal, someone (not me) added a pullrequest 5 days ago. Would you please fix it now? Thanks in advance! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
I have checked that no pull request has been sent that could fix this bug to https://github.com/dustinkirkland/byobu/pulls Ana S, would you mind proposing your solution there? Thanks in advance. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
** Also affects: byobu Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
Thanks for the reply and for providing more details about the bug. I believe this should be acted upon by upstream first before we can consider backporting it to Ubuntu. Let's see what they have to say. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
I think I found the source of this: byobu_prompt_runtime defined in /usr/share/byobu/profiles/bashrc outputs to stderr instead of stdout. It could be fixed by modifying the function, or just adding 2>&1 to all calls: # cp /usr/share/byobu/profiles/bashrc /usr/share/byobu/profiles/bashrc.bak # sed -i 's/(byobu_prompt_runtime)/(byobu_prompt_runtime 2>\&1)/g' /usr/share/byobu/profiles/bashrc Versions: bash 5.2.21-2ubuntu4, byobu 6.11-0ubuntu1, tmux 3.4-1ubuntu0.1 Reproduction: - spin up new ubuntu:24.04 instance in e.g. incus - make a non-root user, su to it, launch byobu - get the prompt: [0.002s] test@emerging-dassie:~$ - enter 32 characters (depends on length of hostname): [2.201s] 130 test@emerging-dassie:~$ 12345678901234567890123456789012 - press ctrl-a/home and the cursor will be at the first "s", i.e. 8 characters have been cut off (the same length as "[2.201s]". Longer times result in more characters cut off) - run a command, say ls, then press up until the long line has been reached [38.581s] 130 test@emerging-dassie:~$ ls [0.003s] test@emerging-dassie:~$ 12345678901234567890123456789012 - press down (don't press enter before) [0.003s] test@emerging-dals - the problem above is even worse with a short hostname [0.003s] 1 test@test:~$ which ubuntu_prompt_status [0.003s] 1 test@ - the problem is very evident when pasting commands, less so when typing them. Why does this happen? Inspecting PS1, we see calls to $(byobu_prompt_status), $(byobu_prompt_runtime), $(byobu_prompt_symbol). [2.533s] 130 test@test:~$ byobu_prompt_status | wc -c 6 [0.004s] test@test:~$ byobu_prompt_symbol | wc -c 1 [0.004s] test@test:~$ byobu_prompt_runtime | wc -c [0.001s]0 byobu_prompt_runtime is outputting to stderr instead of to stdout. [0.004s] test@test:~$ byobu_prompt_runtime 2>&1 | wc -c 8 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
This might fall outside the ownership of this specific bug, but I can reproduce using putty on windows and SSHing into a fresh install of Ubuntu 24.04 with byobu-enable with the following steps: 1. Connect via putty 2. Run any command (e.g. `ls -la ~`) such that the "previous command execution time" is present 3. Press up-arrow to bring the previous command 4. [this isn't consistent every time, but happens very regularly] pressing keys like Home (to go to start of command) or down (to go to a different command) seems to trigger the "corruption" as mentioned in other comments Sorry I don't have more concrete STR. Updating bashrc as mentioned in comment#7 does seem to fix the problem (by removing the timer). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
** Changed in: byobu (Ubuntu) Status: Incomplete => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
Just found this, I thought I had sent it, but hadn't.
I trashed the system I did a dist-upgrade on, but testing on the clean
install I can reproduce the 'corruption' I mentioned:
[10.339s] user@ubuntu24:~$ sudo vi /usr/share/byobu/profiles/bashrc
user@ubuntu24:~$ sudo vi /usr/share/byobu/profiles/bashrc
[4.131s] user@ubunsudo vi /usr/share/byobu/profiles/bashrc
[2.645s] user@ubun
To reproduce: by executing a command, vim in the example above, and when
closing it the prompt looks good. Up arrow shows the previous command,
but then down arrow removes part of the prompt. Hitting up arrow again
then puts the previous command at the depth where it would have been
without the timer.
As for the runtime being part of the prompt, I'll have a look to see if
overwriting PS1 works.
The default in /usr/share/byobu/profiles/bashrc:
export
PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;202m\]\$(byobu_prompt_status)\[\e[00m\]\$(byobu_prompt_runtime)
\[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;172m\]\h\[\e[00m\]:\[\e[38;5;5m\]\w\[\e[00m\]\$(byobu_prompt_symbol)
"
This removes the timer when put in ~/.bashrc:
export
PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;202m\]\$(byobu_prompt_status)\[\e[00m\]\[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;172m\]\h\[\e[00m\]:\[\e[38;5;5m\]\w\[\e[00m\]\$(byobu_prompt_symbol)
"
I like the byobu prompt, but editing a user's .bashrc file isn't
practical when users can enable and disable byobu which would change the
order of the last lines in this file. Would updates to byobu undo edits
to the system byobu bashrc profile, and would apt complain about changed
files?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2067490
Title:
byobu prompt
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/2067490/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
I like the byobu prompt, just not the timer. Thank you for looking into the corruption. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
You can byobu-disable-prompt if you want to turn it off. I think I've reproduced this, when the command line wraps the screen, there's some corruption. I don't have a fix yet. Patches accepted, if someone finds the right fix... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
I'm also curious about the screen corruption and I'd like to reproduce it in-case it is a real bug others are experiencing. Djerk, how are you connecting to your system you are running byobu on? Is this a local system or are you connecting to a remote system and then invoking byobu? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
Hi Djerk, The default byobu prompt was updated since Ubuntu Noble to show the time elapsed from the previous command. You can see this code in /usr/share/byobu/profiles/bashrc You can see this profile is being applied at the end of your ~/.bashrc file. At the moment I don't think there's a way to explicitly disable just the timer, but feel free to create your own profile and/or modify your ~/.bashrc to remove the timer. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
The best way to describe it, is that it's like when you cat a file without propper formatting and the command output pushes the prompt to the right. This causes a mismatch between where the cursor is shown and where it actually is. Either way, the issue is more with why it's showing an elapsed time for the last command, which is a change from how the byobu prompts has worked to date. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2067490] Re: byobu prompt
Hello and thanks for this bug report. Can you please elaborate on what you mean with "navigating previous commands"? I briefly tested byobu 6.11-0ubuntu1 and the cursor is always at the end of the prompt, where I expect it to be. With "arrow up" I can get the previous commands and nothing looks misaligned, but again I am not sure this is what you mean. ** Changed in: byobu (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067490 Title: byobu prompt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/2067490/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
