epson

package
v1.0.0-rc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package epson implements the protocol used by most thermal printer, also commonly referred to as ESC or POS commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CutPaper

func CutPaper(buf io.Writer)

CutPaper will cut the paper if the printer supports it.

func Image

func Image(buf io.Writer, image image.Image)

Image converts a image to the printer "GS v 0: Print raster image" command and adds it to the printer buffer.

func InitPrinter

func InitPrinter(buf io.Writer)

InitPrinter will re-init the printer and aborts any outstanding commands.

func LineBreak

func LineBreak(buf io.Writer)

LineBreak adds a line break to the printer buffer.

func SetStandardMode

func SetStandardMode(buf io.Writer)

SetStandardMode will set the printer into the standard mode. In this mode the printer will instantly print all data it receives.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL