Documentation ¶
Index ¶
- Constants
- type Escpos
- func (e *Escpos) BanFeedButton(n uint8)
- func (e *Escpos) Barcode(barcode string, format int)
- func (e *Escpos) Beep(n uint8)
- func (e *Escpos) Cut()
- func (e *Escpos) Feed(params map[string]string)
- func (e *Escpos) FeedAndCut(params map[string]string)
- func (e *Escpos) Formfeed()
- func (e *Escpos) FormfeedD(n uint8)
- func (e *Escpos) FormfeedN(n uint8)
- func (e *Escpos) Image(params map[string]string, data string)
- func (e *Escpos) Init()
- func (e *Escpos) Linefeed()
- func (e *Escpos) Pulse()
- func (e *Escpos) Raster(width, height, bytesWidth int, img_bw []byte)
- func (e *Escpos) SetAlign(align string)
- func (e *Escpos) SetEmphasize(u uint8)
- func (e *Escpos) SetFont(font string)
- func (e *Escpos) SetFontSize(width, height uint8)
- func (e *Escpos) SetLineSpace(n ...uint8)
- func (e *Escpos) SetMoveX(x uint16)
- func (e *Escpos) SetReverse(v uint8)
- func (e *Escpos) SetRotate(v uint8)
- func (e *Escpos) SetUnderline(v uint8)
- func (e *Escpos) SetUpsidedown(v uint8)
- func (e *Escpos) Text(params map[string]string, data string)
- func (e *Escpos) Write(data string) (int, error)
- func (e *Escpos) WriteGBK(data string) (int, error)
- func (e *Escpos) WriteNode(name string, params map[string]string, data string)
- func (e *Escpos) WriteRaw(data []byte) (n int, err error)
Constants ¶
View Source
const (
GS8L_MAX_Y = 1662
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Escpos ¶
type Escpos struct { Verbose bool // contains filtered or unexported fields }
Escpos struct
func (*Escpos) BanFeedButton ¶
BanFeedButton 禁止面板按键 \x1Bc5n => ESC c 5 n n= 0, 1(禁止)
func (*Escpos) SetEmphasize ¶
SetEmphasize ... \x1BGn => ESC E n 设定/解除粗体打印 n = 0, 1
func (*Escpos) SetFontSize ¶
SetFontSize ... \x1D!n => GS ! n 设定字符大小 高度大于5倍时,打印机会挂掉,不知道为什么
func (*Escpos) SetLineSpace ¶
SetLineSpace ... \x1B3n => ESC 3 n 行间距n*0.125mm
func (*Escpos) SetReverse ¶
SetReverse ... GS B n 设定/解除反白打印模式 n = 0, 1
func (*Escpos) SetUnderline ¶
SetUnderline ... \x1B-n => ESC - n 设定/解除下划线 n = 0(解除), 1(1点粗), 2(2点粗)
func (*Escpos) SetUpsidedown ¶
SetUpsidedown ... \x1B{n => ESC { n 设置/解除颠倒打印模式 n = 0, 1
Click to show internal directories.
Click to hide internal directories.