Bug 24001 – Add console module to replace std.stdio

Status
NEW
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-06-20T07:02:04Z
Last change time
2024-12-01T16:41:29Z
Assigned to
No Owner
Creator
Richard (Rikki) Andrew Cattermole
See also
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
Moved to GitHub: phobos#9859 →

Comments

Comment #0 by alphaglosined — 2023-06-20T07:02:04Z
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
Comment #1 by robert.schadek — 2024-12-01T16:41:29Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9859 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB