From 31170c47314a8b71331dd7d63c898478edc98c84 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sat, 6 Apr 2024 23:36:04 -0700 Subject: Rename putchar() to plot_char() (#944) Some old platforms (NetBSD, AIX) implement the common stdio "putchar()" function as a global macro which poisons the global namespace, preventing all C and C++ programs from using "putchar()" as a function or method. There was a long thread about this in fltk.coredev during the period Mar 25 2024 ~ Apr 4 2024, subject "RFC: Fl_Terminal::putchar() in public API" as to why we have no choice but to not use putchar() as a method name. --- test/terminal.fl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/terminal.fl b/test/terminal.fl index 379520291..490fcf301 100644 --- a/test/terminal.fl +++ b/test/terminal.fl @@ -1282,7 +1282,7 @@ for (int i=0; i<50; i++ ) { for ( int col=0; coltextfgcolor_xterm(rand() % 8); // random fg uchar color for each char - G_tty->putchar(c, row, col); + G_tty->plot_char(c, row, col); } } G_tty->redraw(); -- cgit v1.2.3