embedded YAP should ignore int by default.
This commit is contained in:
@@ -346,7 +346,8 @@ static void InitStdStreams(void) {
|
||||
#if USE_READLINE
|
||||
if (GLOBAL_Stream[StdInStream].status & Tty_Stream_f &&
|
||||
GLOBAL_Stream[StdOutStream].status & Tty_Stream_f &&
|
||||
GLOBAL_Stream[StdErrStream].status & Tty_Stream_f) {
|
||||
GLOBAL_Stream[StdErrStream].status & Tty_Stream_f &&
|
||||
! Yap_embedded) {
|
||||
Yap_InitReadline(TermTrue);
|
||||
}
|
||||
#endif
|
||||
|
@@ -283,6 +283,8 @@ static int prolog_complete(int ignore, int key) {
|
||||
|
||||
bool Yap_InitReadline(Term enable) {
|
||||
// don't call readline within emacs
|
||||
if (Yap_embedded)
|
||||
return false;
|
||||
if (!(GLOBAL_Stream[StdInStream].status & Tty_Stream_f) ||
|
||||
getenv("INSIDE_EMACS") || enable != TermTrue) {
|
||||
if (GLOBAL_Flags)
|
||||
|
Reference in New Issue
Block a user