resetTerminal handles /reset, /redraw and /clear.
(_ context.Context, _ string)
| 253 | |
| 254 | // resetTerminal handles /reset, /redraw and /clear. |
| 255 | func (ch *CommandHandler) resetTerminal(_ context.Context, _ string) bool { |
| 256 | fmt.Print("\033[0m") |
| 257 | _ = os.Stdout.Sync() |
| 258 | ch.cli.restoreTerminal() |
| 259 | time.Sleep(50 * time.Millisecond) |
| 260 | ch.cli.forceRefreshPrompt() |
| 261 | return false |
| 262 | } |
| 263 | |
| 264 | // handleContextCommand delegates to the ContextHandler. |
| 265 | func (ch *CommandHandler) handleContextCommand(ctx context.Context, userInput string) { |
nothing calls this directly
no test coverage detected