This is an automated email from the ASF dual-hosted git repository.

GUIDINGLI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit cedf3009b5e3d054ab76310bec3ca71752fd4542
Author: ViezeVingertjes <[email protected]>
AuthorDate: Thu Nov 26 20:08:30 2026 +0100

    examples/fbcon: Echo the typed character.
    
    With CONFIG_NSH_READLINE, a character read from stdin was echoed to the
    display from the output buffer instead of the character itself, so the
    first byte of the last output was shown for every typed character
    (e.g. "--------" for "uname -a").  Echo the character that was read.
    
    Tested on Waveshare ESP32-S3-Touch-AMOLED-2.16: commands typed on the
    USB console are shown correctly on the display.
    
    Assisted-by: Claude:claude-opus-5-5
    Signed-off-by: ViezeVingertjes <[email protected]>
---
 examples/fbcon/fbcon_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/fbcon/fbcon_main.c b/examples/fbcon/fbcon_main.c
index 4b63ad41b..eab0c98c2 100644
--- a/examples/fbcon/fbcon_main.c
+++ b/examples/fbcon/fbcon_main.c
@@ -2468,7 +2468,7 @@ static void poll_std_streams(FAR struct fbcon_state_s *st)
         }
 
 #  if defined(CONFIG_NSH_READLINE)
-      fbcon_write(st, buf, num_ch);
+      fbcon_write(st, &ch, 1);
 #  elif defined(CONFIG_NSH_CLE)
       if (ch == ASCII_LF)
         {

Reply via email to