Empyreus / lanterna

Automatically exported from code.google.com/p/lanterna
GNU Lesser General Public License v3.0
0 stars 0 forks source link

.clearScreen() for Screens? #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The Terminal class has a clearScreen() function which is pretty handy, but 
Screens don't.  Can I use screen.getTerminal().clearScreen() to clear the 
screen, or is that going to mess with the screen's idea of what's dirty and 
needs to be redrawn?

Original issue reported on code.google.com by st...@stevelosh.com on 9 Jul 2012 at 2:14

GoogleCodeExporter commented 9 years ago
Agreed; the work-around would be to manually reset the screen by drawing empty 
spaces to it, but there really should be a method for this.

Original comment by mab...@gmail.com on 9 Jul 2012 at 11:38

GoogleCodeExporter commented 9 years ago
I've added Screen.clear() on 2.0.x branch and deployed an updated 
2.0.1-SNAPSHOT on Maven. Please give it a try!

Original comment by mab...@gmail.com on 9 Jul 2012 at 12:24

GoogleCodeExporter commented 9 years ago
Hmm, I couldn't get it to work.

First I couldn't find 2.0.1-snapshot on Maven.  I tried Sonatype and it seemed 
to find one those, so I went with that.

Then I tried actually using Screen.clear() and it couldn't find the method.  Is 
2.0.1-snapshot on Sonatype not the right library?

Original comment by st...@stevelosh.com on 11 Jul 2012 at 2:14

GoogleCodeExporter commented 9 years ago
Ah, I think it's in the Sonatype snapshot repository which probably isn't 
available to Maven by default. Found instructions for a completely different 
project at 
https://github.com/thucydides-webtests/thucydides/wiki/Getting-Started which is 
probably what you need, although should be sufficient by just adding:
                <repository>
                    <id>sonatype-oss-snapshots</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                </repository>
to your settings.xml. I should probably update the instructions on the website 
with this. Alternatively, if you don't mind, you could clone the Mercurial 
repository and mvn clean install the 2.0.x branch.

...I could actually do a 2.0.1 proper release though...

Original comment by mab...@gmail.com on 11 Jul 2012 at 5:34

GoogleCodeExporter commented 9 years ago
Heh, I'm using Clojure and Leiningen so no settings.xml here.  I tried again 
and this time the snapshot it pulled out of Sonatype seems to have worked. 
Thanks!

Original comment by st...@stevelosh.com on 13 Jul 2012 at 2:04