C# simultanous console input and output?

后端 未结 7 505
我寻月下人不归
我寻月下人不归 2021-01-02 16:36

I am writing a server app and I want it to be console based. I need the user to be able to input different commands, but at the same time there is a possibility that somethi

7条回答
  •  自闭症患者
    2021-01-02 17:34

    Have you tried calling OpenStandardInput, reading any input and resetting it's position, then writing to the output stream. Afterwards, you can call OpenStandardInput again and fill the data back into the stream.

提交回复
热议问题