Re: Command Line I/O
Re: Command Line I/O
- Subject: Re: Command Line I/O
- From: chris friesen <email@hidden>
- Date: Sat, 25 Oct 2003 12:30:36 -0700
The Xcode release notes talk about this in the Debugger section's Known
Issues.
[...]
In some cases you may find the run log does not display all the text
you are expecting. Likely you need to change how Xcode is communicating
with the tool from 'Pipe' to 'Pseudo terminal'. Double click the
executable [turn down the Executables item in the Groups and Files
outline view to get to the executable] in the Project window to get the
Executable Configuration window. Scroll down to the Launch
Configuration section, choose 'Run action' in the 'Configure' popup,
then choose 'Pseudo terminal' in the 'Std In/Out' popup.
Cheers,
Chris
Code SenseOn Oct 25, 2003, at 11:23 AM, Jesse Thompson wrote:
I'm having issues with command-line I/O & Xcode.
In PB,
#include <stdio.h>
int main ()
{
int i;
printf( "Enter a number\n" );
scanf( "%d", &i );
return 0;
}
Would have printed the message and then waited for input. In Xcode
however, a blank window pops-up, and does nothing. If I hit a carriage
return, the message is printed and then the system exits.
What am I missing here? Can Xcode no longer do C / C++ command-line
I/O?
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.