Move the classes related to AnsiConsoleSupport to org.fusesource.jansi.internal;
Using static final variables to cache CLibrary and Kernel32 in AnsiConsoleSupportHolder;
The purpose is to avoid duplicate creation of CLibrary and Kernel32, and make it easier to be inlined by the JIT compiler;
Delete JANSI_PROVIDERS_DEFAULT, because I think there should be a more flexible selection strategy by default rather than just relying on a list;
Make ffm not selected by default when the jansi module does not have native access enabled;
This prevents the JDK from printing warning messages in stderr.
org.fusesource.jansi.internal
;CLibrary
andKernel32
inAnsiConsoleSupportHolder
; The purpose is to avoid duplicate creation ofCLibrary
andKernel32
, and make it easier to be inlined by the JIT compiler;JANSI_PROVIDERS_DEFAULT
, because I think there should be a more flexible selection strategy by default rather than just relying on a list;