code: def display(method=EraseMethod.ALL_MOVE):
          
          accepted_methods = ('0', '1', '2', '3', '4')
          methodstr = str(method)
          if methodstr not in accepted_methods:
              raise ValueError('Invalid method, expected {}. Got: {!r}'.format(
                  ', '.join(accepted_methods),
                  method,
              ))
          if methodstr == '4':
              methods = (2, 3)
          else:
              methods = (method, )
          return EscapeCode(
              ''.join(str(EscapeCode('{}J'.format(m))) for m in methods)
          )
docs: Clear the screen or part of the screen, and possibly moves the cursor
              to the "home" position (1, 1). See `method` argument below.
  
              Esc[<method>J
  
              Arguments:
                  method: One of these possible values:
                              EraseMethod.END or 0:
                                  Clear from cursor to the end of the screen.
                              EraseMethod.START or 1:
                                  Clear from cursor to the start of the screen.
                              EraseMethod.ALL_MOVE or 2:
                                  Clear all, and move home.
                              EraseMethod.ALL_ERASE or 3:
                                  Clear all, and erase scrollback buffer.
                              EraseMethod.ALL_MOVE_ERASE or 4:
                                  Like doing 2 and 3 in succession.
                                  This is a feature of Colr. It is not standard.
                          Default: EraseMethod.ALL_MOVE (2)