How to remap clear buffer to delete all lines in Iterm2?

3

2

I would like to map the CMD K (clear buffer) keyboard shortcut to use CTRL L (delete all lines).

I have tried sending txt (ex: clear) or hex values, but it only pastes the text in the buffer and I still have to hit the Enter button.

Is there a way to do this?

Nathan

Posted 2016-08-15T14:55:11.427

Reputation: 133

Answers

3

Select Send Hex Code and enter 0x230c which is CTRL + L.

Screenshot for sending CTRL+L when pressing CMD+K

Zina

Posted 2016-08-15T14:55:11.427

Reputation: 1 855