Flipper/Applications/Official/DEV_FW/source/xMasterX/cli-bridge/console_output.c

13 lines
518 B
C
Raw Normal View History

2023-01-26 07:52:38 +00:00
#include "console_output.h"
void console_output_input_handler(CliguiApp* app, InputEvent* event) {
if(event->type == InputTypeShort && (event->key == InputKeyOk || event->key == InputKeyLeft)) {
view_dispatcher_switch_to_view(app->view_dispatcher, ViewTextInput);
app->data->state = ViewTextInput;
}
if(event->type == InputTypeShort && event->key == InputKeyBack) {
char eot = 0x03;
furi_stream_buffer_send(app->data->streams.app_tx, &eot, 1, FuriWaitForever);
}
}