Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions #17

Closed
mucaho opened this issue Apr 12, 2016 · 1 comment
Closed

Questions #17

mucaho opened this issue Apr 12, 2016 · 1 comment

Comments

@mucaho
Copy link

mucaho commented Apr 12, 2016

First of all, nice work! I've searched all over the net to find a suitable interactive shell, only to find deeply hidden documentation in many projects :(

I have a couple of questions, I hope this is the right place to ask this:

  • What platforms are supported? Is this pure Java (+ for all dependencies)? Which exact minimal Java version?
  • How is CTRL-C handled? Can this SIGINT be used to nicely shutdown the shell?
  • Can I open the interactive shell programmatically? I'd like to startup my application via command line arguments and then spawn an interactive shell. Another option would be to forward the command line arguments to my application. E.g. for 1st variant:
java -jar myApp.jar --myArgKey myArgValue # I could use JCommander for parsing these args here
# myApp spawns clamshell
 .d8888b.  888                         .d8888b.  888               888 888
d88P  Y88b 888                        d88P  Y88b 888               888 888
888    888 888                        Y88b.      888               888 888
888        888  8888b.  88888b.d88b.   :Y888b.   88888b.   .d88b.  888 888
888        888     :88b 888 :888 :88b     :Y88b. 888 :88b d8P  Y8b 888 888
888    888 888 .d888888 888  888  888       :888 888  888 88888888 888 888
Y88b  d88P 888 888  888 888  888  888 Y88b  d88P 888  888 Y8b.     888 888
 :Y8888P:  888 :Y888888 888  888  888  :Y8888P:  888  888  :Y8888  888 888

                                                  Command-Line Interpreter

Java version: 1.6.0_22
Java Home: /usr/lib/jvm/java-6-openjdk/jre
OS: Linux, Version: 2.6.38-10-generic

prompt> _
prompt> myCommand
@mucaho
Copy link
Author

mucaho commented Apr 13, 2016

What platforms are supported? Is this pure Java (+ for all dependencies)? Which exact minimal Java version?

Java class header indicates my project is compiled with 1.5 (hex code 0x31) and runs.

How is CTRL-C handled? Can this SIGINT be used to nicely shutdown the shell?

Works on linux, reportedly problems on Windows (see #6).

Another option would be to forward the command line arguments to my application.

Feature request of #2.

@mucaho mucaho closed this as completed Apr 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant