Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C library to easily create interactive shell

I want to create a program like gdb or gnuplot that has it's own command prompt. I'm looking for a library that will handle the parsing/input validation as well as provide a command history. So far googling for this topic is difficult because any search with the terms 'c' and 'shell' will only produce results for 'csh'.

like image 806
charliehorse55 Avatar asked Sep 06 '25 12:09

charliehorse55


1 Answers

History is usually managed by readline or libedit. Parsing is usually done with flex/bison.

like image 89
Ignacio Vazquez-Abrams Avatar answered Sep 09 '25 21:09

Ignacio Vazquez-Abrams