summaryrefslogtreecommitdiff
path: root/ihe.c
diff options
context:
space:
mode:
Diffstat (limited to 'ihe.c')
-rw-r--r--ihe.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/ihe.c b/ihe.c
index f24dc77..a2769f5 100644
--- a/ihe.c
+++ b/ihe.c
@@ -270,6 +270,7 @@ int c_arg( cmd_arg_t *arg )
int c_quit( cmd_arg_t *arg )
{
cmd_loop = 0;
+ exit(0);
return 0;
}
@@ -385,22 +386,22 @@ cmd_table_t tab[] = {
{"version", c_version },
{"arg", c_arg },
- {"quit", c_quit},
+ //{"quit", c_quit},
{"help", c_help},
{"?", c_help},
{"open", c_open},
{"close", c_close},
{"info", c_info},
- {"seek", c_seek},
- {"pos", c_pos},
+ //{"seek", c_seek},
+ //{"pos", c_pos},
{"size", c_size},
{"blk", c_blk},
- {"read", c_read},
- {"dump", c_dump},
- {"dumpx", c_dumpx},
- {"dumps", c_dumps},
- {"write", c_write},
- {"writes", c_writes},
+ //{"read", c_read},
+ //{"dump", c_dump},
+ //{"dumpx", c_dumpx},
+ //{"dumps", c_dumps},
+ //{"write", c_write},
+ //{"writes", c_writes},
{"flags", c_flags},
{"manifesto", c_manifesto},
{"ls", c_ls},
@@ -454,7 +455,7 @@ int main( int argc, char **argv )
term_cur_set_r( &ts, old_r);
write(1,"$",1);
- while ( 1 == 1 )
+ while ( cmd_loop )
{
//write(1,"$",1);
ret_read = read(2, in_buf, sz_buf );