Commit Graph

33 Commits

Author SHA1 Message Date
prozessorkern
3b99ad2a56 fix #43 added a config interface to change the newline character expected 2020-03-27 18:35:07 +01:00
prozessorkern
c2e4324236 bugfix - now stdin returns 0 if the heredoc body is empty 2020-03-26 05:55:38 +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
5a00f22e31 added the help command variable to the instance structure to get independant commands for each instance fix #42 2020-03-22 20:07:30 +01:00
prozessorkern
2d130e2ee1 added long option parser fix #1 2020-03-22 18:57:31 +01:00
prozessorkern
ecc43307af added first working option parser for short options 2020-03-16 22:08:06 +01:00
prozessorkern
60c4c7dadd added basic interface of the shellmatta option parser + started adding a test module 2020-03-08 22:02:51 +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
bf1d91eca7 close #14 - added a resetShell api function + fixed some problems 2020-03-01 21:07:08 +01:00
prozessorkern
4f7fbff2e8 close #34 added 0x7f as backspace and removed wrong check for 0x7e as delete. close #34 2020-03-01 19:05:50 +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
d1649e5e86 added remove api + small integratio test close #9 2020-02-03 21:35:20 +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
16365f341e changed heredoc support
now the input string is kept intact until the end of the input is reached
this enables the history buffer to store the complete command
Still broken:
history buffer with heredoc wont execute because the delimiter is not determined correctly
editing of multiline things
2019-07-30 23:55:12 +02: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
21212d05b8 determine the length of the input command abd compare the length with the length of the known commands 2019-07-28 22:33:45 +02:00
prozessorkern
e5bf8572c2 fixed broken forward cursor fix #17 2019-07-27 16:39:37 +02:00
prozessorkern
5b6f2155eb parse command only until strlen(cmd) fix #16 2019-06-27 22:58:25 +02:00
prozessorkern
b71f1afe11 ignore newline as first character fix #13 2019-06-26 22:00:55 +02:00
prozessorkern
0b52a2f246 use the right pointer to insert the new command fix #12 2019-06-26 21:54:15 +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
prozessorkern
8078a436e8 fixed an issue in the itoa implementation for base > 10 #10 2019-06-24 18:54:35 +02:00
prozessorkern
4546cdf9bd added own itoa function to remove snprintf - fixed a bug on the processing of key end #10 2019-06-24 18:08:24 +02:00
prozessorkern
bc8a9f1dce #10 - added documentation for the new write function 2019-06-24 17:11:22 +02:00
prozessorkern
424ca84f61 Removed all internal printf dependencies should solve #10.
Added a switch to strip the api printf implementation
Added a write function as alternative to printf.
2019-06-24 16:51:23 +02:00
prozessorkern
7344075ad1 Finished first Version
- fixed doxygen comments
- changed license to MPLv2
- fixed some functions and removed not used ones
2019-06-23 22:17:15 +02:00
prozessorkern
bf7f366cb6 implemented most text based functions:
- byte wise processing and call of the command function
- history buffer
- auto complete
- edit functions (backspace, del, arrow keys, pos1, end)
2019-06-21 04:47:35 +02:00
prozessorkern
799903dcc1 added license information and started adding doxygen comments 2019-06-16 22:03:27 +02:00
prozessorkern
f15b7473a9 initial commit with at least some code that does something 2019-06-10 22:34:12 +02:00