felixse / FluentTerminal

A Terminal Emulator based on UWP and web technologies.
GNU General Public License v3.0
9.15k stars 442 forks source link

"clear -x" clears scrollback buffer #939

Open vivekananthrp opened 2 years ago

vivekananthrp commented 2 years ago

I am using FluentTerminal v0.7.5.0 in Windows 10 (Version 10.0.19042 Build 19042) with WSL2 Ubuntu 20.04.

The default behavior of keybinding "ctrl+l" or "ctrl+alt+l" clears the complete screen, causing loss of previous information (scrollback buffer) in the terminal.

The command "clear -x" (used for not clearing terminal's scrollback buffer) fails to work as expected. Either it clears the scrollback buffer or does an incomplete clear of the scrollback buffer.

The command "clear -x" works as expected in windows terminal. Attaching a screen recording of the issue. Is there any way to retain the scrollback buffer?

https://user-images.githubusercontent.com/11735154/126473930-e5e03282-b516-4bea-8af2-82938d771b70.mp4