escpos / escpos

A ruby implementation of ESC/POS (thermal) printer command specification.
https://github.com/escpos/escpos
102 stars 45 forks source link

export `to_escpos` as hexadecimal chars. #12

Closed martinGerez closed 2 years ago

martinGerez commented 3 years ago

Is it any way to get characters like HW_INIT, CTL_CR, etc, as Hexadecimal (something like ' "\x1B", instead of"\e") when I run#to_escpos`?

svoboda-jan commented 2 years ago

Not as part of the gem, but there are many ways in ruby to achieve that.