Jelajahi Sumber

Cli: ctrl+c reset buffer (#639)

あく 4 tahun lalu
induk
melakukan
129031e779
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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) {