changeset 451:10f4062e049b

fc-shell: unterm command implemented in one-shot mode
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 08 Feb 2019 00:49:34 +0000
parents b5235f8240b9
children 688380565e0f
files rvinterf/asyncshell/at.c rvinterf/asyncshell/oneshot.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rvinterf/asyncshell/at.c	Thu Feb 07 21:22:27 2019 +0000
+++ b/rvinterf/asyncshell/at.c	Fri Feb 08 00:49:34 2019 +0000
@@ -126,6 +126,12 @@
 	return oneshot_at_command(argv[1]);
 }
 
+cmd_unterm_oneshot(argc, argv)
+	char **argv;
+{
+	return send_unterm_string_to_ati(argv[1]);
+}
+
 void
 oneshot_at_check_response()
 {
--- a/rvinterf/asyncshell/oneshot.c	Thu Feb 07 21:22:27 2019 +0000
+++ b/rvinterf/asyncshell/oneshot.c	Fri Feb 08 00:49:34 2019 +0000
@@ -18,6 +18,7 @@
 extern int cmd_str_oneshot();
 extern int cmd_tchdl_oneshot();
 extern int cmd_tgtreset();
+extern int cmd_unterm_oneshot();
 
 static struct cmdtab {
 	char *cmd;
@@ -34,6 +35,7 @@
 	{"str", 1, 1, cmd_str_oneshot},
 	{"tch-dl", 1, 1, cmd_tchdl_oneshot},
 	{"tgtreset", 0, 0, cmd_tgtreset},
+	{"unterm", 1, 1, cmd_unterm_oneshot},
 	{0, 0, 0, 0}
 };