-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08.01.2014 21:31, Nils Durner wrote:
> 
>>>> I have found no way to wait (and thus select) on a console 
>>>> handle.
> 
> I haven't actually tried it, but the documentation for 
> WaitForMultipleObjects() explicitely specifies "Console input" as
> a supported handle type (maybe obtained by GetStdHandle()?).

Tried WaitForSingleObject() on the console input handle, didn't work.

> 
>>>> Thus it will have to be done with a thread.
> 
> Other idea: reimplement the console (like Turbo Pascal for Windows
> did) and add MsgWaitForMultipleObjectsEx() to plibc's select().

Right...At this rate it'll be easier to just use conemu.

> 
>>> OR we could do our usual trick and fork another helper process
>>> to interact with the console ;-).
>> 
>> That might work, as it turns console I/O into socket or pipe I/O
>> (both of which are supported), from the point of view of the
>> application.
> 
> (Probably) phrased differently: do the actual work in a background 
> process and have a really lean, telnet(.exe) like, console UI. A
> proper Windows implementation would be easy to do then.

Well, i did implement a console helper as grothoff suggested. Worked
for me (though i had to fudge the inheritance a bit to make sure
children do get access to the console).

> 
>>>> Which leads me to the question: do we really need interactive
>>>> console on Windows?
> 
> Without knowing anything about the background subject, I'd say:
> no. Either have a real graphical UI or forget about it.

That is what i think as well.

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJSzY48AAoJEOs4Jb6SI2Cwi/gIAIB8BP3j5qxYhFQzYplB9Ls2
5UqZm3uxl5aDaetcaNUCqXmXfDX6u+yKNeDfF01g23sIxmrqxz6ER3z1owO+OKfU
A1UDut20HThHVMwDfueEj8lKaVQxntavC0oYonw5HVtKXQMXc+3/HwyiXIrjdKu5
urxf4pnFQfUNsCF/HAv4Q1K8h5xtppkaHgIMNxZqcCNmC41YHWDpvC9OSPc9qMqR
hv16pmHVp3cKgh7eJ6xs9TjKAF6PvhdEmH8Pu6xZypaot/elQiTE1XC0KEV8DJTg
F5TQnb8nfpN2W00j4k9bHKY1J2ygGzRieqHDmA1sI84EzxKK/QoZCXsNTGU8KOU=
=6bnN
-----END PGP SIGNATURE-----

_______________________________________________
GNUnet-developers mailing list
GNUnet-developers@gnu.org
https://lists.gnu.org/mailman/listinfo/gnunet-developers

Reply via email to