Module BrlAPIDevice
[hide private]
[frames] | no frames]

Module BrlAPIDevice

source code

This device provides the braille interface to brlapi (brltty)


Authors:
Scott Haeger, Martina Weicht
Organizations: Copyright: License:
Classes [hide private]
  BrlAPIStyle
Overrides the base Braille.BrailleStyle class.
  BrlAPIDevice
Braille output via Brlapi interface.
Functions [hide private]
string
_keyCodeToKeyName(command)
Gets the name of the given key code by using the brlapi's module dictionary to lookup its command value and return its command name.
source code
Variables [hide private]
  __uie__ = dict(kind= 'device')
integer MAX_KEY_CHORD = 1
brlapi only handles a key press event, thus making chords impossible.
  TTY = 7
  log = logging.getLogger('BrlAPIDevice')
Function Details [hide private]

_keyCodeToKeyName(command)

source code 
Gets the name of the given key code by using the brlapi's module dictionary to lookup its command value and return its command name. If the code is not known, an empty string is returned.
Parameters:
  • command (integer) - Hardware keycode command
Returns: string
Name of the key

Note: brlapi delivers commands in the tuple (type, command, argument, flags)


Variables Details [hide private]

MAX_KEY_CHORD

brlapi only handles a key press event, thus making chords impossible. All key events coming back from braille devices are abstacted by brlapi to a single key_cmd.
Type:
integer
Value:
1