• 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
Re: command-line development in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: command-line development in Xcode


  • Subject: Re: command-line development in Xcode
  • From: Markian Hlynka <email@hidden>
  • Date: Thu, 5 May 2005 12:04:33 -0600


On May 4, 2005, at 17:23, Shawn Erickson wrote:

On May 4, 2005, at 4:11 PM, Markian Hlynka wrote:

Is there any way to get things like
printf("\r");

to work in the xcode pseudoterminal [ie Run Log]? I understand why curses doesn't work, but I was hoping maybe...?

Sorry I don't follow... printf will print things to Xcode's run log (using Xcode 2 in the following example).

int main (int argc, const char * argv[]) {
printf("Hello\r How are you?\n");
}

[Session started at 2005-05-04 16:22:37 -0700.]
Hello
How are you?

correct. But, if I use \r in a terminal (vt100, x11, terminal.app), then I get a carriage return which has the cool effect of being able to update a single line instead of scrolling down. ie, in a terminal, the above would print:
Hello

But then it would print
How are you
on top of "Hello", overwriting it.

That's what I want... I use it so I can see what's going on without generating thousands of lines of output. But so far, Xcode insists on the thousands of lines option.


Markian
 _______________________________________________
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

References: 
 >command-line development in Xcode (From: Markian Hlynka <email@hidden>)
 >Re: command-line development in Xcode (From: Shawn Erickson <email@hidden>)

  • Prev by Date: RE: Best practices for upgrading?
  • Next by Date: Re: Xcode 2 Question
  • Previous by thread: Re: command-line development in Xcode
  • Next by thread: Predictive Compiling and Java
  • Index(es):
    • Date
    • Thread