- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
08-03-2023 01:29 AM
Hello,
I have a use-case in my SSH/CLI based CPM plugin where i need to send "ctrl+c" keyboard shortcut to "exit" currently opened program/menu.
I didn't found anything in the documentation about keyboard shortcuts - so I'm wondering if they are supported? Did anyone of you manage to solve similar problem? if so how would the line of code looks like for sending keyboard shortcut ?
Best Regards,
Kamil.
08-03-2023 02:07 AM
Try sending \x03 which means you would have an state in your Process file that looks like
SendCtrlC=\x03Note: I haven't tried this myself so I'd be interested to see if this works.
08-03-2023 02:41 AM
Hello,
Thank you for the suggestion - i have tried it but it doesnt seems to work as intended:
After sending the \x03 i'm still in the menu. (where selecting ctrl+c manually in putty session does close the menu).
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

