Api/dev: Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
No edit summary
Tags: Reverted Visual edit
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 18: 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.
'''File and string options:'''
 
[[Api/dev.countline()|dev.countline()]] - used to count how many lines a files has
 
[[Api/dev.findline()|dev.findline()]] - used to check if a string is present in a file
 
[[Api/dev.findfile()|dev.findfile()]] - searches for a file or folder name on the disk
 
[[Api/dev.printline()|dev.printline()]] - retrieves a specific line from a file

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.