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

> console input state를 지우고 다음 newline까지 input을 무시한 뒤 console input으로 stdin에서 하나의 line을 읽는 동안 yield합니다. 반환되는 string은 string return으로 push되며 끝 newline은 포함하지 않습니다. console window가 없으면 호출은 values 없이 반환됩니다.

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

  ## 별칭

  * `consoleinput`

  ## 반환값

  <ResponseField name={"input"} type={"string"}>
    콘솔에서 읽은 텍스트 줄입니다.
  </ResponseField>

  ## 예제

  Read one submitted line from the current Windows console.

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