From 98bdb2b108560a91f132c3c3fab6036ff4a6bb13 Mon Sep 17 00:00:00 2001 From: Kliment Yanev Date: Sun, 19 May 2013 13:32:58 +0200 Subject: [PATCH] Enable manual commands of any format to be passed through if prefixed by @ --- pronsole.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pronsole.py b/pronsole.py index 96ca97c..d5f2252 100755 --- a/pronsole.py +++ b/pronsole.py @@ -853,6 +853,14 @@ class pronsole(cmd.Cmd): else: self.log("printer is not online.") return + elif(l[0] == "@"): + if(self.p and self.p.online): + if(not self.p.loud): + self.log("SENDING:"+l[1:]) + self.p.send_now(l[1:]) + else: + self.log("printer is not online.") + return else: cmd.Cmd.default(self, l)