Ignore:
Timestamp:
Dec 21, 2009, 1:11:35 AM (14 years ago)
Author:
broder
Message:

Allow reconnecting to the same terminal session

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/ajaxterm-rebased/code/ajaxterm.py

    r2749 r2753  
    321321        def dumplatin1(self):
    322322                return self.dump().translate(self.trl1)
    323         def dumphtml(self,color=1):
     323        def dumphtml(self,color=1,force=False):
    324324                h=self.height
    325325                w=self.width
     
    344344                                span+='\n'
    345345                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:
    347347                        return '<?xml version="1.0"?><idem></idem>'
    348348                else:
     
    437437                except (IOError,OSError):
    438438                        self.proc_kill(fd)
    439         def dump(self,fd,color=1):
     439        def dump(self,fd,color=1,force=False):
    440440                try:
    441                         return self.proc[fd]['term'].dumphtml(color)
     441                        return self.proc[fd]['term'].dumphtml(color, force)
    442442                except KeyError:
    443443                        return False
Note: See TracChangeset for help on using the changeset viewer.