summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBradley Smith2008-03-08 22:54:23 +0000
committerBradley Smith2008-03-08 22:54:23 +0000
commit99080bd960207a217ddd28bfefde6ffb867c426f (patch)
tree536e0269de5fb2820c4e8396b9ffffcfac11dca4 /src
parentAdd -g to compile flags. (diff)
downloadgnurobots-99080bd960207a217ddd28bfefde6ffb867c426f.tar.gz
Add error message when given an invalid instruction.
Add initial ui update to avoid corruption. Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 960d8cc..fc0d6b6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -347,6 +347,7 @@ main_prog (void *closure, gint argc, gchar *argv[])
SCM value;
g_printf ("Robot program not specified. Entering interactive mode..\n");
+ user_interface_update_status (ui, "", -1, -1, -1);
while (1)
{
user_interface_get_string (ui, "guile> ", buff, BUFF_LEN);
@@ -368,7 +369,9 @@ main_prog (void *closure, gint argc, gchar *argv[])
SCM
catch_handler (void *data, SCM tag, SCM throw_args)
{
- gchar *message = "Could'nt get error message\n";
+
+/*
+ gchar *message = "Couldn't get error message\n";
if (scm_ilength (throw_args) > 1
&& SCM_NFALSEP (scm_string_p (SCM_CADR (throw_args))))
@@ -382,6 +385,9 @@ catch_handler (void *data, SCM tag, SCM throw_args)
}
user_interface_update_status (ui, message, -1, -1, -1);
+*/
+
+ g_printf("Invalid Instruction\n");
return SCM_BOOL_F;
}