diff options
Diffstat (limited to 'spo256/getspo.c')
-rw-r--r-- | spo256/getspo.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/spo256/getspo.c b/spo256/getspo.c index 5ff64d7..de3eeeb 100644 --- a/spo256/getspo.c +++ b/spo256/getspo.c @@ -37,9 +37,22 @@ int getspo(CONFIG *cfg) fatal(EX_UNAVAILABLE, "spo256: %s: cannot access\n", p); stty = getstty(spo); interactive(stty, FALSE); - setflowctrl(stty, FC_HARD); continue; } + + if(NULL != (p = get_config(cfg, "flowctrl"))) + { + if(atol(p) == 0) + setflowctrl(stty, FC_NONE); + else if(atol(p) == 1) + setflowctrl(stty, FC_HARD); + else if(atol(p) == 2) + setflowctrl(stty, FC_SOFT); + else if(atol(p) == 3) + setflowctrl(stty, FC_FULL); + else + setflowctrl(stty, FC_NONE); + } if(NULL != (p = get_config(cfg, "speed"))) { |