Re: Send a Control+D from the Run Log Window
Re: Send a Control+D from the Run Log Window
- Subject: Re: Send a Control+D from the Run Log Window
- From: "Justin C. Walker" <email@hidden>
- Date: Sat, 12 May 2007 18:06:40 -0700
Chris,
On May 10, 2007, at 23:52 , Chris Espinosa wrote:
On May 10, 2007, at 11:39 PM, Francis Derive wrote:
I run a "SimpleServer" project, and a "SimpleClient" project in
Xcode ( 2.4.1 on 10.4.9 ).
The server Run Log shows "accepted connection from
192.168.1.10:49237" when I run the client - fine.
Then, in the client Run Log window, I type whatever and want to
finish by "Control+D" ... which does nothing in both windows.
I am sorry to miss something basic.
The Run Log is an output-only window. If you need to send a
control-D to the application you are debugging, you need to open
the Standard I/O window:
Perhaps you can shed some light on this. If I debug my command-line
program under Xcode, interacting with the Standard I/O window, I have
two problems:
- if the program is just reading from STDIN, I don't see the
effect of "^D": the program reading the terminal will just
sit there as if its read has not returned;
- if the program configures STDIN in "raw" mode (e.g., turning
off 'ICANON'), the program sees no "non-text" characters, and
in particular does not see "^D". ATAICT, the terminal is
correctly configured, but the characters are not being read.
Is this expected? An Xcode bug? System bug? Misunderstanding?
The Xcode doc seems to be mum on the subject.
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
If you're not confused,
You're not paying attention
--------
_______________________________________________
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