module Escpos
Constants
- BARCODE_CODE39
- BARCODE_EAN13
- BARCODE_EAN8
- BARCODE_FONT_A
- BARCODE_FONT_B
- BARCODE_HEIGHT
- BARCODE_ITF
- BARCODE_NW7
- BARCODE_TXT_ABV
- BARCODE_TXT_BLW
- BARCODE_TXT_BTH
- BARCODE_TXT_OFF
Barcodes
- BARCODE_UPC_A
- BARCODE_UPC_E
- BARCODE_WIDTH
- CD_KICK_2
Cash Drawer
- CD_KICK_5
- CP_CP1250
- CP_CP1250_ALT
- CP_CP1251
- CP_CP1253
- CP_CP1253_ALT
- CP_CP1254
- CP_CP1254_ALT
- CP_CP1256
- CP_CP1257
- CP_CP1258
- CP_CP437
- CP_CP737
- CP_CP737_ALT
- CP_CP775
- CP_CP775_ALT
- CP_CP847
- CP_CP850
- CP_CP856
- CP_CP857
- CP_CP857_ALT
- CP_CP858
- CP_CP860
- CP_CP862
- CP_CP863
- CP_CP864
- CP_CP865
- CP_CP866
- CP_CP874
- CP_CP885
- CP_ISO8859_15
- CP_ISO8859_2
- CP_ISO8859_2_ALT
- CP_ISO8859_3
- CP_ISO8859_4
- CP_ISO8859_5
- CP_ISO8859_6
- CP_ISO8859_7
- CP_ISO8859_8
- CP_ISO8859_9
- CP_ISO8859_9_ALT
- CP_MACCYRILLIC
- CP_SET
Code Pages
- CTL_CR
- CTL_FF
- CTL_HT
- CTL_LF
Feed control sequences
- CTL_VT
- HW_INIT
Printer
hardware- HW_RESET
- HW_SELECT
- PAPER_CUT_A
- PAPER_CUT_B
- PAPER_FULL_CUT
Paper
- PAPER_PARTIAL_CUT
- TXT_2HEIGHT
- TXT_2WIDTH
- TXT_4SQUARE
- TXT_ALIGN_CT
- TXT_ALIGN_LT
- TXT_ALIGN_RT
- TXT_BOLD_OFF
- TXT_BOLD_ON
- TXT_COLOR_BLACK
- TXT_COLOR_RED
- TXT_FONT_A
- TXT_FONT_B
- TXT_INVERT_OFF
- TXT_INVERT_ON
- TXT_NORMAL
Text formating
- TXT_UNDERL2_ON
- TXT_UNDERL_OFF
- TXT_UNDERL_ON
- VERSION
Public Class Methods
sequence(*arr_sequence)
click to toggle source
Transforms an array of codes into a string
# File lib/escpos.rb, line 112 def sequence(*arr_sequence) arr_sequence.flatten.pack('U*') end
Private Instance Methods
sequence(*arr_sequence)
click to toggle source
Transforms an array of codes into a string
# File lib/escpos.rb, line 112 def sequence(*arr_sequence) arr_sequence.flatten.pack('U*') end