Professional Documents
Culture Documents
cmds = []
funcs = []
def unregister_cmd(cmd):
global cmds, funcs
i = cmds.index(cmd)
if i >= 0:
del funcs[i], cmds[i]
def get_buffer_char(index):
global buffer
if index >= 0 and index <= len(buffer): return buffer[index]
return ""