How to make genral setting to find printer terminal with one command
See original GitHub issueI like the library but I can’t understand how to set a method with witch will connect to the terminal printer.If the printer is network based with Ip and port or the printer is connected to laptop/pc with a cable I am not very familiar with the connection types.I need this for a project witch the user can use what terminal printer he have.I need with one general setting the user can connect the printer.I am open to any suggestions.
If I use this example I need to change only the printer name value with the name of actual printer
PrintService printService = PrinterOutputStream.getPrintServiceByName("printerName");
PrinterOutputStream printerOutputStream = new PrinterOutputStream(printService);
EscPos escpos = new EscPos(printerOutputStream);
escpos.writeLF("Hello Wold");
escpos.feed(5);
escpos.cut(EscPos
if so what printers support can you give me live example for printer name
Issue Analytics
- State:
- Created 2 years ago
- Comments:22 (10 by maintainers)
Top Results From Across the Web
Command-Line Printer Administration - CUPS.org
The lpadmin command is used to create, modify, or delete a printer. The -p option specifies a printer to create or modify: lpadmin...
Read more >8. How to set things up - The Linux Documentation Project
To add a printer from the command-line the general syntax is lpadmin -p printer -E -v device -m ppd Lpadmin with the -p...
Read more >5.7. Command-Line Tools for the CUPS Printing System
To print a file, enter the System V style print command lp -d queuename file or a Berkeley style command like lpr -Pqueuename...
Read more >How to List Printers on an Ubuntu Command Line
1. Launch the Ubuntu Terminal application. · 2. Type "sudo cat /etc/cups/printers.conf" at the command prompt then press the "Enter" key. · 3....
Read more >Using lpadmin to Install Printers in macOS
If you want the script to go and get the respective printer driver ... for installing printers uses the lpadmin command in a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@anastaciocintra Thank you man that is awesome.I actually try one time to do for each loop in the builder but I don’t know why everything was red.But this is proper receipt.Thank you again. ps: I was missing a ; to can make the for loop
Sure man, we have some, for example map with streams, but I think that your algorithm is pretty good and I made some little trick format adjusts , congrats, you have made a good printed receipt work!