Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in Terminal?



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.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.