|
|
Turning on line wrapping in Terminal
Rob wrote... Note that I have wrapped the lines by hand -- they're actually really wide single lines. If you don't set your Terminal window *really* wide, though, you won't see all the output; it gets chopped with a $ symbol. Is there a "wrap" option on grep that I'm not aware of? You can change this behavior in Terminal itself. Click on the Terminal menu item, then Window Settings..., and a dialog window will pop up. In the dropdown widget at the top of the window, select Buffer, then in the Scrollback section check the box next to Wrap lines that are too long. While you're here, you may also want to check the boxes next to Rewrap lines on window resize and Scroll to bottom on input. It should possible to get the same result with the defaults command: defaults write com.apple.Terminal Autowrap YES Hope this helps! ---
Turning on line wrapping in Terminal
Oh and, in case it isn't clear, after changing settings for a window in the dialog box, push the Use Settings as Defaults button to make the change permanent for new windows. This probably won't take effect for other currently open windows, though I haven't tested that yet. New windows will have the new setting, so opening new windows or relaunching Terminal will make the changes available. The same constraint applies to the defaults command as well -- you'll need to open new windows or restart Terminal for it to work. ---
Turning on line wrapping in Terminal
What I like to do if I get a result from a Terminal command that is either really long, or all on one line.. I just "pipe it" to a file.
Turning on line wrapping in Terminal
Oh, I wanted to put up my result from ioreg... it's no wonder my battery doesn't hold a charge anymore! My TiBook is showing 100% capacity!
Turning on line wrapping in Terminal
For reference, if anyone is interested, I have this:
Turning on line wrapping in Terminal
Hmm, I have all these settings turned on in my Window Settings/Buffer but ioreg and other commands like ps -ax still spit out lines that are too long, not wrapped, and end with a '$'.
I even set these as the default and still no luck. Any ideas?
Turning on line wrapping in Terminal
Use "ioreg -l -w 0" (that's a zero) to disable the stupid truncating with the $.
Turning on line wrapping in Terminal
use 'ps axww' instead, then ps won't truncate its output. (I typically add the 'u' flag too, but I don't remember why)
Turning on line wrapping in Terminal
I'm amazed that you took the time to write all that about the Terminal settings but didn't bother to test it to find out it doesn't solve the problem. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|