docs: def get(self, name):
          """Get the escape code associated to name.
          `name` can be either a varialble_name, a capname or a tcap code
          See man terminfo(5) to see which names are available.
          
          If the name is not supported, None is returned.
          If the name isn't present in the database an exception is raised.
          """
          # `name` is most likely a capname, so we try that first
          for i in (self._by_capname, self._by_var, self._by_tcap_code):
              if i.get(name):
                  return i.get(name)
          else:
              raise TerminfoError("'%s' is not a valid terminfo entry" % name)