X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=DbgTerminal.py;h=605c2b79612823a92f4955f935517737b142f856;hb=3709e9c11931ba2a6d92a19bb31c6c4f28c6ec9f;hp=69fa8339c61dc905e744390520dfb5fa5e5bdc77;hpb=0024f43ac5834f611179587a6fc25385ee5bf4a5;p=pygdb.git diff --git a/DbgTerminal.py b/DbgTerminal.py index 69fa833..605c2b7 100644 --- a/DbgTerminal.py +++ b/DbgTerminal.py @@ -5,6 +5,7 @@ __author__ = "shuber" import gtk +import pango import pty import string import time @@ -17,6 +18,7 @@ import ClientIOTerminal class DbgTerminal (vte.Terminal): + isactive = True lastrow = 0 history = [] @@ -37,6 +39,10 @@ class DbgTerminal (vte.Terminal): self.connect("cursor-moved", self.contents_changed) self.connect("child-exited", lambda *w: gtk.main_quit()) + fontdesc = pango.FontDescription("monospace 9") + self.set_font(fontdesc) + + def contents_changed(self, term): c,r = term.get_cursor_position() @@ -110,12 +116,24 @@ class DbgTerminal (vte.Terminal): def setQuit(self): raise NotImplementedError() - def setBreakpoint(self, file, lineno): + def setBreakpoint(self, file, lineno, condition=False): + raise NotImplementedError() + + def delBreakpoint(self, breakpoint): raise NotImplementedError() def getExpression(self, expr): raise NotImplementedError() + def waitForActivation(self, his): + raise NotImplementedError() + + def setActive(self, isactive): + self.isactive = isactive + + def isActive(self): + return self.isactive + def getLastLine(self): if len(self.history) == 0: return None @@ -125,7 +143,7 @@ class DbgTerminal (vte.Terminal): def feed_dbg(self, text): self.feed_child(text) - +