OpenAF/openaf

ANSI support detection on Solaris throws exception

Closed this issue · 0 comments

When trying to execute openaf-console on Solaris it might eventually fail with the message “Could not load library” coming from the jAnsi library being used by jLine in the Console plugin.

To avoid there is a need for 3 changes:

  • Console Plugin: create a function “isAnsiSupported” to replace all the uses of “getConsoleReader().getTerminal().isAnsiSupported()”. That function should try/catch the underlining code returning false if an exception is caught.
  • All the uses of “getConsoleReader().getTerminal().isAnsiSupported()” replaced by the new console plugin function
  • In openaf-console change how __ansiflag is checked and also check system wide __conAnsi flag.