xtermjs / xterm.js

A terminal for the web
https://xtermjs.org/
MIT License
16.99k stars 1.59k forks source link

Added macOptionIsEscape according to #4904 #5033

Open louis-baranger opened 2 months ago

louis-baranger commented 2 months ago

Added the option to use the option key on MacOS for Escape-Codes according to https://en.wikipedia.org/wiki/C0_and_C1_control_codes. The user input is converted to ESC+ as shown in the first column of the ISO/IEC 6429 and RFC 1345 C1 control codes table.

I might have misinterpreted what the issue meant by "[using] the option key on MacOS for Escape-Codes", so if that is the case, let me know and I will make the changes.