Mercurial > projects > ldc
comparison tango/tango/io/Console.d @ 133:44a95ac7368a trunk
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
In particular, assertions has been fixed to include file/line info, and much more!
author | lindquist |
---|---|
date | Mon, 14 Jan 2008 05:11:54 +0100 |
parents | 1700239cab2e |
children | 0e28624814e8 |
comparison
equal
deleted
inserted
replaced
132:1700239cab2e | 133:44a95ac7368a |
---|---|
619 | 619 |
620 Instantiate Console access | 620 Instantiate Console access |
621 | 621 |
622 ******************************************************************************/ | 622 ******************************************************************************/ |
623 | 623 |
624 extern(C) int printf(char*, ...); | |
625 | |
624 static this () | 626 static this () |
625 { | 627 { |
628 printf("STATIC INIT FOR CONSOLE\n"); | |
629 printf("Cin\n"); | |
626 auto conduit = new Console.Conduit (0); | 630 auto conduit = new Console.Conduit (0); |
631 assert(conduit); | |
627 Cin = new Console.Input (conduit, conduit.redirected); | 632 Cin = new Console.Input (conduit, conduit.redirected); |
628 | 633 |
634 printf("Cout\n"); | |
629 conduit = new Console.Conduit (1); | 635 conduit = new Console.Conduit (1); |
630 Cout = new Console.Output (conduit, conduit.redirected); | 636 Cout = new Console.Output (conduit, conduit.redirected); |
631 | 637 |
638 printf("Cerr\n"); | |
632 conduit = new Console.Conduit (2); | 639 conduit = new Console.Conduit (2); |
633 Cerr = new Console.Output (conduit, conduit.redirected); | 640 Cerr = new Console.Output (conduit, conduit.redirected); |
634 } | 641 } |
635 | 642 |
636 | 643 |