Skip to content
Sign upLog in
← Back to Community

Input without the enter key

Profile icon
chilipepper09

So im building a text based game but i don't like that enter needs to be pressed in order to enter the input, i was wondering if there was a way do input without the enter key

Voters
Profile icon
Lucaszzstu
Profile icon
DeathBySpoon
Profile icon
chilipepper09
Comments
hotnewtop
Profile icon
AlexanderTarn

from readchar import readchar
(variable name) = readchar()
if((variable name) == (whatever):
code

does that help?