Changeset 2924
- Timestamp:
- 01/07/08 12:46:56 (1 year ago)
- Files:
-
- pyreadline/trunk/doc/ChangeLog (modified) (1 diff)
- pyreadline/trunk/pyreadline/console/console.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pyreadline/trunk/doc/ChangeLog
r2921 r2924 1 2008-01-07 Jörgen Stenarson <jorgen.stenarson -at- bostream.nu> 2 * Reintroduced code to make pyreadline work with emacs. Not tested. 3 Requested by Frank Wang. 4 1 5 2008-01-04 Jörgen Stenarson <jorgen.stenarson -at- bostream.nu> 2 6 * Chunking calls to WriteConsoleW to ensure not exceeding 64k limit pyreadline/trunk/pyreadline/console/console.py
r2921 r2924 14 14 # primitive debug printing that won't interfere with the screen 15 15 16 import sys 16 import sys,os 17 17 import traceback 18 18 import re … … 146 146 'WriteConsoleW', 147 147 'WriteConsoleOutputCharacterW', 148 'WriteFile', 148 149 ] 149 150 … … 346 347 return n 347 348 348 349 349 def write_plain(self, text, attr=None): 350 350 '''write text at current cursor position.''' … … 357 357 self.WriteConsoleW(self.hout, ensure_unicode(short_chunk), len(short_chunk), byref(junk), None) 358 358 return len(text) 359 360 #This function must be used to ensure functioning with EMACS 361 #Emacs sets the EMACS environment variable 362 if os.environ.has_key("EMACS"): 363 def write_color(self, text, attr=None): 364 junk = c_int(0) 365 self.WriteFile(self.hout, text, len(text), byref(junk),None) 366 return len(text) 367 write_plain = write_color 359 368 360 369 # make this class look like a file object
