delphyne_demos
KeyboardStdIn Class Reference

Detailed Description

A keyboard-interrupt poller. Allows users to read a keyboard
input with a non-locking behavior making use of the select function,
available on most *nix systems.

This class is based on the work done by Frank Deng, available on GitHub
as part of a set of python tools released under the MIT licence:
https://github.com/frank-deng/experimental-works/blob/master/kbhit.py .
Inheritance diagram for KeyboardStdIn:
[legend]

Public Member Functions

def __init__ (self)
 
def get_character (self)
 
def key_hit (self)
 

Public Attributes

 input_stream
 
 file_descriptor
 
 new_terminal
 
 old_terminal
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ get_character()

def get_character (   self)
Reads a character from the keyboard.

Reimplemented from KeyboardHandler.

◆ key_hit()

def key_hit (   self)
Returns True if a keyboard key has been pressed, False otherwise.

Reimplemented from KeyboardHandler.

Member Data Documentation

◆ file_descriptor

file_descriptor

◆ input_stream

input_stream

◆ new_terminal

new_terminal

◆ old_terminal

old_terminal

The documentation for this class was generated from the following file: