# XNanoReadLine **Repository Path**: qmqq/XNanoReadLine ## Basic Information - **Project Name**: XNanoReadLine - **Description**: XNanoReadLine是一个嵌入式行编辑库,类似一个简易的GNU readline。基于XNanoReadLine可以快速实现一个基于串口、TCP等其他字符流接口的终端软件。 - **Primary Language**: C - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-05 - **Last Updated**: 2026-03-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # XNanoReadLine #### Introduction XNanoReadLine is an embedded line editing library that is similar to a simple GNU readline and can achieve the following functions. Based on XNanoReadLine, a terminal software based on serial port, TCP and other character stream interfaces can be quickly implemented. 1. Cursor movement 2. Character addition and deletion in lines 3. Shortcut key detection 4. History recording 5. Environment variable storage 6. Line string variable replacement, implementing ${var1} $var2 7. Line string split calculation, implementing "max 1 2", output parma[0]="max", parma[1]="1", parma[2]="2" #### Compilation ```shell sudo apt-get install cppcheck make make check ``` #### Usage See example.c #### Documentation See detailed documentation in the doc directory.