So, the project I've been working on is a little cli tool to play a game like wordle right in the terminal.
I am using a Text input from the inquire crate to accept input from the user.
I'm also using the console crate to print out the remaining letters of the "keyboard" and highlight them to show if they have been guessed already and if they are in the word, correct position, etc.
I am also using some other crates for the generation of secret word and validation of guesses, but I don't think they are relevant to the console output wonkiness...
So, everything technically works right now, but the weird part is that when I start typing my whole prompt shifts up one line in my terminal. It's super weird and I'm not sure if the bug is caused by inquire, or console, or the two of them together, or the fact that I'm using all these things in the "help message" of my text input, or if it's just a unix thing...
It's hard to explain so I made this gif to try what I mean:
This project lives in the "wip_wordle_game" directory within this repo. Feel free to take a look at the code and / or run it yourself with
I'm looking for any advice on what I should try and / or insight into why this wonkiness is happening.
In the inquire docs it says, "You can choose your terminal backend between
I can try to reimplement the coloring using crossterm or termion, but I am very curious what's going on here with the console crate...