@@ -95,11 +95,11 @@ date.microsecond / 1000, me, getpid(), msg]; objc_autoreleasePoolPop(pool); } -#ifdef HAVE_ISATTY +#if defined(HAVE_ISATTY) && !defined(OF_AMIGAOS) static int colorToANSI(OFColor *color) { if ([color isEqual: [OFColor black]]) return 30; @@ -413,11 +413,11 @@ #endif } - (void)setForegroundColor: (OFColor *)color { -#ifdef HAVE_ISATTY +#if defined(HAVE_ISATTY) && !defined(OF_AMIGAOS) int code; if (!isatty(_fd)) return; @@ -428,11 +428,11 @@ #endif } - (void)setBackgroundColor: (OFColor *)color { -#ifdef HAVE_ISATTY +#if defined(HAVE_ISATTY) && !defined(OF_AMIGAOS) int code; if (!isatty(_fd)) return; @@ -443,51 +443,51 @@ #endif } - (void)reset { -#ifdef HAVE_ISATTY +#if defined(HAVE_ISATTY) && !defined(OF_AMIGAOS) if (!isatty(_fd)) return; [self writeString: @"\033[0m"]; #endif } - (void)clear { -#ifdef HAVE_ISATTY +#if defined(HAVE_ISATTY) && !defined(OF_AMIGAOS) if (!isatty(_fd)) return; [self writeString: @"\033[2J"]; #endif } - (void)eraseLine { -#ifdef HAVE_ISATTY +#if defined(HAVE_ISATTY) && !defined(OF_AMIGAOS) if (!isatty(_fd)) return; [self writeString: @"\033[2K"]; #endif } - (void)setCursorColumn: (unsigned int)column { -#ifdef HAVE_ISATTY +#if defined(HAVE_ISATTY) && !defined(OF_AMIGAOS) if (!isatty(_fd)) return; [self writeFormat: @"\033[%uG", column + 1]; #endif } - (void)setCursorPosition: (of_point_t)position { -#ifdef HAVE_ISATTY +#if defined(HAVE_ISATTY) && !defined(OF_AMIGAOS) if (!isatty(_fd)) return; [self writeFormat: @"\033[%u;%uH", (unsigned)position.y + 1, (unsigned)position.x + 1]; @@ -494,11 +494,11 @@ #endif } - (void)setRelativeCursorPosition: (of_point_t)position { -#ifdef HAVE_ISATTY +#if defined(HAVE_ISATTY) && !defined(OF_AMIGAOS) if (!isatty(_fd)) return; if (position.x > 0) [self writeFormat: @"\033[%uC", (unsigned)position.x];