react-terminal-ui icon indicating copy to clipboard operation
react-terminal-ui copied to clipboard

Click callback for window buttons

Open Alvinn8 opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. There is no way to add click listeners to the macOS-style buttons on the terminal window.

Describe the solution you'd like A way to pass a callback for when the buttons are pressed to the Terminal component.

Describe alternatives you've considered Fork the project and add the listeners.

Additional context An example use case is closing, minimizing and maximizing the terminal window when the buttons are passed.

Alvinn8 avatar Jul 04 '22 07:07 Alvinn8

Thank you for taking the time to submit an Issue! You should get a response to this issue within one to two days.

github-actions[bot] avatar Jul 04 '22 07:07 github-actions[bot]

+1 For this

nfacha avatar Jul 04 '22 08:07 nfacha

This should be relatively easy to implement. The buttons are currently rendered as a CSS pseudo element. We'd have to change them to something like a HTML button element instead and add onClicks.

jonmbake avatar Jul 08 '22 10:07 jonmbake