acassis opened a new pull request, #19499:
URL: https://github.com/apache/nuttx/pull/19499

   ## Summary
   
   Both the UART and PTY serial drivers previously assumed all VT100/ANSI 
escape sequences were fixed 3-byte CSI sequences, causing longer CSI and SS3 
key sequences (such as Home, End, Delete, and modified keys) to leak stray 
characters into the terminal when local echo was enabled. This patch replaces 
the fixed-length logic with a state machine that correctly recognizes and 
suppresses escape sequences of any length, while preserving the data delivered 
to applications. The change only affects local echo behavior, is fully backward 
compatible, and has been validated with both interactive NSH sessions and 
automated PTY tests.
   
   Assisted-by: Claude Code
   
   ## Impact
   
   Users will be able to use keys arrows, Home, End, etc to edit the nsh> 
command line (patch to nuttx-apps will come)
   
   ## Testing
   
   <img width="1250" height="195" alt="image" 
src="https://github.com/user-attachments/assets/4d4d5a3f-5d61-46c8-8239-fe2aac6cba5f";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to