Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you plz give some example code to use? #1

Open
red010182 opened this issue Apr 15, 2017 · 2 comments
Open

Could you plz give some example code to use? #1

red010182 opened this issue Apr 15, 2017 · 2 comments

Comments

@red010182
Copy link

red010182 commented Apr 15, 2017

I'm using a mac and totally new to CUPS and thermal printer(support ESC/POS).

I installed this lib, and then, how can I print something?

I use echo hi | lp to print, it turns out that the printer prints lots of things like source code, really a lot. Needless to say printing a file. Hope I can find the answer here.

Thank you.

@chunlinyao
Copy link
Owner

This is a CUPS driver, so if you installed a printer and use this driver, normal print command will work. no special source code is required. If printer output some garbage, maybe the driver sent some commands your printer don't understand. You should check your printer's manual if all command used by this driver is supported by your printer.

@red010182
Copy link
Author

red010182 commented Apr 16, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants