> ## 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

> Waits for one line of input from the current Windows console and returns it without the ending newline. If no console window exists, the call returns no values.

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

  ## Aliases

  * `consoleinput`

  ## Returns

  <ResponseField name={"input"} type={"string"}>
    Line of text read from stdin, without the terminating newline.
  </ResponseField>

  ## Example

  Read one submitted line from the current Windows console.

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