开发者

How to read from terminal stream in java GUI application?

I have a hardware system that will be writing to the terminal stream. I need to be able to monitor that stream for updates (writes) from my java application. How can I do this? I've only ever interacted with the terminal in a pure console application.

I could also write my application in .Net languages, so I'll accept answ开发者_如何学编程ers for .NET as well.


If you launch the GUI program from command line, you get the terminal input stream with System.in.

If you don't, ther's no java way, in my opinion.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜