Api/dev

From Minux Wiki
Jump to navigation Jump to search

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.