Skip to content

Commit

Permalink
do not clear console at quit
Browse files Browse the repository at this point in the history
  • Loading branch information
fsrv-xyz committed Jul 6, 2022
1 parent a799055 commit 6682ef6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ func keyboardRoutine(ctx context.Context, cancelRoutines context.CancelFunc, chR
for {
select {
case <-ctx.Done():
chRender <- Command{Command: CommandTypeClearConsole}
return
case event := <-keysEvents:
if event.Err != nil {
Expand All @@ -361,7 +360,6 @@ func keyboardRoutine(ctx context.Context, cancelRoutines context.CancelFunc, chR
}
// Quit
if event.Rune == 'q' || event.Rune == 'Q' || event.Key == keyboard.KeyCtrlC {
chRender <- Command{Command: CommandTypeClearConsole}
cancelRoutines()
return
}
Expand Down

0 comments on commit 6682ef6

Please sign in to comment.