MCPcopy Create free account
hub / github.com/RUB-NDS/PRET / do_hang

Method do_hang

postscript.py:533–538  ·  view source on GitHub ↗

Execute PostScript infinite loop.

(self, arg)

Source from the content-addressed store, hash-verified

531
532 # ------------------------[ hang ]------------------------------------
533 def do_hang(self, arg):
534 "Execute PostScript infinite loop."
535 output().warning("Warning: This command causes an infinite loop rendering the")
536 output().warning("device useless until manual restart. Press CTRL+C to abort.")
537 if output().countdown("Executing PostScript infinite loop in...", 10, self):
538 self.cmd('{} loop', False)
539
540 # ====================================================================
541

Callers

nothing calls this directly

Calls 4

cmdMethod · 0.95
outputClass · 0.90
warningMethod · 0.80
countdownMethod · 0.80

Tested by

no test coverage detected