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

Method do_devices

postscript.py:362–368  ·  view source on GitHub ↗

Show available I/O devices.

(self, arg)

Source from the content-addressed store, hash-verified

360
361 # ------------------------[ devices ]---------------------------------
362 def do_devices(self, arg):
363 "Show available I/O devices."
364 str_send = '/str 128 string def (*) {print (\\n) print} str /IODevice resourceforall'
365 for dev in self.cmd(str_send).splitlines():
366 output().info(dev)
367 output().raw(self.cmd('(' + dev + ') currentdevparams {exch 128 string '
368 + 'cvs print (: ) print ==} forall') + os.linesep)
369
370 # ------------------------[ uptime ]----------------------------------
371 def do_uptime(self, arg):

Callers

nothing calls this directly

Calls 4

cmdMethod · 0.95
outputClass · 0.90
infoMethod · 0.80
rawMethod · 0.80

Tested by

no test coverage detected