|
Quick Lists
|
|
Bug ID:
|
4117429
|
|
Votes
|
0
|
|
Synopsis
|
TTY: Want termcap-style features
|
|
Category
|
java:classes_io
|
|
Reported Against
|
1.1.7
, 1.2beta2
, 1.2beta3
|
|
Release Fixed
|
|
|
State
|
11-Closed,
Will Not Fix,
request for enhancement
|
|
Priority:
|
5-Very Low
|
|
Related Bugs
|
4050435
|
|
Submit Date
|
05-MAR-1998
|
|
Description
|
Is there such a command as a "cls" (clear screen), like in DOS or basic, that can be used in a java application (not applet)? If not, is
there something similar, other than using a bunch of System.out.println statements? I'm using MS Visual J++
(and not impressed with it).
This is for a programming assignment that uses menus in the stand-alone interpreter.
Thanks.
(Review ID: 26031)
======================================================================
|
|
Work Around
|
N/A
|
|
Evaluation
|
Java currently has no support for clearing the console window (in Unix parlance,
the tty). There has, as yet, been hardly any demand for this feature or for
other termcap-style features. -- xxxxx@xxxxx 3/5/1998
There still has been hardly any demand for this feature. We are considering an
API for improved interactive console I/O (see 4050435), but we see no need to
replicate termcap in Java. -- xxxxx@xxxxx 2002/3/15
|
|
Comments
|
Submitted On 01-NOV-2007
Partial workaround: you may write (vt100) control sequences directly to System.out, such as ESC 2 J or ESC [ K or ... (search the web for xterm control sequences). However, I know no way of turning out line echoing or line buffering, (stty -echo -icanon).
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |