3 ms·
I’ve recently spent some time working with terminal emulators in raw mode on macOS. While I chose to handle key events using escape codes, and found it seriousl
by emoII 3y ago
I’ve recently spent some time working with terminal emulators in raw mode on macOS. While I chose to handle key events using escape codes, and found it seriously difficult (even gave up) to process the shift modifier key. However, I came across xquartz [1], which seems to do similar things as mentioned in the article. Would detecting shift key state have been trivial using such a library?
[1] https://github.com/XQuartz/XQuartz https://github.com/XQuartz/XQuartz
- lmz 3y agoYes but you'd be operating outside the terminal "API" of codes flowing into stdin.