deadpixi / mtm

Perhaps the smallest useful terminal multiplexer in the world.
1.12k stars 53 forks source link

Document NUKE. Scroll to the bottom so the cursor is always visible afterward. #79

Open dpeschel opened 3 weeks ago

dpeschel commented 3 weeks ago

Add an item for k in mtm.1, including the scroll to the bottom described below.

In mtm.c: With the existing code, if you scroll back and then type Ctrl-G k, you are still scrolled back, looking at an empty history with no visible cursor. But if you scroll to the end and then type Ctrl-G k, you see an empty window including the cursor. That makes more sense to me.

With this change, you always see an empty window including the cursor.