> ## 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 から 1 つの 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>
