MCPcopy
hub / github.com/RUB-NDS/PRET / do_display

Method do_display

pjl.py:469–475  ·  view source on GitHub ↗

Set printer's display message: display

(self, arg)

Source from the content-addressed store, hash-verified

467
468 # ------------------------[ display <message> ]-----------------------
469 def do_display(self, arg):
470 "Set printer's display message: display <message>"
471 if not arg:
472 arg = eval(input("Message: "))
473 arg = arg.strip('"') # remove quotes
474 self.chitchat("Setting printer's display message to \"" + arg + '"&#x27;)
475 self.cmd('@PJL RDYMSG DISPLAY="' + arg + '"', False)
476
477 # ------------------------[ offline <message> ]-----------------------
478 def do_offline(self, arg):

Callers

nothing calls this directly

Calls 2

cmdMethod · 0.95
chitchatMethod · 0.45

Tested by

no test coverage detected