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

429 error hijacks text cursor #46

Open
xenostar opened this issue Apr 14, 2023 · 3 comments
Open

429 error hijacks text cursor #46

xenostar opened this issue Apr 14, 2023 · 3 comments

Comments

@xenostar
Copy link

I'm using iterm2, oh-my-zsh, and startship prompt.

When initially using this package, I was getting the 429 error. It seems as if the cursor disappears and won't come back after the failed prompt. Here is an example video:

Screen.Recording.2023-04-14.at.12.54.05.PM.mov
@AlaEddineBoughanmmi
Copy link
Contributor

does storing PS1 and then restoring it solves the problem?
could you try this:

ORIGINAL_PS1=$PS1
ai list all log files 
export PS1=$ORIGINAL_PS1

do you have the cursor back?

@Jordhan-Carvalho
Copy link

does storing PS1 and then restoring it solves the problem? could you try this:

ORIGINAL_PS1=$PS1
ai list all log files 
export PS1=$ORIGINAL_PS1

do you have the cursor back?

Had the same issue and the above did not work

@AlaEddineBoughanmmi
Copy link
Contributor

i'm using this command tput cnorm as way to restore the cursor.

and in the code calling it like this:

image

However, I believe there is a better approach to resolving the problem, and I am currently working on implementing a a more graceful error handling solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants