linenoise
libnklabs
linenoise | libnklabs | |
---|---|---|
6 | 4 | |
3,634 | 20 | |
- | - | |
2.4 | 5.3 | |
20 days ago | 3 months ago | |
C | C | |
BSD 2-clause "Simplified" License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
linenoise
-
Keyboard Shortcuts every Command Line Hacker should know about GNU Readline
In a similar vein there's also Linenoise form the creator of Redis.
https://github.com/antirez/linenoise
-
Anyone have a shell / device hosted CLI they like?
They use a combination of linenoise and argtable3,
- Release v1.0.0 of lionkor/commandline, a getline()-like library for asynchronous termnial I/O in modern C++
-
Is C++ Still Worth Learning? Absolutely! Yes Rust And Go Are Awesome. There Is Still Work To Be Done In C++
oldschool text adventure (with linenoise or replxx)
-
Git's list of banned C functions
His linenoise library is my favorite.
-
C using arrow keys .
Use linenoise.
libnklabs
-
Keyboard Shortcuts every Command Line Hacker should know about GNU Readline
Two issues with readline: it's GPL and it's big. For embedded systems intended to become products you really need something else. My tiny variant is this, but for sure there are many others:
https://github.com/nklabs/libnklabs
("nkreadline" has editing, tab-completion (for embedded "nkcli" commands) and history)
-
Rtems Real Time Operating System
I used RTEMS on Movius Myriad vision CPU (running on LEON- a SPARC clone).
I remember the RTEMS event concept was not very good- the events are globally shared. You are better off using semaphores.
>I have realized that for a majority of the embedded software using an RTOS is an overkill
I agree with this. Instead of an OS, we like to use a small framework that provides a CLI, database and UART communications (YMODEM protocol). It's a single stack system that provides a simple work-queue for scheduling future tasks / callbacks, and for interrupt code to schedule non-interrupt code. It works for almost everything as long as you are comfortable programming in an event-driven style.
https://github.com/nklabs/libnklabs
(recently added support for AVR 8-bit processors).
-
Framework: Open Sourcing Our Firmware
I've extracted the Chromium-EC encryption functions, they are convenient for signing / verifying firmware on other platforms. Chromium-ec is nice for example code like this:
https://github.com/jhallen/rsa-verify
On the other hand, if you are looking for some generic embedded system code all in C, here is our library:
https://github.com/nklabs/libnklabs
I think it's most unique feature is the embedded schema-based database- so you can save things like calibration and configuration information in local flash memory. Recently I've been adding device drivers for all common devices I can find on break-out boards for the Arduino and Raspberry-PI communities.
- Show HN: Library to quickly make MCU-based products
What are some alternatives?
replxx - A readline and libedit replacement that supports UTF-8, syntax highlighting, hints and Windows and is BSD licensed.
mu - Project Mu Documentation
microrl - micro read line library for small and embedded devices
carl9170fw - CARL9170 Firmware Source Repository
awesome-hpp - A curated list of awesome header-only C++ libraries
firmware-setup - Firmware Setup
nuspell - 🖋️ Fast and safe spellchecking C++ library
esp32-elfloader - esp32 component to load in ram and relocate elf file
commandline - A C++ commandline for use in servers and chat software. Provides very simple asynchronous input/output.
input-polling-test - Tests the scan behavior of your keyboard/mouse
Vcpkg - C++ Library Manager for Windows, Linux, and MacOS
rsa-verify