Re: sprintf() query

new topic     » goto parent     » topic index » view thread      » older message » newer message
_tom said...

should the first argument be "output direction", when it is almost always "1" ?

Erm, "output device". Making printf("hi\n") work as printf(1,"hi\n") (and leaving printf(fn, "hi\n") undamaged) is a perfectly good and none-too-difficult suggestion.

_tom said...

should an output routine be able to output utf32 content to a utf8 terminal?

Unquestionably. The big roadblock on that, I think, is automatically configuring/detecting a Windows console to be utf8 (chcp 65001 or chcp 28591) and with a truetype font, rather than with printf() itself.

_tom said...

can the Phix string allow for a universal output routine that shows text and numbers "as expected"?

Not quite sure what you mean. Examples?

_tom said...

is it possible to create a new set of output routines that breaks from the DOS legacy?

Maybe. It will help no-one to deliberately break legacy code. As above, better detection is probably the key, and/or you can always create eg printfN().

Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu