fix #43 added a config interface to change the newline character expected
This commit is contained in:
@@ -52,7 +52,7 @@ static shellmatta_retCode_t doSome(shellmatta_handle_t handle, const char *argum
|
||||
|
||||
shellmatta_write(handle, "blubb\r\n", 7u);
|
||||
|
||||
shellmatta_configure(handle, SHELLMATTA_MODE_INSERT, false);
|
||||
shellmatta_configure(handle, SHELLMATTA_MODE_INSERT, false, '\r');
|
||||
|
||||
(void)arguments;
|
||||
(void)length;
|
||||
@@ -93,7 +93,7 @@ static shellmatta_retCode_t empty(shellmatta_handle_t handle, const char *argume
|
||||
(void)length;
|
||||
|
||||
shellmatta_printf(handle, "empty function called\r\n");
|
||||
shellmatta_configure(handle, SHELLMATTA_MODE_OVERWRITE, true);
|
||||
shellmatta_configure(handle, SHELLMATTA_MODE_OVERWRITE, true, '\r');
|
||||
|
||||
return SHELLMATTA_OK;
|
||||
}
|
||||
@@ -113,7 +113,7 @@ static shellmatta_retCode_t reset(shellmatta_handle_t handle, const char *argume
|
||||
shellmatta_resetShell(handle, false);
|
||||
}
|
||||
|
||||
shellmatta_configure(handle, SHELLMATTA_MODE_INSERT, true);
|
||||
shellmatta_configure(handle, SHELLMATTA_MODE_INSERT, true, '\r');
|
||||
|
||||
return SHELLMATTA_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user