Module: Driver::Epson::EscPos

Defined in:
app/models/extface/driver/epson/esc_pos.rb

Instance Method Summary collapse

Instance Method Details

#autocut(partial = true) ⇒ Object

(Function B)



5
6
7
8
9
# File 'app/models/extface/driver/epson/esc_pos.rb', line 5

def autocut(partial = true) # (Function B)
  # <GS> 'V' 0x65 x - Full-cut command
  # <GS> 'V' 0x66 x - Partial-cut command
  push partial ? "\x1D\x56\x65\x03" : "\x1D\x56\x66\x03"
end