Re: Spawning a pty in D

2013-10-22 Thread Adam D. Ruppe
looking at the comments: //pragma(lib, "util"); // pragma does not work for me at moment. TODO: FIND OUT WHY! If you are using gdc, and I think ldc too, that pragma is unsupported since it doesn't fit well into the gcc code - there's no easy way to pass linker flags from the D frontend t

Re: Spawning a pty in D

2013-10-22 Thread Colin Grogan
On Thursday, 17 October 2013 at 14:12:36 UTC, Adam D. Ruppe wrote: On Thursday, 17 October 2013 at 13:53:39 UTC, Colin Grogan wrote: Anyone have any experience with this? I actually have been writing a terminal emulator for the last few weeks https://github.com/adamdruppe/terminal-emulator

Re: Spawning a pty in D

2013-10-17 Thread Adam D. Ruppe
On Thursday, 17 October 2013 at 13:53:39 UTC, Colin Grogan wrote: Anyone have any experience with this? I actually have been writing a terminal emulator for the last few weeks https://github.com/adamdruppe/terminal-emulator But for reading and writing from the pty, I just used the unix read

Spawning a pty in D

2013-10-17 Thread Colin Grogan
Im having an issue I can link to the C header file pty.h (http://man7.org/linux/man-pages/man3/openpty.3.html) and call forkpty like here: http://dpaste.dzfl.pl/c3b07855 You have to compile that by linking with the util library ( add "libs-posix": ["util"] to dubs package.json ) For ease of re