> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# rconsoleinput

> Faz yield enquanto lê uma line de stdin com console input depois de limpar o estado de console input e ignorar input até o próximo newline. O string retornado é enviado com string return e não inclui o newline final. Se nenhuma console window existir, a chamada retorna sem values.

<div className="real-function-page">
  ```lua theme={null}
  rconsoleinput(): string
  ```

  ## Aliases

  * `consoleinput`

  ## Retornos

  <ResponseField name={"input"} type={"string"}>
    Linha de texto lida no console.
  </ResponseField>

  ## Exemplo

  Read one submitted line from the current Windows console.

  ```lua theme={null}
  rconsolecreate()
  rconsoleprint("Name: ")
  local name = rconsoleinput()
  rconsoleprint("Hello, ", name, "
  ")
  ```
</div>
