Skip to content
\n

After entering a (or any other key):

\n
┏[ hyoryu][ RAM: 28/63GB][ ~]\n┏[ hyoryu][ RAM: 28/63GB][ ~]\n┖[ 01:53:21] ♥ a
\n

The creator of Oh My Posh cannot reproduce this issue, but I have been able to reproduce it on three different computers(I use GitHub to store the same set of configurations). I have no idea why this happens. Could anyone help me?

\n

Details are available at:

\n

JanDeDobbeleer/oh-my-posh#5677

","upvoteCount":2,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

I said this over at the omp repo too. This is what I think is going on, but I could be wrong.

\n

The only time i've seen something like this in nushell is when nushell starts too fast. As I recall, what happens is nushell starts and gets the terminal width, let's say 80x24, in the meantime, your terminal finishes starting and now the terminal width is 100x24, but nushell already knows the size as 80x24, so when you type any character, it realizes it's bigger and redraws the prompt. At least that's my theory. We could introduce some artificial delay in the nushell startup, but I hate to intentionally slow things down.

","upvoteCount":1,"url":"https://github.com/nushell/nushell/discussions/14021#discussioncomment-10867405"}}}
Discussion options

You must be logged in to vote

I said this over at the omp repo too. This is what I think is going on, but I could be wrong.

The only time i've seen something like this in nushell is when nushell starts too fast. As I recall, what happens is nushell starts and gets the terminal width, let's say 80x24, in the meantime, your terminal finishes starting and now the terminal width is 100x24, but nushell already knows the size as 80x24, so when you type any character, it realizes it's bigger and redraws the prompt. At least that's my theory. We could introduce some artificial delay in the nushell startup, but I hate to intentionally slow things down.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@SetsuikiHyoryu
Comment options

@SetsuikiHyoryu
Comment options

Answer selected by SetsuikiHyoryu
Comment options

You must be logged in to vote
1 reply
@SetsuikiHyoryu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants