Binaries/printfile: Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
(Created page with "the printfile binary is part of the "devlib" program and used to print a file, it does not format the file for printing, it does split it into pages. lines longer then 25 characters fall off, the file should get pre-formatted first. '''usage:''' printfile filename '''output:''' splits the file into pages and prints these pages on an available printer. very early stage, requires a working printer to work.")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
the printfile [[Binaries|binary]] is part of the "devlib" program and used to print a file,
the printfile [[Binaries|binary]] is part of the "[https://wolfpak.vtchost.com/forum/viewtopic.php?f=17&t=156&sid=f09c48565ecc5c94e3042b9ad2f243f6 devlib]" program and used to print a file,
 
what does it do?
 
it takes your file, runs it trough "dev.prepfile" to cut every line longer then 25 characters to the next line, ensuring your page is not to wide
 
it then pushes this file to "dev.printfile" wich splits the file into pages and presents it to the printer for print.
 
while it does print every single character in the file, the formatting can get very weird, it is best to print suitable files.
 
the title argument tells the program how to name the prints.


it does not format the file for printing, it does split it into pages. lines longer then 25 characters fall off, the file should get pre-formatted first.




'''usage:'''
'''usage:'''


printfile filename
printfile filename title




Line 15: Line 24:




very early stage, requires a working printer to work.
 
'''eg:'''
 
"printfile /etc/man/apt.man" - prints the apt manual

Latest revision as of 23:14, 8 October 2024

the printfile binary is part of the "devlib" program and used to print a file,

what does it do?

it takes your file, runs it trough "dev.prepfile" to cut every line longer then 25 characters to the next line, ensuring your page is not to wide

it then pushes this file to "dev.printfile" wich splits the file into pages and presents it to the printer for print.

while it does print every single character in the file, the formatting can get very weird, it is best to print suitable files.

the title argument tells the program how to name the prints.


usage:

printfile filename title


output:

splits the file into pages and prints these pages on an available printer.


eg:

"printfile /etc/man/apt.man" - prints the apt manual