The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Avoid Accidentally Clearing Text From An iTerm2 Window

TODO: Pull subtitle into page object

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Avoid Accidentally Clearing Text From An iTerm2 Window

Every now and then I'd hit a key combination in iTerm2
that would clear the text off the screen. It was still
there. It would just be mostly invisible. I couldn't
figure out what I did or how to get it back. 

The issue was accidentally 
hitting <<kbd|CTRL>><<kbd|k>>. The solution I'm using is to 
tell iTerm2 to ignore that key combo. This is
done in the preference under the "Keys" section
in the "Key Bindings" tab. 

Click the plus to the left of "Presets..." which
opens the dialog where you can set the key.


I didn't run into that issue often, but it was
jarring when I did. Especially on stream. Now, 
I don't have to worry about it. 


-- ref
-- title: With tmux on OSX, how can I make command+k clear more gracefully -- Answer
-- url: https://superuser.com/a/1036168/85635

This is the post that got me to the solution. It suggests
remapping to a different clear command. 

-- ref
-- title: Note on redrawing tmux
-- url: https://superuser.com/a/611382/85635

This answer mentions you can use <<kbd|LEADER>><<kbd|r>> to 
redraw the screen in tmux. (Where LEADER is <<kbd|CTRL>><<kbd|b>>
by default)



-- categories
-- Command Line 
-- iTerm2 
-- tmux 

-- metadata
-- date: 2023-08-07 13:09:29
-- id: 2tfjovyu
-- site: aws
-- type: post
-- status: published