docs: def regulartype(prompt_template="default"):
      """Echo each character typed. Unlike magictype, this echos the characters the
      user is pressing.
  
      Returns: command_string |  The command to be passed to the shell to run. This is
                              |  typed by the user.
      """
      echo_prompt(prompt_template)
      command_string = ""
      cursor_position = 0
      with raw_mode():
          while True:
              in_char = getchar()
              if in_char in {ESC, CTRLC}:
                  echo(carriage_return=True)
                  raise click.Abort()
              elif in_char == TAB:
                  echo("\r", nl=True)
                  return in_char
              elif in_char == BACKSPACE:
                  if cursor_position > 0:
                      echo("\b \b", nl=False)
                      command_string = command_string[:-1]
                      cursor_position -= 1
              elif in_char in RETURNS:
                  echo("\r", nl=True)
                  return command_string
              elif in_char == CTRLZ and hasattr(signal, "SIGTSTP"):
                  # Background process
                  os.kill(0, signal.SIGTSTP)
                  # When doitlive is back in foreground, clear the terminal
                  # and resume where we left off
                  click.clear()
                  echo_prompt(prompt_template)
              else:
                  echo(in_char, nl=False)
                  command_string += in_char
                  cursor_position += 1