www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24001] New: Add console module to replace std.stdio

https://issues.dlang.org/show_bug.cgi?id=24001

          Issue ID: 24001
           Summary: Add console module to replace std.stdio
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: alphaglosined gmail.com

Consoles are a special subclass of standard IO.

On Windows you want to use the UTF-16 instead of UTF-8/ANSI functions to read
and write to it. This circumvents the need for setting code pages which don't
always work and have to be reset when the program has been completed. It would
also be ideal to have timeout support for reading.

It should not throw exceptions if a console has not been attached. Instead,
completion with no failure would be more desirable in the cases such as in a
GUI program.

This bug ticket represents a solution to the following reports:

https://issues.dlang.org/show_bug.cgi?id=23312

https://issues.dlang.org/show_bug.cgi?id=6880

https://issues.dlang.org/show_bug.cgi?id=1448

https://issues.dlang.org/show_bug.cgi?id=12990

https://issues.dlang.org/show_bug.cgi?id=15761

--
Jun 20 2023