diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/shell.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/shell.c b/src/util/shell.c index eb1991d..3b13bc9 100644 --- a/src/util/shell.c +++ b/src/util/shell.c @@ -9,6 +9,8 @@ int shell_main(struct lgsmd_handle *lgsmh) { int rc; char buf[STDIN_BUF_SIZE+1]; + char rbuf[STDIN_BUF_SIZE+1]; + int rlen = sizeof(rbuf); while (1) { rc = fscanf(stdin, "%s", buf); @@ -21,5 +23,8 @@ int shell_main(struct lgsmd_handle *lgsmh) continue; } printf("STR=`%s'\n", buf); + lgsm_passthrough(lgsmh, buf, rbuf, &rlen); + + printf("RSTR=`%s'\n", rbuf); } } |