Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
esc_pos_print_plus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dio Maulana
esc_pos_print_plus
Commits
32edba1d
Commit
32edba1d
authored
Jun 12, 2019
by
Andrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added main commands
parent
4be7fe63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
commands.dart
lib/src/commands.dart
+29
-0
No files found.
lib/src/commands.dart
0 → 100644
View file @
32edba1d
const
esc
=
'
\
x1B'
;
const
gs
=
'
\
x1D'
;
// Miscellaneous
const
cInit
=
'
$esc
@'
;
// Initialize printer
// Mech. Control
const
cCut
=
'
${gs}
V0'
;
// Cut paper
const
cCutFull
=
'
${esc}
i'
;
// Execute paper full cut
const
cCutPart
=
'
${esc}
m'
;
// Execute paper partial cut.
// Character
const
cReverseOn
=
'
${gs}
B1'
;
// Turn white/black reverse print mode on
const
cReverseOff
=
'
${gs}
B0'
;
// Turn white/black reverse print mode off
const
cSizeN
=
'
$gs
!'
;
// Select character size [N]
const
cUnderlineOff
=
'
$esc
-0'
;
// Turns off underline mode
const
cUnderline1dot
=
'
$esc
-1'
;
// Turns on underline mode (1-dot thick)
const
cUnderline2dots
=
'
$esc
-2'
;
// Turns on underline mode (2-dots thick)
const
cBoldOn
=
'
${esc}
E1'
;
// Turn emphasized mode on
const
cBoldOff
=
'
${esc}
E0'
;
// Turn emphasized mode off
// Print Position
const
cAlignLeft
=
'
${esc}
a0'
;
// Left justification
const
cAlignCenter
=
'
${esc}
a1'
;
// Centered
const
cAlignRight
=
'
${esc}
a2'
;
// Right justification
// Print
const
cFeedN
=
'
${esc}
d'
;
// Print and feed n lines [N]
const
cReverseFeedN
=
'
${esc}
e'
;
// Print and reverse feed n lines [N]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment