CLI like card on dashboard?

Hi all,
I’m using a 3rd party integration for my 3D printer (GitHub - Lyr3x/hass-Duet3D: Home Assistant Duet3D custom integration)
The integration allows for “gcodes” to be sent to the 3D printer via a service. I could of course make a button that sends the required Gcode, but as there will also be responses to the codes sent, it would be nice to have a CLI like interface where I can type and sent the codes and also see the response, similar to this: (Duet Web Control Interface)

I assume there’s no ready-made integration for this? How would one go about making a custom card for this?