Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit PR/53856: F. Aragon: editline/libedit not prompt...



details:   https://anonhg.NetBSD.org/src/rev/602da34d05fb
branches:  trunk
changeset: 447427:602da34d05fb
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 10 18:41:56 2019 +0000

description:
PR/53856: F. Aragon: editline/libedit not prompting colors in readline mode

diffstat:

 lib/libedit/readline.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 93e4a0a4118a -r 602da34d05fb lib/libedit/readline.c
--- a/lib/libedit/readline.c    Thu Jan 10 18:09:45 2019 +0000
+++ b/lib/libedit/readline.c    Thu Jan 10 18:41:56 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: readline.c,v 1.148 2018/12/02 16:58:13 christos Exp $  */
+/*     $NetBSD: readline.c,v 1.149 2019/01/10 18:41:56 christos Exp $  */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.148 2018/12/02 16:58:13 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.149 2019/01/10 18:41:56 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include <sys/types.h>
@@ -319,7 +319,7 @@
                el_end(e);
                return -1;
        }
-       el_set(e, EL_PROMPT, _get_prompt, RL_PROMPT_START_IGNORE);
+       el_set(e, EL_PROMPT_ESC, _get_prompt, RL_PROMPT_START_IGNORE);
        el_set(e, EL_SIGNAL, rl_catch_signals);
 
        /* set default mode to "emacs"-style and read setting afterwards */



Home | Main Index | Thread Index | Old Index