Eclipse Support

This commit is contained in:
Vitor Santos Costa
2014-03-13 16:57:21 +00:00
parent 4591e1baaf
commit 228bc76a35
3 changed files with 5 additions and 2 deletions

View File

@@ -591,6 +591,9 @@ PL_install_readline(void)
#ifndef __WINDOWS__
if ( !truePrologFlag(PLFLAG_TTY_CONTROL) || !isatty(0) )
return;
// don't allow YAP to run readline under an Eclipse Console
if (getenv("EclipseVersion"))
return;
#endif
alevel = setAccessLevel(ACCESS_LEVEL_SYSTEM);