diff --git a/dev-proxy/ProxyEngine.cs b/dev-proxy/ProxyEngine.cs index 13aecb38..3ba41366 100755 --- a/dev-proxy/ProxyEngine.cs +++ b/dev-proxy/ProxyEngine.cs @@ -150,7 +150,7 @@ public async Task Run(CancellationToken? cancellationToken) _logger.LogInformation("Configure your application to use this proxy's port and address"); } - _logger.LogInformation("Press CTRL+C to stop Dev Proxy\r\n"); + PrintHotkeys(); Console.CancelKeyPress += Console_CancelKeyPress; if (_config.Record) @@ -237,8 +237,7 @@ private void ReadKeys() if (key == ConsoleKey.C) { Console.Clear(); - Console.WriteLine("Press CTRL+C to stop Dev Proxy"); - Console.WriteLine(""); + PrintHotkeys(); } if (key == ConsoleKey.W) { @@ -590,4 +589,11 @@ Task OnCertificateSelection(object sender, CertificateSelectionEventArgs e) // set e.clientCertificate to override return Task.CompletedTask; } + + private void PrintHotkeys() + { + Console.WriteLine("Hotkeys: (r)ecord, (s)top recording, (c)lear screen"); + Console.WriteLine("Press CTRL+C to stop Dev Proxy"); + Console.WriteLine(""); + } }