[bug] A0 characters in the first line
See original GitHub issueUpdated 2022-11-09: With the latest version 1.13.0, you may not run into these issues any more, just check out receiptio and add an option -p generic
, everything should be normal now.
Hi team, thanks for the great work in advance!
I would like to report a bug here, check below as a reproduction repository:
https://github.com/Ynewtime/receiptline-report
Basic description: I copied the code directly from https://github.com/receiptline/receiptio and tried to print out something, but there is always an A0
characters in the first line:
const receiptio = require('receiptio');
const receiptmd = `^^^RECEIPT
12/18/2021, 11:22:33 AM
Asparagus | 1| 1.00
Broccoli | 2| 2.00
Carrot | 3| 3.00
---
^TOTAL | ^6.00`;
receiptio.print(receiptmd, '-d 192.168.192.168 -p escpos -c 42').then(result => {
console.log(result);
});
I switched another printer model but it appeared again.
So I suspect if it was related to the receiptline codebase.
Thanks again for the great work!
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Unexpected latex error: Text line contains an invalid character
A funny symbol that I can't read has just been input. Continue and I'll forget it ever happened. ! Text line contains an...
Read more >Trying to retrieve first 5 characters from string in bash error?
I'm trying to retrieve the first 5 characters from a string and but keep getting a Bad substitution error for the string manipulation...
Read more >A quick tale about FEFF, an invisible UTF-8 character that ...
A quick tale about FEFF, an invisible UTF-8 character that wrecked our CSV files.
Read more >Some characters missing or cut off when displayed on screen ...
Some characters missing or cut off when displayed on screen in Word · Underscore · Character with an ascender · Character with a...
Read more >fgets() — Read a String - IBM
The fgets() function reads characters from the current stream position up to and including the first new-line character (\n), up to the end...
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
Just review the latest 1.13.0 commits, and boom! It works amazingly great, now all the custom commands I made for my printers can be removed, just by adding an option in receiptio:
-p generic
! Also I tested the QR code support and it’s also there! Really amazing work, thank you teams.Really helpful! Thanks, I’ve customized the commands and it works great!