[jboss-jira] [JBoss JIRA] (AS7-2436) clear screen doesn't work on windows 7

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Thu Aug 2 13:27:12 EDT 2012


     [ https://issues.jboss.org/browse/AS7-2436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Loubyansky resolved AS7-2436.
------------------------------------

    Fix Version/s: 7.2.0.Alpha1
       Resolution: Done


Fixed by switching from jline to jreadline.
                
> clear screen doesn't work on windows 7
> --------------------------------------
>
>                 Key: AS7-2436
>                 URL: https://issues.jboss.org/browse/AS7-2436
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 7.1.0.Alpha1
>            Reporter: Alexey Loubyansky
>            Assignee: Alexey Loubyansky
>             Fix For: 7.2.0.Alpha1
>
>
> Following the discussion [jboss-as7-dev] AS 7.1.0 - jboss-admin : cls/clear command not working
> I am using Windows 7 64 bit and it is not working.
> On 31/10/2011 11:53 PM, Alexey Loubyansky wrote:
> > > No, it is expected to work. It does work on linux and remember verifying
> > > it on vista. CLI uses jline to manage the terminal. This is what its
> > > clearScreen impl looks like
> > >
> > >       /**
> > >        * Clear the screen by issuing the ANSI "clear screen" code.
> > >        */
> > >       public boolean clearScreen() throws IOException {
> > >           if (!terminal.isANSISupported()) {
> > >               return false;
> > >           }
> > >
> > >           // send the ANSI code to clear the screen
> > >           printString(((char) 27) + "[2J");
> > >           flushConsole();
> > >
> > >           // then send the ANSI code to go to position 1,1
> > >           printString(((char) 27) + "[1;1H");
> > >           flushConsole();
> > >
> > >           redrawLine();
> > >
> > >           return true;
> > >       }
> > >
> > > Maybe the terminal doesn't support ANSI?
> > >
> > > On 10/30/2011 07:35 AM, Vimal Kansal wrote:
> >> >> I am using jboss-admin on windows 7 64 bit and both cls/clear are not
> >> >> working : they just don't do anything. I wonder if the command is just a
> >> >> place holder for now?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list