• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
printf('\r') supported in Xcode 6.4 console window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printf('\r') supported in Xcode 6.4 console window?


  • Subject: printf('\r') supported in Xcode 6.4 console window?
  • From: Carl Hoefs <email@hidden>
  • Date: Fri, 07 Aug 2015 15:33:09 -0700

For debugging my app I need to watch the progress of a buffer getting filled with data, so I'd like to be able to print to the Xcode console window a single formatted text line that updates 1000 times in place. Outside of Xcode I would do this with printf's having '\r' carriage returns instead of '\n' CR/LF characters. However, Xcode seems to have anticipated my move, and instead gleefully interprets '\r' as equivalent to '\n'.

I'm probably stuck in the "operates as designed" syndrome, but I'd thought I'd ask if what I'm trying to do is possible.
-Carl


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: printf('\r') supported in Xcode 6.4 console window?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: What to do when git munches your project file. Xcode 6.3.2
  • Next by Date: Pref for date format in generated files?
  • Previous by thread: Re: What to do when git munches your project file. Xcode 6.3.2
  • Next by thread: Re: printf('\r') supported in Xcode 6.4 console window?
  • Index(es):
    • Date
    • Thread