cursor bounces back and forth to the beginning of a line after each keystroke

emaayan
Posts: 13
Joined: Sun Mar 05, 2023 6:16 pm

cursor bounces back and forth to the beginning of a line after each keystroke

Postby emaayan » Wed Nov 20, 2024 3:23 pm

hi, for some reason when i go into the console using the serial, every keystroke causes the cursor to bounce back the beginning of a line
and right back to the end of the line, it also hides the first character i type, not sure how to solve it. this is currently my code.

Code: Select all

void console_begin()
{

    console_register_common();
    esp_console_repl_config_t repl_config = ESP_CONSOLE_REPL_CONFIG_DEFAULT();
    repl_config.prompt = CONSOLE_PROMPT;
	repl_config.max_cmdline_length = 256;
    esp_console_repl_t *repl = NULL;

#if CONFIG_ESP_CONSOLE_UART
    esp_console_dev_uart_config_t uart_config = ESP_CONSOLE_DEV_UART_CONFIG_DEFAULT();
    ESP_ERROR_CHECK(esp_console_new_repl_uart(&uart_config, &repl_config, &repl));
#elif CONFIG_ESP_CONSOLE_USB_CDC
    esp_console_dev_usb_cdc_config_t cdc_config = ESP_CONSOLE_DEV_CDC_CONFIG_DEFAULT();
    ESP_ERROR_CHECK(esp_console_new_repl_usb_cdc(&cdc_config, &repl_config, &repl));
#elif CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
    esp_console_dev_usb_serial_jtag_config_t usbjtag_config = ESP_CONSOLE_DEV_USB_SERIAL_JTAG_CONFIG_DEFAULT();
    ESP_ERROR_CHECK(esp_console_new_repl_usb_serial_jtag(&usbjtag_config, &repl_config, &repl));
#endif

    ESP_ERROR_CHECK(esp_console_start_repl(repl));
}

Who is online

Users browsing this forum: Bing [Bot], MicroController and 69 guests