Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Java only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Java
Clear Output Pane
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Kid Programmer
New Member
Join Date:
Mar 2008
Posts:
176
#1
Clear Output Pane
Jun 16 '08, 08:00 PM
Is there a method I can use to delete all the text that has been outputted using the
System.out.prin tln(""); method?
BigDaddyLH
Recognized Expert
Top Contributor
Join Date:
Dec 2007
Posts:
1216
#2
Jun 16 '08, 09:46 PM
No in a platform-independent way. The simplest thing is to be happy with printing a few blank lines.
Comment
Post
Cancel
Kid Programmer
New Member
Join Date:
Mar 2008
Posts:
176
#3
Jun 16 '08, 11:19 PM
Originally posted by
BigDaddyLH
No in a platform-independent way. The simplest thing is to be happy with printing a few blank lines.
Okay. Thanks amigo.
Comment
Post
Cancel
BigDaddyLH
Recognized Expert
Top Contributor
Join Date:
Dec 2007
Posts:
1216
#4
Jun 17 '08, 03:23 AM
Originally posted by
Kid Programmer
Okay. Thanks amigo.
Yeah, keep it simple and save the fun and games for Swing...
Comment
Post
Cancel
r035198x
MVP
Join Date:
Sep 2006
Posts:
13225
#5
Jun 17 '08, 10:18 AM
You could of course "clear" the
visible
screen by printing lots of blank lines
[CODE=java]void clrscr () {
for(int i = 0; i < 100;i++) {
System.out.prin tln("");
}
}[/CODE]
Comment
Post
Cancel
Kid Programmer
New Member
Join Date:
Mar 2008
Posts:
176
#6
Jun 17 '08, 12:32 PM
Originally posted by
r035198x
You could of course "clear" the
visible
screen by printing lots of blank lines
[CODE=java]void clrscr () {
for(int i = 0; i < 100;i++) {
System.out.prin tln("");
}
}[/CODE]
Okay that could work. The user could just scroll back up but whatever.
Comment
Post
Cancel
JosAH
Recognized Expert
MVP
Join Date:
Mar 2007
Posts:
11453
#7
Jun 17 '08, 01:20 PM
ps. you can also google for 'jcurses'.
kind regards,
Jos
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment