Kaynağa Gözat

Cli: ctrl+c reset buffer (#639)

あく 4 yıl önce
ebeveyn
işleme
129031e779
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      applications/cli/cli.c

+ 3 - 0
applications/cli/cli.c

@@ -302,6 +302,9 @@ void cli_process_input(Cli* cli) {
     } else if(c == CliSymbolAsciiSOH) {
         cli_motd();
         cli_prompt(cli);
+    } else if(c == CliSymbolAsciiETX) {
+        cli_reset(cli);
+        cli_prompt(cli);
     } else if(c == CliSymbolAsciiEOT) {
         cli_reset(cli);
     } else if(c == CliSymbolAsciiEsc) {