X-Git-Url: https://git.sthu.org/?p=pygdb.git;a=blobdiff_plain;f=DbgTerminal.py;h=0f0eb07f77a4ded1a1917f0e37965c1b6656234c;hp=6b09426a0698313742ed85402b441cdf4b715c67;hb=c90feb4c530cdb4e5abbfac044fea74d88975775;hpb=505db8dd1b2862d460c7442e98c0c14ac776a4db diff --git a/DbgTerminal.py b/DbgTerminal.py index 6b09426..0f0eb07 100644 --- a/DbgTerminal.py +++ b/DbgTerminal.py @@ -72,10 +72,15 @@ class DbgTerminal (vte.Terminal): #Get the lines and remove empty lines lines = string.split(text, "\n") + #Remove the incomplete line + len = self.getHistoryLen() self.history[-1] += lines[0] self.history += lines[1:] + for l in self.history[len:]: + pass + def waitForNewline(self): l = self.getHistoryLen()