Incorrect formatting in Terminal using cut and paste

I'm at a bit of a loss here as none of my other macs seem to do this
When I'm in Terminal and do a copy of text it sometimes seems to corrupt the layout. When I paste it, it would all end up on one line.
For example:
if (a=a) then {
print "test";
would end up as:
if (a=a) then { print "test"; }
Which isn't a big deal for copying 3 lines, but when I'm in a configuration file that requires proper layout or is 100 lines long, can drive me crazy.
I've compaired my terminal settings on my home MBP to my work, all settings are the same. I feel like i'm missing something obvious here... my terminal emulation shouldn't be the issue, if I connect with my "home" mbp it works properly every time..
Anyone have any thoughts? Suggestions? I've tried searching the discussion forums and google, however the terms "cut paste terminal" are pretty widely used
Thanks!

In that case, Terminal is ignoring the Mac lineendings. I have the same problem with text pasted from editors like Tex-Edit, however Tex-Edit includes plenty of menu tools for text conversion. The characters are still there but are invisible, so running a script on the window converts the lineendings from any to any format. This is an old story with Macs vs UNIX vs DOS. Every system has its own linendings

Similar Messages

  • I can use cut and paste in Rich Text Editors for all web site hosts but one. I have tried the solution you provided, but it doesn't work. Any ideas? the website that rejects cut and paste is Network Solutions

    I really hoped you would fix the security policy issue in release 4. I have to close Firefox and use IE9 to maintain a website I built with Network Solutions and I'd much rather not have to endure the slowness of IE. I also have websites with Wix and WEBS and have no problems at all using cut and paste with them.

    Did you have it connected to the library mac when it froze? If so, why? I would be hesitant to hook my ipod to a unprotected public computer since it may be infested with viruses or have unknown hardware problems.
    In any case, if you can get it to an Apple store they can probably help you with it, it sounds like it needs replacing.
    A certain percentage of any complex product will turn out to be defective and will have to be returned, it sounds like you were unlucky enough to get one. Looking over the forums here it may seem like the ipod is plagued with bugs, but don't forget that there are millions who never have a problem and so have no reason to pipe up here. Personally I think Apple deserves a thumbs up for continuing to host these forums in spite of how they may cast a negative light on thier products to the casual observer.
    5G 60GB Black iPod   Windows XP Pro  

  • Invalid registration using cut and paste.

    I just reinstalled Window xp, QuickTime and other applications.
    After cutting and pasting my name and registration number in the appropriate section of QT Player, I only get an "invalid registration" indication in the Quick Time Preferences window.
    What do I do to remedy this?
    Thanks, Christian Rieger

    In that case, Terminal is ignoring the Mac lineendings. I have the same problem with text pasted from editors like Tex-Edit, however Tex-Edit includes plenty of menu tools for text conversion. The characters are still there but are invisible, so running a script on the window converts the lineendings from any to any format. This is an old story with Macs vs UNIX vs DOS. Every system has its own linendings

  • Formatting issues with a cut and pasted PDF document

    Hi,
    I am working with a lot of scanned PDF text and online PDF documents. When i paste them into pages 09, I am getting that little Paragraph symbol after each line of text. I think it is basically a line break. This causes problems for me and I wish that there was a fast way of deleting all of thise little breaks at one time somehow instead of manually deleting them, line by line, like i've been doing. PLEASE someone, if you can help with this, you will save me untold hours of tedious labor.
    thanks!

    Welcome to the Apple forums
    Peter's solution is excellent & I've used it for years. But there are a couple of options that automate the process. Here's a thread with an explanation & links.

  • Apple Mail Cut and Paste Problem

    When I cut and past in Apple Mail font changes to smaller size.  Any suggestions?

    As you know, type sizes are uniform - unless you use cut-and-paste. The resulting text will sometimes be smaller, larger, or different than the type-style you began with.
    Personally, I'd ignore it. But if you want to fix the font size, you can alter it in the Format Bar on the top of the Mail program. This allows you to change the type, size, and even alter special characters. To make the text uniform, highlight the text you want to alter, open the Format Bar, and change the settings.

  • Mail: cut and paste behaving strangely

    When writing a new email, I often rewrite and edit the text using cut and paste, but lately when I paste, the text is placed is completely unexpected places, usually back at the start of the paragraph.
    Is there some setting I have inadvertently changed?
    Thanks for any help.
    Regards
    David W

    As you know, type sizes are uniform - unless you use cut-and-paste. The resulting text will sometimes be smaller, larger, or different than the type-style you began with.
    Personally, I'd ignore it. But if you want to fix the font size, you can alter it in the Format Bar on the top of the Mail program. This allows you to change the type, size, and even alter special characters. To make the text uniform, highlight the text you want to alter, open the Format Bar, and change the settings.

  • Photos gone after cut and paste

    Hi,
    I had a problem with my iphone 6 when I tried to cut and paste photos from iphone to my windows 8 PC. At first I tried 1 photo, and it worked properly, yet when I cut and paste a bunch of photos (around 50 of them) onto my pc, I realized about half of the photos were missing. Then I used ctrl+z to see if the missing photos would come back. Unfortunately, the missing photos weren't back, and the ones that were originally successfully transferred to my pc were also missing as well (after ctrl+z). So now I have no photos left.  Are there any ways of recovery?

    I suggfest not using cut and paste - merge events by dragging one ot the other or selecting them and using the merge events command
    and be extremely careful about going inside the iPhoto library - the slightest error can damage your library and cause data loss
    LN

  • Indesign cs3 automatic cut and paste footnotes from one doc. to another

    Dear Indesign Scripters,
    I making a digital copy of the BIble. The Bible is divided into chapters and verses. Each one of my verses has a footnote reference (thanks to Jongware).
    Example:
    5Shall not Sion say: This man and that man is born in her? and the Highest himself hath founded her. 6 The Lord shall tell in his writings of peoples and of princes, of them that have been in her. 7 The dwelling in thee is as it were of all rejoicing.
    the footnotes read thusly:
    86:5
    86:6
    86:7
    I have in a seperate document alll the fotnotes that I have been cutting a pasting from the one document into the main Bible text footnotes
     86:5. Shall not Sion sa...
     86:6. Writings. He alone can ...
     86:7. The dwelling, &c. Heb. "the...so how can I tell Indesign to take the footnotes from one document and plug it in the footnote reference in the other document?
    If that makes sense?
    thanks for the help.
    Dan

    Do not use cut and paste. Flag the photos you want to moe and then select the event you want them in and add flagged photos to selected event
    LN

  • I am trying to cut and paste from a program, IEP DIRECT, and normally on my PC I have no problems; however, when using my MAC the formatting gets all mixed up

    i am trying to cut and paste from a program, IEP DIRECT, and normally on my PC I have no problems; however, when using my MAC the formatting gets all mixed up

    If you refer to this
    https://www.iepdirect.com/iepdotnet/hub/index.html
    then they have an issue with mac version.
    At a first glance, their website is optimized for Windows only, it displays badly in Safari, perhaps it would be better in Firefox or other browser.

  • How to cut and paste subtitles (with formatting)?

    In iMovie '09, once I've formatted a subtitle to look the way I want, how can I repeatedly cut and paste that subtitle so that I don't need to redo the formatting for every subsequent subtitle?
    I realize this is probably trivial once you see it ... but it's not obvious to me. Couldn't find it in Help or in Apple's FindOutHow movie.

    Copying, Cutting, and Pasting in OS X
    You can easily copy, cut, or paste pictures, text, and other items easily using the built-in shortcuts and menus in OS X.
    Copying text
    To copy text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
    To copy using secondary-click, first secondary-click the text. Then, select the Copy button from the pop-up menu.
    To copy using the keyboard shortcut, select the text. Then, press both the C and Command (⌘) keys at the same time.
    Cutting text
    To cut text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
    To cut using secondary-click, first secondary-click the text. Then, select the Cut button from the pop-up menu.
    To cut using the keyboard shortcut, select the text. Then, press both the X and Command (⌘) keys at the same time.
    Pasting text
    To paste text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
    To paste using secondary-click, first secondary-click the text. Then, select the Paste button from the pop-up menu.
    To paste using the keyboard shortcut, select the text. Then, press both the V and Command (⌘) keys at the same time.
    Austin

  • Quick way to format text cut and pasted from a web browser into Pages?

    I work a lot by cutting and pasting text from web browsers into my word processor.
    When I was using Word, I had built a very useful macro that allowed me to re-format the font, font size, colour, line spacing etc, as well as to remove hyperlinks, all by pressing one keyboard shortcut.
    Is this possible in Pages? I've tried Paste and Match Style, and Paste Paragraph Style, but they only seem to solve half the problems.
    Surely this must be a common problem? I've had a look in the discussion forums, but can't find anything...

    arthur,
    I'm not having any trouble deleting links. Click on View > Show Invisibles. If there's a space following the link, put your cursor to the right side of the space, click, then drag to the left so that you highlight the link. Then just hit delete.
    Or, if you want to have a web or email address in your copy without it being a live link, highlight it, then click on the Link inspector > Hyperlink button > and UNcheck +Enable As Hyperlink+.
    -Dennis

  • Vim: cutting and pasting between Terminal windows.

    Has anyone else noticed in vim, that when cutting and pasting between 2 files opened in 2 separate vim sessions, each in it's own terminal.app window. that you get a lot of indentions stuffed in with the paste content? If I open both files within a single vim session by splitting the window. This is not a problem.
    on other systems that I use, setting 'noai' resolves this problem. but it doesn't appear to have any effect on OS X. any suggetions?
    Thanks,
    Andy

    Hi Andy,
       Talking to yourself? Don't let this drive you insane. The difference is probably in your ~/.vimrc. In order to avoid the extra indention characters you must unset autoindent and also cindent. You may not set the cindent on the other platforms. I have it set because it's useful in composing code from scratch. However, if I want to paste indented text I have use both ":set noai" and ":set nocindent". After that pasting doesn't add any extra indention.
    Gary
    ~~~~
       Don't let people drive you crazy when you know it's in walking distance.

  • No cut and past in ichat using jabber for gmail

    Just bought new macbook. I can't cut and paste or click on links during a chat. I use ichat all day at work and need those capabilities to function. any idea on how to resolve this issue?

    Hi,
    I have tested between to Jabber IDs on my two computers using two different Jabber Servers and Copying and Pasting a URL and then sending it worked for me.
    At the second computer it was shown as a Link and opened the web page.
    Have I misunderstood what you were saying or was that what you were trying ?
    The test was iChat to iChat.
    4:38 PM Sunday; November 30, 2008

  • Multiple problems: can't open two windows, browser doesn't close although window disappears, and after working for a while I loose my ability to cut and paste or use drop down arrows

    Maybe two weeks ago I discovered that I could no longer open two windows at a time (I can still open multiple tabs). I am also having problems with cutting and pasting, which is crucial to my on-line job. Plus, when I exit Firefox, it doesn't always shut down, so then when you go to re-open, of course, it won't (unless you go into process and turn it off). I have re-installed multiple times and I have also used restore. Nothing seems to be fixing this and I really, really don't want to use IE, especially for work.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    See also "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * [[Firefox hangs]]
    Maybe also do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • My ical froze and keeps trying to process a cut and paste that I added to the calendar.  I have to force quit but the next time I open it is still frozen.  Can't use at all.  Help!

    My iCal has frozen when I tried to add a cut and paste to the calendar for notes on a meeting I'm attending.  I have to force quit but the next time I open it is still frozen and everything I've tried doesn't erase the message so I can continue using.  Can't use at all.  Help!

    I have the same problem--have you found a solution?

Maybe you are looking for

  • Record Number In Cross Tab

    Hello... How can i add Serial Number for each records in crosstab reports. Thanks ......

  • Part 2 : can i create an instance of ArrayList ?

    Hey thanks so much for the reply. Let me tell you the exact scenario. I'm actually developing a struts-application. Hope I can get some help here too. I have: 1. login.jsp-where user logs in. -I have a userid and a password as default values for each

  • Migrate existing code of AS3 to AS2 - URLRequest, URLLoader

    Hi, I have written code to read an XML file by using URLRequest and URLLoader in ActionScript 3.0. Code is pasted below. This runs well in AS3.  Problem I am facing is because I wrote this in AS3, I am not able to use the DateChooser component in ano

  • Object Oriented Programming - help required to find training material

    Hi, I am working in ABAP for 4 years. I did not get any chance to work in OOPs concept. However I know how to create classes,methods and how to access methods and attributes of class inside the report program and I hope apart from these we are having

  • Apps not updating?

    Hello all i am in need of some help!  So i don't know if this is an app store issue or not but whenever i try to update my apps i get a log in screen.  I log in to the proper account that i am supposed to log into, but it just goes back to the update