Back to index

python3.2  3.2.2
Functions | Variables
curses.has_key Namespace Reference

Functions

def has_key

Variables

dictionary _capability_names
list L = []
tuple system = _curses.has_key(key)
tuple python = has_key(key)

Function Documentation

def curses.has_key.has_key (   ch)

Definition at line 162 of file has_key.py.

00162 
00163 def has_key(ch):
00164     if isinstance(ch, str):
00165         ch = ord(ch)
00166 
00167     # Figure out the correct capability name for the keycode.
00168     capability_name = _capability_names.get(ch)
00169     if capability_name is None:
00170         return False
00171 
00172     #Check the current terminal description for that capability;
00173     #if present, return true, else return false.
00174     if _curses.tigetstr( capability_name ):
00175         return True
00176     else:
00177         return False

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 10 of file has_key.py.

list curses.has_key.L = []

Definition at line 182 of file has_key.py.

Definition at line 186 of file has_key.py.

tuple curses.has_key.system = _curses.has_key(key)

Definition at line 185 of file has_key.py.