Add Boll to Print, update Print format Doc

This commit is contained in:
Slapparoo 2022-12-20 16:01:29 +13:00
parent 777203d952
commit 23cb557183
2 changed files with 11 additions and 0 deletions

View file

@ -52,6 +52,12 @@ $FG,2$"%Z"$FG$ $LK,"DefineListLoad",A="MN:DefineListLoad"$() subentry. Pass sub_
$FG,2$"%Q"$FG$ convert "\" to "\\" and quote to backslash quote. (For use in creating strs in strs.) $FG,2$"%Q"$FG$ convert "\" to "\\" and quote to backslash quote. (For use in creating strs in strs.)
$FG,2$"%q"$FG$ rev a $FG,2$"%Q"$FG$. $FG,2$"%q"$FG$ rev a $FG,2$"%Q"$FG$.
$FG,2$"%x"$FG$ Hex number.
$FG,2$"%b"$FG$ Binary number$FG$.
$FG,2$"%o"$FG$ Bool$FG$.
$ID,-2$ $ID,-2$
$FG,5$$TX+CX,"Print Family"$$FG$ $FG,5$$TX+CX,"Print Family"$$FG$

View file

@ -438,6 +438,11 @@ to avoid this.
throw('StrPrint'); throw('StrPrint');
ptr = argv[cur_arg++]; ptr = argv[cur_arg++];
break; break;
case 'o': // Bool
if (cur_arg >= argc)
throw('StrPrint');
if (argv[cur_arg++]) ptr = "TRUE"; else ptr = "FALSE";
break;
case 'S': case 'S':
if (cur_arg >= argc) if (cur_arg >= argc)