analog-terminal-bell icon indicating copy to clipboard operation
analog-terminal-bell copied to clipboard

Alternate iterm interfaces

Open kbrock opened this issue 3 years ago • 5 comments

Instead of using a custom build, iTerm2 suggests that you can use their python

Was your thought to use circuit python and that api to control the bell?

Would be nice to not have to extend iTerm

kbrock avatar Sep 18 '20 15:09 kbrock

I don't think the bell was previously available via the Python API, but they made it available here: https://github.com/tenderlove/analog-terminal-bell/issues/4

I think it's possible via the nightly build now so we don't need to have a custom iTerm2 build anymore.

tenderlove avatar Sep 18 '20 17:09 tenderlove

ok, so iterm has the ability to kick off a script if it matches a regular expression

that may be another viable solution

kbrock avatar Sep 22 '20 22:09 kbrock

oh geez, I linked to the wrong thing. I don't think we need to do any regexes. Upstream added the ability for us to detect the bell in a python script here: https://github.com/gnachman/iTerm2/pull/428#issuecomment-691627221

I'll try to hook it up at some point, but the script I linked to just need to have Circuit Python integrated in and it should work.

tenderlove avatar Sep 23 '20 16:09 tenderlove

Hey you -- Mr. Tender Love Making,

Thanks for making dumb projects like this.

Tender

a person who looks after someone else or a machine or place: Alexei signaled to one of the engine tenders. -- apple tender3 example 3

Love

a great interest and pleasure in something -- apple example 2

Making

... technology based DIY... revels in the creating of new devices... supports open source... (read the whole paragraph) -- https://en.wikipedia.org/wiki/Maker_culture

kbrock avatar Dec 08 '20 20:12 kbrock

I don't think we need to do any regexes

phew. Because regexes and yea. regexes. https://xkcd.com/1171/

kbrock avatar Dec 08 '20 20:12 kbrock