amorriscode / terminal-hero

Bringing musical skills and fast fingers to a terminal near you 🤘

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hook up button animation to keyboard events

hyshka opened this issue · comments

  • colour each button parenthesis
  • when each button is pressed, make it bold
  • need to be able to hold keys down, but reset them when they're not pressed

Keymap

  • A, S, D, F, G for fret keys
  • Space bar to pluck a string
  • Q/X to exit
  • H for help

Tracking Key Up events may prove challenging (peterbrittain/asciimatics#205) but perhaps there's a way we could hack around this for now. They say that the current keyboard events are only reported when a key is pressed or held down...so perhaps we could implement something which just automatically resets the key state unless it is held down.

If we do need something more advance it may be worth checking out other packages. Ex.: