🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #608

Re: Keyboard Input?

#608
From: John McGrath [TeamB]
Date: Thu, 17 Mar 2005 19:41
24 lines
2092 bytes
On 3/17/2005 at 3:16:25 AM, Vander wrote:

> Another question that arises is if somebody tries to mimic an operating
> system prompt in a JConsole, could you possibly redirect system console
> output of other programs (e.g. service commands) into the Java
> application that runs the JConsole?

If you run another program using Runtine.exec(), you have a pipe to the
stdin/stdout/stderr of the process.  I think you should be able to hook
those into a JConsole.

I know that JConsole provides line editing, and I do not know if you can
turn that off, so there may some issues if you need character-by-character
input in the program you run.  It may be that JConsole will only send an
entire line at a time.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <xn0dzv2g596eegu000@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4237faa1@newsgroups.borland.com> <xn0dztrm97vxxax007@newsgroups.borland.com> <42393cb4@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,4ed6eade21edc20e
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: Keyboard Input?
Newsgroups: borland.public.jbuilder.java.swing
References: <4237faa1@newsgroups.borland.com> <xn0dztrm97vxxax007@newsgroups.borland.com> <42393cb4@newsgroups.borland.com>
User-Agent: XanaNews/1.17.2.7
Message-ID: <xn0dzv2g596eegu000@newsgroups.borland.com>
X-Ref: newsgroups.borland.com ~XNS:000002DD
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 151.201.155.159
Date: 17 Mar 2005 11:41:08 -0800
X-Trace: newsgroups.borland.com 1111088468 151.201.155.159 (17 Mar 2005 11:41:08 -0800)
Lines: 24
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail