Ascii Flag added to Print and PrintN functions

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
ElementE
Enthusiast
Enthusiast
Posts: 139
Joined: Sun Feb 22, 2015 2:33 am

Ascii Flag added to Print and PrintN functions

Post by ElementE »

Request:
An optional Ascii flag parameter added to the functions Print and PrintN.
This flag would be similar to the parameter flags in the current WriteString and WriteStringN functions.
This would give PureBasic native support in writing Ascii characters to the console.

Reason for Request:
The output of console mode programs is often redirected, or pipped, to files or other programs that require Ascii data only.
When PureBasic compiler mode becomes Unicode only, characters written to the console will be Unicode.

Reference:
http://www.purebasic.fr/english/viewtop ... 13&t=63645
Think Unicode!