Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bash] incorrect/early text wrapping #60

Closed
2 tasks done
jeroenev opened this issue Oct 12, 2020 · 4 comments · Fixed by #63
Closed
2 tasks done

[Bash] incorrect/early text wrapping #60

jeroenev opened this issue Oct 12, 2020 · 4 comments · Fixed by #63
Labels
🐛 bug Something isn't working

Comments

@jeroenev
Copy link
Contributor

jeroenev commented Oct 12, 2020

Prerequisites

  • I have read and understand the CONTRIBUTING guide
  • I looked for duplicate issues before submitting this one

Description

When using the terminal, the text seems to wrap weirdly,
Seems to wrap around early, and doesn't continue on a newline, overwriting the PS1 text

Environment

  • Oh my Posh version: 3.14.2
  • Theme: Default / JanDeDobbeleer
  • Operating System: Ubuntu20.04
  • Shell: Bash v5.0.17
  • Terminal: Tilix / Gnome Terminal

Steps to Reproduce

  1. Open Terminal
  2. Start typing

Expected behavior: Text wraps around at the end of the window

Actual behavior: Text wraps around early / overwrites PS1 text

image

@jeroenev
Copy link
Contributor Author

might be bash-specific, found some old bash issues related to text-wrapping:
https://stackoverflow.com/questions/1133031/shell-prompt-line-wrapping-issue
Not sure if they're still relevant/usefull

@JanDeDobbeleer
Copy link
Owner

I need to escape them with \[... \] like zsh does (but differently) if I read this correctly. Will do.

@JanDeDobbeleer JanDeDobbeleer added the 🐛 bug Something isn't working label Oct 12, 2020
@JanDeDobbeleer
Copy link
Owner

image

Fixed

@jeroenev
Copy link
Contributor Author

Works perfectly, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants