python_functions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
python_functions [2019/03/06 18:05] – [Function List A to Z] g00r00 | python_functions [2020/09/12 17:00] – g00r00 | ||
---|---|---|---|
Line 17: | Line 17: | ||
==== Output Functions ==== | ==== Output Functions ==== | ||
- | ^ Function | + | ^ Function |
- | | [[python_functions# | + | | [[python_functions# |
- | | [[python_functions# | + | | [[python_functions# |
- | | [[python_functions# | + | | [[python_functions# |
- | | [[python_functions# | + | | [[python_functions# |
+ | | [[python_functions# | ||
+ | | [[python_functions# | ||
+ | | [[python_functions# | ||
+ | |||
+ | === Function: PWRITE === | ||
+ | |||
+ | |||
+ | Syntax: pwrite (string) | ||
+ | |||
+ | This function accepts a string parameter and will send the contents of the | ||
+ | string to the user, processing any pipe color codes properly but ignoring other | ||
+ | MCI codes. | ||
+ | |||
+ | Example: | ||
+ | |||
+ | rwrite(" | ||
+ | |||
+ | The above example will print " | ||
+ | that the MCI code containing the user name was not translated. | ||
+ | |||
+ | === Function: PWRITELN === | ||
+ | |||
+ | Syntax: pwriteln (string) | ||
+ | |||
+ | This function accepts a string parameter and will send the contents of the | ||
+ | string to the user, processing any pipe color codes properly but ignoring other | ||
+ | MCI codes. | ||
+ | |||
+ | Example: | ||
+ | |||
+ | pwriteln(" | ||
+ | |||
+ | The above example will print " | ||
+ | that the MCI code containing the user name was not translated. | ||
=== Function: RWRITE === | === Function: RWRITE === | ||
Line 53: | Line 88: | ||
The above example will print " | The above example will print " | ||
user and then move the cursor to the next line. | user and then move the cursor to the next line. | ||
+ | |||
+ | === Function: SHOWFILE === | ||
+ | |||
+ | Syntax: showfile (filename, baudrate, allowpause, allowabort, onlynew) : boolean | ||
+ | | ||
+ | This function accepts the filename string followed by several boolean | ||
+ | options represented as 1 for true or 0 for false. | ||
+ | | ||
+ | The filename parameter can be a base filename such as " | ||
+ | will calculate the file extension based on the user's terminal settings | ||
+ | and random display file system. | ||
+ | Mystic will not attempt to do any calculation based on terminal or | ||
+ | random files. | ||
+ | excluded it will display from the current theme' | ||
+ | a theme that is inherited by the current theme. | ||
+ | | ||
+ | The baudrate parameter contains the baudrate that will be emulated when | ||
+ | the file is displayed, or it can be set to zero for full speed. | ||
+ | | ||
+ | The allowpause parameter can be set to 1 to allow screen pausing | ||
+ | | ||
+ | The allowabort parameter can be set to 1 to allow aborting display | ||
+ | | ||
+ | The onlynew parameter can be set to 1 to display the file only if its | ||
+ | modification date is newer than the user's last call. | ||
+ | | ||
+ | The showfile function returns a TRUE result if the file was found and | ||
+ | displayed or false if not. | ||
+ | | ||
+ | Example: | ||
+ | | ||
+ | showfile(" | ||
+ | showfile(" | ||
=== Function: WRITE === | === Function: WRITE === | ||
Line 99: | Line 167: | ||
* access | * access | ||
+ | * acsnogroup | ||
* backspace | * backspace | ||
* charxy | * charxy | ||
+ | * dated2u | ||
+ | * datestr | ||
+ | * dateu2d | ||
* delay | * delay | ||
+ | * fl_close | ||
+ | * fl_found | ||
+ | * fl_getdesc | ||
+ | * fl_getfile | ||
+ | * fl_open | ||
+ | * fl_prev | ||
+ | * fl_next | ||
+ | * fl_seek | ||
+ | * flush | ||
* getcfg | * getcfg | ||
* getfbase | * getfbase | ||
Line 112: | Line 193: | ||
* getmgroup | * getmgroup | ||
* getmgroupid | * getmgroupid | ||
+ | * getnetaddr | ||
* getprompt | * getprompt | ||
* getstr | * getstr | ||
Line 117: | Line 199: | ||
* getuserid | * getuserid | ||
* getyn | * getyn | ||
- | * gotoyn | + | * gotoxy |
* keypressed | * keypressed | ||
* logerror | * logerror | ||
Line 131: | Line 213: | ||
* msg_prev | * msg_prev | ||
* msg_seek | * msg_seek | ||
+ | * msg_stats | ||
* onekey | * onekey | ||
* param_count | * param_count | ||
* param_str | * param_str | ||
- | * pwrite | + | * purgeinput |
- | * pwriteln | + | * [[python_functions# |
+ | * [[python_functions# | ||
* [[python_functions# | * [[python_functions# | ||
* [[python_functions# | * [[python_functions# | ||
* setpinfo | * setpinfo | ||
- | * showfile | + | * setprompt |
+ | * [[python_functions# | ||
* shutdown | * shutdown | ||
* stuffkey | * stuffkey |
python_functions.txt · Last modified: 2023/01/20 01:57 by g00r00