diff options
| author | Greg Ercolano <erco@seriss.com> | 2024-04-06 23:36:04 -0700 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2024-04-06 23:36:04 -0700 |
| commit | 31170c47314a8b71331dd7d63c898478edc98c84 (patch) | |
| tree | d0e5e793358e0d42bad0c7737cf6765a682cc6fa /test | |
| parent | 2f1b8fc726cf428165c6feeeb9e3b9ab8d403291 (diff) | |
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.
Diffstat (limited to 'test')
| -rw-r--r-- | test/terminal.fl | 2 |
1 files changed, 1 insertions, 1 deletions
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; col<cols; col++ ) { char c = ' ' + (rand() % 0x50); // random ASCII characters G_tty->textfgcolor_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(); |
