escposify 0.6.2

A ESC/POS driver for Rust ## Minimum Rust version policy (MSRV) This crate's minimum supported rustc version is 1.46.0.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::io::{self, stdout};

use escposify::printer::Printer;

fn main() -> io::Result<()> {
    let mut printer = Printer::new(stdout(), None, None);

    printer
        .chain_feed(2)?
        .chain_text("The quick brown fox jumps over the lazy dog")?
        .chain_text("敏捷的棕色狐狸跳过懒狗")?
        .chain_feed(1)?
        .flush()
}