| 220 | |
| 221 | # ------------------------[ info <category> ]------------------------- |
| 222 | def do_info(self, arg): |
| 223 | if arg in self.entities: |
| 224 | entity, desc = self.entities[arg] |
| 225 | for location in self.locations: |
| 226 | output().raw(desc + " " + self.locations[location]) |
| 227 | str_send = "*s" + location + "T" # set location type |
| 228 | str_send += c.ESC + "*s0U" # set location unit |
| 229 | str_send += c.ESC + "*s" + entity + "I" # set inquire entity |
| 230 | output().info(self.cmd(str_send)) |
| 231 | else: |
| 232 | self.help_info() |
| 233 | |
| 234 | def help_info(self): |
| 235 | print("Show information: info <category>") |