wattahay / cli-game-scripts

Minimal Python game script. Works foremost in xfce4-terminal and Gnome terminal
2 stars 0 forks source link

Arrow keys do not work as in the original #5

Closed wattahay closed 8 years ago

wattahay commented 8 years ago

the inkey function accepts 1 character input, and the arrow keys are read as a set of multiple characters.

Find a new method for accepting keyboard input that allows the usage of arrow.

There's a huge potential for great regression if a solution to this problem is found.

wattahay commented 8 years ago

It might be worth using 'u', 'i', 'j', and 'l' to resolve this, so that the right hand can be used as with the old game.

wattahay commented 8 years ago

or of course 'o', 'k', 'l', and ';'

wattahay commented 8 years ago

this might require too much crap.

http://stackoverflow.com/questions/22753160/how-do-i-accept-input-from-arrow-keys-or-accept-directional-input

wattahay commented 8 years ago

Moving to ncurses is another option, but once again a lot of crap for little reward.

wattahay commented 8 years ago

replaced the inkey function with curses objects and getch