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

   ## Summary
   
   One missing feature on nsh> is the ability to command line editing. If the 
user make a mistake at the beginning of the line he/she needs to erase all 
characters until arrive there and fix the typo.
   
   Now the user can use the arrow keys to move until the mistake and fix it.
   
   This feature adds less than 700 bytes to the firmware (only Line Edit is 
enabled by default)
   
   ```
   original stm32f103-minimum:nsh without edit edit, emacs, TAB and History 
support:
   alan@dev:~/nuttxspace/nuttx$ arm-none-eabi-size nuttx
      text         data     bss     dec     hex filename
     51192          472    2952   54616    d558 nuttx
   
   With: Line Edit, Without Emacs, TAB, History:
   $ arm-none-eabi-size nuttx
      text         data     bss     dec     hex filename
     51844          472    2956   55272    d7e8 nuttx
   
   With: Line Edit and Emacs, Without TAB, History:
   
   $ arm-none-eabi-size nuttx
      text         data     bss     dec     hex filename
     52220          472    2956   55648    d960 nuttx
   
   With: Line Edit, Emacs and TAB, Without History
   $ arm-none-eabi-size nuttx
      text         data     bss     dec     hex filename
     52756          472    2960   56188    db7c nuttx
   
   With: Line Edit, Emacs, TAB and History, Without: Reverse Search
   $ arm-none-eabi-size nuttx
      text         data     bss     dec     hex filename
     53060          472    3228   56760    ddb8 nuttx
   
   With: Line Edit, Emacs, TAB, History and Reverse Search
   $ arm-none-eabi-size nuttx
      text         data     bss     dec     hex filename
     53896          472    3228   57596    e0fc nuttx
   ```
   
   ## Impact
   
   User will be able to use the nsh> more efficiently
   
   ## Testing
   
   Line editing:
   
   <img width="902" height="192" alt="image" 
src="https://github.com/user-attachments/assets/a9566729-5f07-461f-857f-4b051ebbe103";
 />
   


-- 
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