small updates from with Roo 1.2.0

This commit is contained in:
Costin Leau
2012-07-12 10:23:53 +03:00
parent 94f6e24608
commit 3f0f29fd00

View File

@@ -122,14 +122,15 @@ public class JLineLogHandler extends Handler {
// This ensures nothing is ever displayed when redrawing the line
reader.setDefaultPrompt("");
reader.printString(toDisplay);
reader.redrawLine();
// Now restore the line formatting settings back to their original
reader.setDefaultPrompt(shellPromptAccessor.getShellPrompt());
reader.getCursorBuffer().setBuffer(buffer);
reader.getCursorBuffer().cursor = cursor;
reader.printString(toDisplay);
Boolean prohibitingRedraw = redrawProhibit.get();
if (prohibitingRedraw == null) {
reader.redrawLine();