21 lines
348 B
Python
21 lines
348 B
Python
#! /usr/bin/python
|
|
|
|
# To change this template, choose Tools | Templates
|
|
# and open the template in the editor.
|
|
|
|
__author__="bjschuma"
|
|
__date__ ="$Dec 19, 2009 11:19:43 PM$"
|
|
|
|
|
|
import curses
|
|
import settings
|
|
|
|
|
|
def addch(input):
|
|
stdscr = settings.get("stdscr")
|
|
c = stdscr.getch()
|
|
|
|
if(c >= 32 and c<= 126):
|
|
input += curses.keyname(c)
|
|
|
|
return input |