From 95ab1dd73e9c5ea845ce03340b2861ea8a652b7e Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 29 Dec 2018 02:03:49 +0100 Subject: Fixing STR #2901, wrongly escaping the formatting character code in Fl_Browser. --- test/browser.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/browser.cxx b/test/browser.cxx index 48edd302b..a3485ca15 100644 --- a/test/browser.cxx +++ b/test/browser.cxx @@ -45,6 +45,9 @@ That was a blank line above this. @C2Green @C4Blue +@@ start line with '@' +@.@ alternative start line with '@' + You should try different browser types: Fl_Browser Fl_Select_Browser @@ -164,6 +167,7 @@ int main(int argc, char **argv) { browser->callback(b_cb); // browser->scrollbar_right(); //browser->has_scrollbar(Fl_Browser::BOTH_ALWAYS); + //browser->format_char('#'); if (!browser->load(fname)) { int done = 0; #ifdef _MSC_VER -- cgit v1.2.3 From c099837a3e80e8f2c1634e5f1861d268e82622fe Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 29 Dec 2018 02:08:40 +0100 Subject: Also testing # as a format_char() --- test/browser.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/browser.cxx b/test/browser.cxx index a3485ca15..e0ea9e799 100644 --- a/test/browser.cxx +++ b/test/browser.cxx @@ -47,6 +47,10 @@ That was a blank line above this. @@ start line with '@' @.@ alternative start line with '@' +@l@@ start tall line with '@' +@s@@ start small line with '@' +#s## start line with '#' +#s#.# alternative start line with '#' You should try different browser types: Fl_Browser -- cgit v1.2.3 From bf48acdbe53bd9fdebaa731831cea946f394350d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 29 Dec 2018 02:16:40 +0100 Subject: Adding documentation for '@N', inactive color. --- test/browser.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/browser.cxx b/test/browser.cxx index e0ea9e799..749a7ed83 100644 --- a/test/browser.cxx +++ b/test/browser.cxx @@ -44,6 +44,7 @@ That was a blank line above this. @C1RED @C2Green @C4Blue +@N@.Inactive @@ start line with '@' @.@ alternative start line with '@' -- cgit v1.2.3