The prompt is displayed when the execution of a command is finished.
If you're still executing the command, the prompt won't be dipslayed,
but you can retrieve it from the shell's session variables and display
it your self if you need.

On Sat, May 14, 2011 at 14:32, Samuel Cox <crankydi...@gmail.com> wrote:
> I tried that and it didn't work.  I will say that my bean doing the
> output is written in Scala.  I'm using println(""), which I think is
> equivalent to Java's System.out.println("").
>
> On Sat, May 14, 2011 at 12:38 AM, Jean-Baptiste Onofré <j...@nanthrax.net> 
> wrote:
>> Hi Samuel,
>>
>> It should be the case.
>>
>> Karaf shell intercept the std and err output stream.
>> It means that after a System.out.println(), the Karaf prompt should be
>> display.
>> It's the case in the commands. For instance, osgi:list iterates on the
>> bundles and simply display the bundles attribute using System.out.println().
>>
>> Try to add a System.out.println("") at the end of your bundle output, it
>> should display the prompt just after your bundle output.
>>
>> Regards
>> JB
>>
>> On 05/14/2011 03:10 AM, Samuel Cox wrote:
>>>
>>> Hi,
>>>
>>> Is it possible to get the prompt back after some bundle code does a
>>> System.out.println()?
>>>
>>> I have some beans that need to print stuff to the Karaf console.  I
>>> can't figure out how to get the prompt back without the user hitting
>>> enter.
>>>
>>> Many thanks.
>>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Connect at CamelOne May 24-26
The Open Source Integration Conference
http://camelone.com/

Reply via email to