# Path: tinygame/character_display.py
# ESCAPE = chr(27)
# 
# CSI = ESCAPE + "[" # control sequences are started by writing a special sequence of characters to the terminal known as a Control Sequebce Introducer (CSI)


import termios	# module get and set terminal attributes
import fcntl	# module to manipulate a file descriptor (ie the standard input file descriptor)
import sys, os	# opersting system wrapper module
import select	# a module exposing the lowleve select() call which allows a program to monitor multiple file  descriptors,  waiting  until  one or more of the file descriptors become "ready" for some class of I/O operation (e.g., input possible).
from tinygame.character_display import ESCAPE, CSI # we read ANSI escape sequences for special keys similar to printing them for display. See character_display.py
"""
keyboard
A submodule inside tinygame that provides more game like keyboard input
This code is based largley on the post at http://effbot.org/pyfaq/how-do-i-get-a-single-keypress-at-a-time.htm
"""
# to get game keyboard control, first we load some low level operating system modules/libraries for terminal control 



# Path: tinygame/character_display.py
# ESCAPE = chr(27)
# 
# CSI = ESCAPE + "[" # control sequences are started by writing a special sequence of characters to the terminal known as a Control Sequebce Introducer (CSI)


# Path: tinygame/keyboard.py
import termios	# module get and set terminal attributes
import fcntl	# module to manipulate a file descriptor (ie the standard input file descriptor)
import sys, os	# opersting system wrapper module
import select	# a module exposing the lowleve select() call which allows a program to monitor multiple file  descriptors,  waiting  until  one or more of the file descriptors become "ready" for some class of I/O operation (e.g., input possible).
from tinygame.character_display import ESCAPE, CSI # we read ANSI escape sequences for special keys similar to printing them for display. See character_display.py

"""
keyboard
A submodule inside tinygame that provides more game like keyboard input
This code is based largley on the post at http://effbot.org/pyfaq/how-do-i-get-a-single-keypress-at-a-time.htm
"""
# to get game keyboard control, first we load some low level operating system modules/libraries for terminal control 



KEY_ESCAPE = ESCAPE