How does a receipt printer work?

He would be