From 69a85b76498a6483a9350738b4ce616dd08f687f Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 31 Oct 2010 14:30:37 +0000 Subject: Added most of the patches from Wil Mahan (SourceForge:wmahan). git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@525 656d521f-e311-0410-88e0-e7920216d269 --- pexpect/ANSI.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pexpect/ANSI.py b/pexpect/ANSI.py index b3cb8a3..66bad7b 100644 --- a/pexpect/ANSI.py +++ b/pexpect/ANSI.py @@ -282,11 +282,11 @@ class ANSI (term): def write_ch (self, ch): - """This puts a character at the current cursor position. cursor - position if moved forward with wrap-around, but no scrolling is done if + """This puts a character at the current cursor position. The cursor + position is moved forward with wrap-around, but no scrolling is done if the cursor hits the lower-right corner of the screen. """ - #\r and \n both produce a call to crlf(). + #\r and \n both produce a call to cr() and lf(), respectively. ch = ch[0] if ch == '\r': @@ -297,9 +297,7 @@ class ANSI (term): return if ch == chr(screen.BS): self.cursor_back() - self.put_abs(self.cur_r, self.cur_c, ' ') return - if ch not in string.printable: fout = open ('log', 'a') fout.write ('Nonprint: ' + str(ord(ch)) + '\n') -- cgit v1.2.1