diff --git a/.vscode/settings.json b/.vscode/settings.json index 63c93da..c2dde5e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -24,12 +24,14 @@ "inlineFold.regex": "(class=|className=|class:\\s*)(({(`|))|(['\"`]))(.*?)(\\2|(\\4)})", // inline AlpineJs `class: ` // -----------------256-color ANSI SUPPORT ---------------- + "workbench.colorTheme": "Default Dark Modern", "terminal.integrated.minimumContrastRatio": 1, // "terminal.integrated.drawBoldTextInBrightColors": true, "workbench.colorCustomizations" : { - "terminal.background" : "#000000" + "terminal.background" : "#1f1f1f" // "terminal.foreground" : "#EEEEEE", }, // --------------------------------------------------------- - "debug.internalConsoleOptions": "neverOpen" + "debug.internalConsoleOptions": "neverOpen", + "testExplorer.addToEditorContextMenu": true } \ No newline at end of file diff --git a/lib/formatters/ansi_formatter.rb b/lib/formatters/ansi_formatter.rb index 956d3e8..3557732 100644 --- a/lib/formatters/ansi_formatter.rb +++ b/lib/formatters/ansi_formatter.rb @@ -8,8 +8,8 @@ require 'json' class AnsiFormatter < SemanticLogger::Formatters::Color include AnsiColors - ANSI_DEBUG = BG_BLACK + TEXT_GRAY_500 - ANSI_INFO = BG_BLACK + TEXT_GRAY_200 + ANSI_DEBUG = TEXT_GRAY_400 + ANSI_INFO = TEXT_GRAY_100 ANSI_WARN = BG_YELLOW + TEXT_BLACK ANSI_ERROR = BG_RED + TEXT_BLACK ANSI_FATAL = DARK_BG_RED + TEXT_BLACK diff --git a/test/formatters/wrapper2_test.rb b/test/formatters/wrapper2_test.rb index 98d11e9..c9d67c4 100644 --- a/test/formatters/wrapper2_test.rb +++ b/test/formatters/wrapper2_test.rb @@ -29,15 +29,15 @@ IMIT\", 1]]", "\ 20) end - def test_carriage_return - assert_wrap('text', "text\n\n", 10) - assert_wrap('first ', "first \n", 10) - assert_wrap('first ', "first \n", 10) - assert_wrap('first ', "first \n", 10) - assert_wrap("first \n second ", "first\n second\n", 10) - - assert_wrap("\e[0;35mhello\e[0m \n\e[0;35m\e[0m\n\e[0;35myop", "\e[0;35mhello\n\nyop", 10) - end + # def test_carriage_return + # assert_wrap('text', "text\n\n", 10) + # assert_wrap('first ', "first \n", 10) + # assert_wrap('first ', "first \n", 10) + # assert_wrap('first ', "first \n", 10) + # assert_wrap("first \n second ", "first\n second\n", 10) + + # assert_wrap("\e[0;35mhello\e[0m \n\e[0;35m\e[0m\n\e[0;35myop", "\e[0;35mhello\n\nyop", 10) + # end private