Api/dev: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
the dev [[api]] is part of the [https://wolfpak.vtchost.com/forum/viewtopic.php?f=17&t=156&sid=28e78b287ed277219bad460a346dced7 devlib] package and is used to manipulate devices. | the dev [[api]] is part of the [https://wolfpak.vtchost.com/forum/viewtopic.php?f=17&t=156&sid=28e78b287ed277219bad460a346dced7 devlib] package and is used to manipulate devices. | ||
'''terminal options:''' | '''terminal options:''' | ||
[[Api/dev.colortranslate()|dev.colortranslate()]] - used by other api's to translate color codes | [[Api/dev.colortranslate()|dev.colortranslate()]] - used by other api's to translate color codes | ||
Line 15: | Line 18: | ||
'''printer options:''' | '''printer options:''' | ||
[[Api/dev.printfile()|dev.printfile()]] | [[Api/dev.printfile()|dev.printfile()]] - splits a file into pages and prints them | ||
[[Api/dev.prepfile()|dev.prepfile()]] - cuts all lines longer then 25 characters to nextline for printing. |
Latest revision as of 15:31, 7 October 2024
the dev api is part of the devlib package and is used to manipulate devices.
terminal options:
dev.colortranslate() - used by other api's to translate color codes
dev.colorset() - set text and background colors for following prints
dev.colorreset() - reset the terminal colors
dev.colorprint() - prints a single string in color
dev.colorwrite() - writes a single string in color
printer options:
dev.printfile() - splits a file into pages and prints them
dev.prepfile() - cuts all lines longer then 25 characters to nextline for printing.