pyreadline-refactor: set_text_color, set_prompt_color added, bug fix history search, ansi color patch

This commit is contained in:
jstenar
2006-10-25 20:40:17 +00:00
parent 9a551ad86b
commit 6dc285c0db
7 changed files with 91 additions and 38 deletions
+2 -1
View File
@@ -363,7 +363,8 @@ class BaseMode(object):
def self_insert(self, e): # (a, b, A, 1, !, ...)
'''Insert yourself. '''
if ord(e.char)!=0: #don't insert null character in buffer, can happen with dead keys.
if e.char and ord(e.char)!=0: #don't insert null character in buffer, can happen with dead keys.
self.insert_text(e.char)