mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
miracle-sinkctl: don't use readline if no stdin
Signed-off-by: Eric Nelson <eric@nelint.com>
This commit is contained in:
parent
c3f6b7f683
commit
fe9a39bee8
1 changed files with 19 additions and 20 deletions
|
@ -328,8 +328,6 @@ int cli_init(sd_bus *bus, const struct cli_cmd *cmds)
|
|||
cli_vERR(r);
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
cli_rl = true;
|
||||
|
||||
rl_erase_empty_line = 1;
|
||||
|
@ -339,6 +337,7 @@ int cli_init(sd_bus *bus, const struct cli_cmd *cmds)
|
|||
printf("\r");
|
||||
rl_on_new_line();
|
||||
rl_redisplay();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue