Commit 82dd0b8b authored by Andrey's avatar Andrey

Added PosCodeTable enum. Updated readme

parent e76fb722
# esc_pos_printer
![Pub](https://img.shields.io/pub/v/esc_pos_printer.svg)
The library allows to print receipts using a ESC/POS (usually thermal) network printer.
[[pub.dev page]](https://pub.dev/packages/esc_pos_printer)
......
......@@ -39,3 +39,6 @@ const cPos = '$esc\$'; // Set absolute print position [nL] [nH]
// Print
const cFeedN = '${esc}d'; // Print and feed n lines [N]
const cReverseFeedN = '${esc}e'; // Print and reverse feed n lines [N]
// Code table
const cCodeTable = '${esc}t'; // Select character code table [N]
\ No newline at end of file
......@@ -39,3 +39,32 @@ class PosBeepDuration {
static const beep400ms = PosBeepDuration._internal(8);
static const beep450ms = PosBeepDuration._internal(9);
}
class PosCodeTable {
const PosCodeTable._internal(this.value);
final int value;
/// PC437 - U.S.A., Standard Europe
static const pc437 = PosCodeTable._internal(0);
/// Katakana
static const katakana = PosCodeTable._internal(1);
/// PC850 Multilingual
static const pc850 = PosCodeTable._internal(2);
/// PC860 - Portuguese
static const pc860 = PosCodeTable._internal(3);
/// PC863 - Canadian-French
static const pc863 = PosCodeTable._internal(4);
/// PC865 - Nordic
static const pc865 = PosCodeTable._internal(5);
/// PC866 - Cyrillic #2
static const pc866 = PosCodeTable._internal(17);
/// Space page
static const spacePage = PosCodeTable._internal(255);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment