Skip to content

Commit

Permalink
Instead of clearing the screen for each new frame, simply scroll the …
Browse files Browse the repository at this point in the history
…new frame to the top of the terminal viewport. This keeps all past frames present and scrollable into view by scrolling up.

Resolves #5.
  • Loading branch information
fractaledmind committed Oct 8, 2024
1 parent 84c1d22 commit 4ce1ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prompts/content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def jump_cursor_to_top
end

def erase_down
OUTPUT.print "\e[J"
OUTPUT.print "\e[2J\e[H"
end
end
end

0 comments on commit 4ce1ce1

Please sign in to comment.