Commit 3aabfbe0 authored by Guillaume Seguin's avatar Guillaume Seguin

WIP #575: support raw !!

parent 9e811f8b
......@@ -1221,8 +1221,8 @@ class pronsole(cmd.Cmd):
def recvcb_actions(self, l):
if l.startswith("!!"):
self.do_pause(None)
msg = l.split(" ", 1)[1]
if self.silent is False: self.logError(msg.ljust(15))
msg = l.split(" ", 1)
if len(msg) > 1 and self.silent is False: self.logError(msg[1].ljust(15))
sys.stdout.write(self.promptf())
sys.stdout.flush()
return True
......
......@@ -1676,9 +1676,9 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
if l.startswith("!!"):
if not self.paused:
wx.CallAfter(self.pause)
msg = l.split(" ", 1)[1]
if not self.p.loud:
wx.CallAfter(self.addtexttolog, msg + "\n")
msg = l.split(" ", 1)
if len(msg) > 1 and not self.p.loud:
wx.CallAfter(self.addtexttolog, msg[1] + "\n")
return True
elif l.startswith("//"):
command = l.split(" ", 1)[1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment