console_output.c 518 B

12345678910111213
  1. #include "console_output.h"
  2. void console_output_input_handler(CliguiApp* app, InputEvent* event) {
  3. if(event->type == InputTypeShort && (event->key == InputKeyOk || event->key == InputKeyLeft)) {
  4. view_dispatcher_switch_to_view(app->view_dispatcher, ViewTextInput);
  5. app->data->state = ViewTextInput;
  6. }
  7. if(event->type == InputTypeShort && event->key == InputKeyBack) {
  8. char eot = 0x03;
  9. furi_stream_buffer_send(app->data->streams.app_tx, &eot, 1, FuriWaitForever);
  10. }
  11. }