1
0
Fork 0
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:
Eric Nelson 2017-04-07 18:26:19 -07:00 committed by albfan
parent c3f6b7f683
commit fe9a39bee8

View file

@ -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;