Closed igorocampos closed 5 months ago
@lukevp as a follow-up to this PR, I think we could have another property on the emitter, called Columns
, so people can set the column count they wish to use. Leveraging that, we could have things like a Horizontal full line command, print a table command, and even another command that aligns text to both left and right in the same line (this is especially useful for when dealing with product description and price).
See #210 and #211
looks good to me, thanks @igorocampos! great work!
Based on discussions on #256 and #88 I have updated the README.md to show how to print Chinese Characters.
I also added a new property in the Emitter class, so folks can set (and change) their Emitter Encoding at will instead of Encoding all strings before sending to the printer with
Write()
. This will also enable usage ofPrint()
command from Emitter which contains cross-OS new line treatment (I also revamped it to use Regex instead of 2 Replace Alls).