ClearScreen should clear scrollback buffer as well, or PSReadLine should implement ClearDisplay

Aperta
#4,626 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp, powershell
Ambito
cli

Direzione di ricerca

Start by locating the existing ClearScreen entry point and the terminal-handling code in PSReadLine. Compare the requested clear-display behavior with the current screen-only behavior, then verify that the screen and scrollback are cleared or that an equivalent ClearDisplay command is available.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Issue-Enhancement Needs-Triage :mag:
Prerequisites
  • Write a descriptive title.
Description of the new feature/enhancement

The GNU readline has clear-display command since version 8.1, about four years.

clear-display (M-C-l)

Clear the screen and, if possible, the terminal’s scrollback buffer, then redraw the current line, leaving the current line at the top of the screen.

clear-screen (C-l)

Clear the screen, then redraw the current line, leaving the current line at the top of the screen.

Clearing only screen without scrollback is rather useless, as it is garbled with old junk from previous commands.

There is a question on Super User, with answer suggesting to rebind Ctrl-L to a script executing cls command. This is very inefficient, if not say more.

So, PSReadLine ClearScreen should clear scrollback too, or it should implement ClearDisplay as well.

Proposed technical implementation details (optional)

Please don't do it the way libvte does - there is no excuse for them to do it that way.

Lingua principale
C#
Stelle
4.4k
Fork
341
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/PSReadLine

Tutte le issue di PowerShell/PSReadLine

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.