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: Francis Derive <email@hidden>
- Date: Fri, 11 May 2007 18:56:03 +0200
Justin,
I have checked - server and client launched in their respective
Terminal window - that (my little) app behaves correctly : in the
client window, the "CTRL-D" turns written as "EOF", and in the server
window, the message is displayed.
I too suspected that could be coming from the debugger console or
whatever ( same thing with gdb console ) - and that I don't know how
to cope with it.
Instead by now I use Terminal, but it is not the same comfort as the
one expected from Xcode.
Still hope.
Cheers,
Francis.
On May 11, 2007, at 4:26 PM, Justin C. Walker wrote:
On May 10, 2007, at 23:39 , Francis Derive wrote:
Bonjour,
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.
Without looking too deeply into this, it may be that the debugger
console does not handle CTRL-D correctly. To make sure that your
app is working as expected, try running it with an argument like
"< /tmp/junk"
(make up a small text file called "/tmp/junk" before running).
You should see the content of the file printed by the server, which
would mean that the app is working correctly.
<pedantic>
Note that "CTRL-D" (in most cases) will not be sent across the
network. It will not be seen when doing something as simple as
$ cat > /tmp/junk
Testing.
[^D]
$
I use the "[^D]" string here just to show that I typed the
character CTRL-D, and that it did not appear on my screen. The
character does not appear in the file either.
Instead, "CTRL-D" is a convention, between operating system and
user at a keyboard, to give the user a way to tell the program he
is interacting with that he is done typing. This takes the place
of the END-OF-FILE indication that occurs when a file on the disk
is read to the end.
</pedantic>
It may be that the debugger console is not properly handling this
convention. You might try using gdb in a terminal window to see if
that works.
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
Men are from Earth.
Women are from Earth.
Deal with it.
--------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
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