You just can't .
The console is perceived as an input / output representation, and not as a shell. Not only input capabilities are limited by simple keys, but output ability is truncated. You cannot, for example, control a \ b Eclipse console.
If you want to use the shell in the Eclipse view and then run your script, you can always open it, see fooobar.com/questions/29308 / ...
source share