call readline at the right time
This commit is contained in:
parent
807cca51ec
commit
899e892aef
@ -25,6 +25,7 @@
|
|||||||
#define INIT_FLAGS 1
|
#define INIT_FLAGS 1
|
||||||
|
|
||||||
#include "Yap.h"
|
#include "Yap.h"
|
||||||
|
#include "iopreds.h"
|
||||||
#if HAVE_UNISTD_H
|
#if HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
@ -1593,6 +1594,11 @@ void Yap_InitFlags(bool bootstrap) {
|
|||||||
LOCAL_flagCount++;
|
LOCAL_flagCount++;
|
||||||
f++;
|
f++;
|
||||||
}
|
}
|
||||||
|
// fix readline gettong set so early
|
||||||
|
if (GLOBAL_Stream[StdInStream].status & Readline_Stream_f) {
|
||||||
|
setBooleanGlobalPrologFlag(READLINE_FLAG, true);
|
||||||
|
}
|
||||||
|
|
||||||
if (!bootstrap) {
|
if (!bootstrap) {
|
||||||
Yap_InitCPredBack("current_prolog_flag", 2, 1, current_prolog_flag,
|
Yap_InitCPredBack("current_prolog_flag", 2, 1, current_prolog_flag,
|
||||||
cont_yap_flag, 0);
|
cont_yap_flag, 0);
|
||||||
|
Reference in New Issue
Block a user