code: def _process_keystroke_commands(self, inp):
          
          if inp in (u'1', u'2'):
              # chose 1 or 2-character wide
              if int(inp) != self.screen.wide:
                  self.screen.wide = int(inp)
                  self.on_resize(None, None)
          elif inp in (u'_', u'-'):
              # adjust name length -2
              nlen = max(1, self.screen.style.name_len - 2)
              if nlen != self.screen.style.name_len:
                  self.screen.style.name_len = nlen
                  self.on_resize(None, None)
          elif inp in (u'+', u'='):
              # adjust name length +2
              nlen = min(self.term.width - 8, self.screen.style.name_len + 2)
              if nlen != self.screen.style.name_len:
                  self.screen.style.name_len = nlen
                  self.on_resize(None, None)
          elif inp == u'2' and self.screen.wide != 2:
              # change 2 or 1-cell wide view
              self.screen.wide = 2
              self.on_resize(None, None)
docs: Process keystrokes that issue commands (side effects).