Hello,

I am trying to to write a Karaf Command that can pause its output until the 
user presses any key, or ‘q’, similar to how Linux `more` command does.   So 
far I have been able to prompt for user input using 
org.apache.karaf.shell.api.console.Session.readLine,  but this requires the 
user to press the Enter key.  I want the user to press the space bar or key `q` 
(for quit) without having to press the Enter key.

Any hints or pointers on how to accomplish this?


Best regards,
Alex soto




Reply via email to