# How to send ESC/POS commands to a printer

**URL:** https://community.thunkable.com/t/how-to-send-esc-pos-commands-to-a-printer/2764423
**Category:** Questions about Thunkable X
**Created:** [December 31, 2023, 1:06pm UTC](https://community.thunkable.com/t/how-to-send-esc-pos-commands-to-a-printer/2764423 "2023-12-31T13:06:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)
#### Post date: [December 31, 2023, 1:06pm UTC](https://community.thunkable.com/t/how-to-send-esc-pos-commands-to-a-printer/2764423/1 "2023-12-31T13:06:41Z")

</div>

How would I format ESC/POS commands to send to a printer so that I can get effects like **bold** , _italic_, underline, etc.?

Thanks  
Steve

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [December 31, 2023, 4:15pm UTC](https://community.thunkable.com/t/how-to-send-esc-pos-commands-to-a-printer/2764423/2 "2023-12-31T16:15:56Z")

</div>

I don’t know the specific device being used here but I found this long list of commands for an Epson ESC/POS printer here, does your device have something similar?

> **[epson-biz.com - Epson](https://reference.epson-biz.com/modules/popup/index.php/termsofuse_reference/index.php?m=ref_escpos&cid=72&PHPSESSID=3fcde73469c136b7465c0f2090063d04)**
>
> Epson POS and Discproducer Products Technical Information

It looks like if you can find the list in the documentation for the device, we could see how to send the commands for different types of formatting.

---

<div class="post-metadata">

### Author: ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)
#### Post date: [January 1, 2024, 12:59am UTC](https://community.thunkable.com/t/how-to-send-esc-pos-commands-to-a-printer/2764423/3 "2024-01-01T00:59:00Z")

</div>

Ok, I have the codes for underline which are 1B 2D 01 to turn on and 1B 2D 00 to turn off.

Have tried this but it doesn’t work. I am doing this correctly??

 ![2023-12-31 20 46 28](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/5/a525bb31bc534df821311d0f76893c15ca949314.png)

Thanks  
Steve

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [January 2, 2024, 4:00pm UTC](https://community.thunkable.com/t/how-to-send-esc-pos-commands-to-a-printer/2764423/4 "2024-01-02T16:00:32Z")

</div>

You may need to add in a another empty string between each each number or add a space after 1B and 2D since as it is now, this would print out as 1B2D01.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [April 1, 2024, 4:01pm UTC](https://community.thunkable.com/t/how-to-send-esc-pos-commands-to-a-printer/2764423/5 "2024-04-01T16:01:06Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
