🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #582

Re: SetCursorPos

#582
From: Tor Iver Wilhelmsen (TeamB)
Date: Wed, 18 Jun 2003 06:30
16 lines
1504 bytes
"Willie" <Willie.nospam@nospam.pchome.com.tw> writes:

> How can I output the string at specific location in a DOS BOX(console
> Application)?
> Is there a Java API can do this?

No. But you could (possibly) send the escape codes used to do the
actual positioning. The codes can be found at
http://www.termsys.demon.co.uk/vtansi.htm and ESC is ASCII 27

char ESC = (char) 27;
System.out.print(ESC+"[{"+row+"};{"+column+"}H"+text);
System.out.flush();

In my test, this didn't work on my Win2k's cmd shell, but it could be
that the support for ANSI/vt100 is less than perfect.
Technical Details
Message-ID: <uadcfoq28.fsf@ergo.no>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <3eee68ea@newsgroups.borland.com> <3EEF9578.8090308@techie.com> <3eefb5d6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,1fc7fe3d76f71822
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-06-17 23:32:08 PST
Sender: towi@SDSA3850
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: SetCursorPos
References: <3eee68ea@newsgroups.borland.com> <3EEF9578.8090308@techie.com> <3eefb5d6@newsgroups.borland.com>
From: tor.wilhelmsen@ergo.no (Tor Iver Wilhelmsen (TeamB))
Date: 18 Jun 2003 08:30:39 +0200
Message-ID: <uadcfoq28.fsf@ergo.no>
Lines: 16
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 139.105.4.245
X-Trace: newsgroups.borland.com 1055917837 139.105.4.245 (17 Jun 2003 23:30:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail