10 Replies
Oh the code format broke
So what i want to do is to move from tables with arrow keys. When the cursor is on a table i want to see this character >. I dont know if this is even possible
it sure is
you'll need to listen for keypresses, specifically the arrow keys, and then keep track of what table "is selected"
I try to find some examples on internet but cant find anything
I know how to do it like without a map only a normal lost but with this its a little difficult to think of a solution
what have you tried?
Moving with arrows over a list. So if your key input was right index would be +1 and you see than > value
And the tableids where printed undereachother
this works
obviously extremely crude and basic, but the general concept works
ReadKey also have a boolean on whether you want to silence the output of the key
Interesting
yep, not relevant for arrows as they dont have any output anyway, but useful for like "press space to select this table" or whatever
if you don't want to use a pre-made package for managing console ui it's a bit of work
you have to disable some flags for example for scrolling and manually capture the input
if i'm not overcomplicating it