import msvcrt

def any_key_message(message):
    for char in message:
        char = char.encode('utf8')
        msvcrt.putch(char)
    msvcrt.getch()
    msvcrt.putch(b"\n")

any_key_message("Press any key to continue...")
any_key_message("Press any key to exit...")
1
Contributor
0
Replies
1
Views
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.