(Eclipse) How to interact with the console view?

Eclipse uses a read-only console view.

How can I enter the command in the form of a console? Is it possible? For example: ls , mvn install ...

Edited by:

Thanks Ben and Kelly.

As far as I understand, I can interact with the Eclipse console when my application is running. However, I meant that I needed a built-in console, like Kate, Dolphin (press F4 in Dolphin) ... Therefore, I can use the bash script in the Eclipse console. Is it possible? Or is there a plugin for this? I have googled, but maybe my keywords were wrong ...

Edited

Edward found a duplicate question here: Is there an Eclipse plugin to run the system shell in the console?

And the answer was given :-)

I do not know how to mark this as decided. So I post here, I got a response.

Edited

But this is not useful. It has no autocomplete function, when I need to enter a long file name or want to get a hint for a forgotten name, ... this is the worst: - (

+4
source share
3 answers

When the console is waiting for input, a green prompt is displayed that allows you to enter.

You can verify this by creating a simple console application that reads from standard input.

+2
source

You are trying to present the Eclipse console as if it were connected to a command line process. It is actually associated with the JVM used to execute your Java code. Thus, it only displays the output that your program sends to System.out and, conversely, is only available for input if the Java code you use requests input from System.in .

A worthy exercise would be to write a small Java program that redirects the input data and displays their child process of your favorite shell, for example: http://www.devdaily.com/java/edu/pj/pj010016

+1
source

The Eclipse Console is used to communicate with an executable program (usually Java or similar). If you want to use it as a console, as pointed out in a comment in response to @Ben S, the Target Management Eclipse Project provides a view that may for this reason. I am not installing it right now, so I cannot tell you the required plug-in / view name, but I used it to connect to the local computer and it works.

0
source

Source: https://habr.com/ru/post/1390501/


All Articles