VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   SecureCRT on the Mac (https://forums.vandyke.com/forumdisplay.php?f=24)
-   -   How to use the Terminal CMD-K to clear console (https://forums.vandyke.com/showthread.php?t=13602)

ccasares 06-26-2019 04:22 PM

How to use the Terminal CMD-K to clear console
 
Hi,

I heavily use CMD-K key shortcut to fully clear my console. It does work in Terminal or iTerm2. However CMD-K is already taken by SecureCRT for QuickConnect.

I'm fine by changing the combination from CMD-K to any other unused one, but I have no idea about which Octal codes should be sent to the terminal to perform the action.

Any idea?

Thanks

bgagnon 06-26-2019 04:58 PM

Hi ccasares,

You can map menu functions to a hotkey in SecureCRT.
  • Go to Terminal / Emulation / Mapped Keys category of Session Options
  • Choose Map a Key...
  • Press desired key combo
  • Under Function choose Menu Function from the dropdown
  • Under Menu Function choose MENU_CLEAR_SCREEN
There's also a MENU_CLEAR_SCROLLBACK and a MENU_CLEAR_SCREEN_AND_SCROLLBACK available.

You can make this change to all sessions via Default Session mechanism.

Here's also a video about Default Session.

ccasares 06-26-2019 11:16 PM

So easy!!

Thanks so much, Brenda!


All times are GMT -6. The time now is 01:30 AM.