14 Commits

Author SHA1 Message Date
prozessorkern
6c76dfc7ae fixed comments to get rid of doxygen warnings 2020-04-01 19:16:11 +02:00
prozessorkern
d7962a54dc added busy mode and test
a command can now return SHELLMATTA_BUSY
This will be passed back to the caller of processData
afterwards the instance has to be called with the same parameters
The shellmatta will then just call the busy command until it finishes
as soon as the command returns != SHELLMATTA_BUSY the instance will continue processing the rest of the input data
2020-03-28 11:26:50 +01:00
prozessorkern
5e84f1b022 added continuous mode support fix #3
If a command returns SHELLMATTA_CONTINUE all received data is passed to this command until it returns != SHELLMATTA_CONTINUE or a cancel is received
The data is passed stdin like and can be read byte by byte vie shellmatta_read
The stdin buffer is overwritten witch each new char
2020-03-22 21:27:18 +01:00
prozessorkern
17bb88d292 changed heredoc to exchange data via a stdin like interface with a read function fix #39 2020-03-22 20:37:08 +01:00
prozessorkern
2d130e2ee1 added long option parser fix #1 2020-03-22 18:57:31 +01:00
prozessorkern
2921f9791b fix #15 added an api to control mode and echo + fixed the implementation and added tests 2020-03-08 19:56:42 +01:00
prozessorkern
d2617a4f86 close #31 - made all command parameter except the command name optional + added and fixed tests 2020-03-01 18:45:30 +01:00
prozessorkern
c04accdb55 close #30 added overwritable help command parameter and fixed some compiler issues (some of them only appeared when compiling with optimization) 2020-03-01 17:53:27 +01:00
prozessorkern
34ec2d9b45 removed \e from sourcecode and testcases 2020-02-03 20:45:19 +01:00
shimatta
ea3c90f305 Merge branch 'feature/add_tests_#5' of shimatta/shellmatta into develop 2020-02-03 20:32:03 +01:00
3194012bae got rid of compiler warnings 2019-12-05 14:39:26 +01:00
prozessorkern
280e512746 added basic heredoc function
Some things are broken:
navigation in multiline inputs
history buffer for multiline inputs
some things not been noticed yet
2019-07-29 01:30:16 +02:00
prozessorkern
e5bf8572c2 fixed broken forward cursor fix #17 2019-07-27 16:39:37 +02:00
prozessorkern
6b1d550e6b moved all separatable functions in seperate modules. The main module shellmatta.c now only contains the interface function implementation. Work on #4 2019-06-24 23:31:26 +02:00