diff options
author | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2010-10-31 14:30:37 +0000 |
---|---|---|
committer | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2010-10-31 14:30:37 +0000 |
commit | 69a85b76498a6483a9350738b4ce616dd08f687f (patch) | |
tree | c85f129c6170184684ff394bf66ae7fc13d22fb9 | |
parent | d572f4f5ad264e3922044ba9f89b706f6c629012 (diff) | |
download | pexpect-69a85b76498a6483a9350738b4ce616dd08f687f.tar.gz |
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
-rw-r--r-- | pexpect/ANSI.py | 8 |
1 files 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') |