mirror of
https://github.com/sstefani/mtrace.git
synced 2026-09-13 14:22:23 +08:00
fix interactive handling
This commit is contained in:
parent
8060b8ef7f
commit
2851e6744c
@ -829,6 +829,9 @@ static int readline_func(void)
|
|||||||
|
|
||||||
void readline_init(void)
|
void readline_init(void)
|
||||||
{
|
{
|
||||||
|
if (!options.interactive)
|
||||||
|
return;
|
||||||
|
|
||||||
rl_terminal_name = getenv("TERM");
|
rl_terminal_name = getenv("TERM");
|
||||||
rl_instream = stdin;
|
rl_instream = stdin;
|
||||||
rl_outstream = stderr;
|
rl_outstream = stderr;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user