AS 7.1.0 - jboss-admin : cls/clear command not working

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

AS 7.1.0 - jboss-admin : cls/clear command not working

Vimal Kansal
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?

_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: AS 7.1.0 - jboss-admin : cls/clear command not working

Alexey Loubyansky
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?
>
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: AS 7.1.0 - jboss-admin : cls/clear command not working

Vimal Kansal
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?
>>
>> _______________________________________________
>> jboss-as7-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: AS 7.1.0 - jboss-admin : cls/clear command not working

Alexey Loubyansky
Ok, thanks. https://issues.jboss.org/browse/AS7-2436

On 10/31/2011 02:09 PM, Vimal Kansal wrote:

> 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?
>>>
>>> _______________________________________________
>>> jboss-as7-dev mailing list
>>> [hidden email]
>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>> _______________________________________________
>> jboss-as7-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: AS 7.1.0 - jboss-admin : cls/clear command not working

Stan Silvert
In reply to this post by Vimal Kansal
I'm seeing the same problem (same OS).

Quoting Vimal Kansal <[hidden email]>:

> 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?
>>>
>>> _______________________________________________
>>> jboss-as7-dev mailing list
>>> [hidden email]
>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>> _______________________________________________
>> jboss-as7-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>






_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev