projects
/
pygdb.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
extracting a launchDebugger code
[pygdb.git]
/
DbgTerminal.py
diff --git
a/DbgTerminal.py
b/DbgTerminal.py
index 69fa8339c61dc905e744390520dfb5fa5e5bdc77..605c2b79612823a92f4955f935517737b142f856 100644
(file)
--- a/
DbgTerminal.py
+++ b/
DbgTerminal.py
@@
-5,6
+5,7
@@
__author__ = "shuber"
import gtk
import gtk
+import pango
import pty
import string
import time
import pty
import string
import time
@@
-17,6
+18,7
@@
import ClientIOTerminal
class DbgTerminal (vte.Terminal):
class DbgTerminal (vte.Terminal):
+ isactive = True
lastrow = 0
history = []
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())
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()
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 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()
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
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)
def feed_dbg(self, text):
self.feed_child(text)
-
+