But to enable these escape codes we need to enable them in the driver. In case of macOS this will be SmartCardServices and the file that I should edit is: /usr/libexec/SmartCardServices/drivers/ifd-ccid.bundle/Contents/Info.plist
I need to set ifdDriverOptions property to 0x0001.
This procedure was described in this helpful GitHub comment https://github.com/pokusew/nfc-pcsc/issues/13
I tried to follow other instructions provided there but I hit the wall with read-only file system error.
I wonder if there is an idiomatic way to change these settings.
Why this is important? Sending new configuration via escape command is the only way to un-brick terminal that was (by mistake) wrongly configured.