Stian Lavik wrote:
This is a problem when executing java and javac, not input to a java
application. It is simply if I type too much after 'java...' (if
arguments are too long for one line), it should wrap nicely to the
next line, only it doesn't.
It's a Terminal window setting. It has nothing to do with java.
To demonstrate, type a very long 'echo' command-line. It should do
exactly
the same thing as your long 'java' command-line: not wrap. Any
other long
command-line would do the same. You just happened to see it with java
because you're giving it very long command-lines.
To change the setting, choose Window Settings... from the Terminal
menu. A
Terminal Inspector floating window appears. Choose Buffer in the
popup.
The Scrollback checkboxes should all be checked. In particular, "Wrap
lines that are too long" must be checked.
To preserve the setting for future use, click Use Settings as
Defaults.
By the way, a line ending in a single backslash tells the shell to
continue
taking input at the next line.
echo This is \
an example of \
a continued command-line.
The output will be identical to:
echo This is an example of a continued command-line.