diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-09-01 18:51:24 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-09-01 19:02:41 +0200 |
commit | f6165164eee4e699966ba9bc1cab1e58e69317c8 (patch) | |
tree | 61a153b802dc549cd3b8b3617bf884a8ec5b2d00 | |
parent | 3a445c2db27f985fe4f91d6d0dfbb8cfbc18aa1f (diff) | |
download | json-rpc-shell-f6165164eee4e699966ba9bc1cab1e58e69317c8.tar.gz json-rpc-shell-f6165164eee4e699966ba9bc1cab1e58e69317c8.tar.xz json-rpc-shell-f6165164eee4e699966ba9bc1cab1e58e69317c8.zip |
Fix prompt attributes under libedit
I can only guess why this works, and I'm not sure I want to /know/.
-rw-r--r-- | json-rpc-shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c index bbc7290..cbacff8 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -3460,7 +3460,7 @@ main (int argc, char *argv[]) { // XXX: to be completely correct, we should use tputs, but we cannot g_ctx.input->vtable->set_prompt (g_ctx.input, - xstrdup_printf ("%c%s%cjson-rpc> %c%s%c", + xstrdup_printf ("%c%s%cjson-rpc>%c%s%c ", INPUT_START_IGNORE, g_ctx.attrs[ATTR_PROMPT], INPUT_END_IGNORE, INPUT_START_IGNORE, g_ctx.attrs[ATTR_RESET], |