- Timestamp:
- Dec 21, 2009, 1:11:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/ajaxterm-rebased/code/ajaxterm.py
r2749 r2753 321 321 def dumplatin1(self): 322 322 return self.dump().translate(self.trl1) 323 def dumphtml(self,color=1 ):323 def dumphtml(self,color=1,force=False): 324 324 h=self.height 325 325 w=self.width … … 344 344 span+='\n' 345 345 r='<?xml version="1.0" encoding="ISO-8859-1"?><pre class="term">%s</pre>'%r 346 if self.last_html==r :346 if self.last_html==r and not force: 347 347 return '<?xml version="1.0"?><idem></idem>' 348 348 else: … … 437 437 except (IOError,OSError): 438 438 self.proc_kill(fd) 439 def dump(self,fd,color=1 ):439 def dump(self,fd,color=1,force=False): 440 440 try: 441 return self.proc[fd]['term'].dumphtml(color )441 return self.proc[fd]['term'].dumphtml(color, force) 442 442 except KeyError: 443 443 return False
Note: See TracChangeset
for help on using the changeset viewer.