Given the following, how do I send escape codes to print?

for _, line := range lines {
fmt.Fprintf(p, "%s\r\n", line)
}

How do I send escape sequences using the above print command?

Below is a C# example:

output = Chr(&H1D) & "V" & Chr(66) & Chr(0);

I want to send the escape codes to a receipt printer to control the perform 
cetrain functions.

Some commands include:
ESC "J" 4  <--Feed paper 

 GS "!" 0x11  <-- change character size

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/b420e7fc-55c4-452c-822e-e84a3b96da85n%40googlegroups.com.

Reply via email to