Hello I have Java application that runs under unix and has console for user imput. I would like to perform something like this -

If I enter "edit config" I would like to vi pop up with config file loaded (with java still running in background" and after user is done editing and he closes vi, the java would take controle of console again. Is there a special way / tool to achiev this? Any help appritiated, thank you!

SystemTray#SystemTray.getSystemTray();

SystemTray#SystemTray.getSystemTray();

Hello, can this by used under bash? Application runs in console, not in graphical mode.

then how can you

If I enter "edit config"

then how can you

If I enter "edit config"

The application is console based without UI... it has its own command prompt waiting for user input... if user inserts "edit config" I want java command promt hidden, and see file opened in vi in linux console... when user is done (:wq) then java command prompt would appear again

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.