From 0f08a1fcc4b73a58f21c6c5c3ad7c32fd6f772f0 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sun, 15 Jan 2023 16:39:45 +0100 Subject: [PATCH] Only auto-capitalize if first charater is lower-case Auto-capitalize commands only if the first character is both a command character and a lower-case one. --- printrun/pronsole.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/printrun/pronsole.py b/printrun/pronsole.py index c8c1ef091..7abfd8e0d 100644 --- a/printrun/pronsole.py +++ b/printrun/pronsole.py @@ -394,9 +394,11 @@ def emptyline(self): def default(self, l): if l[0].upper() in self.commandprefixes.upper(): if self.p and self.p.online: + if l[0] != l[0].upper(): + l = l.upper() if not self.p.loud: - self.log("SENDING:" + l.upper()) - self.p.send_now(l.upper()) + self.log("SENDING:" + l) + self.p.send_now(l) else: self.logError(_("Printer is not online.")) return