FLTK logo

Re: [fltk.coredev] RFC: Fl_Terminal::putchar() in public API

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: RFC: Fl_Terminal::putchar() in public API Greg Ercolano 15:45 Mar 25  
 

    TL;DR: If it's truly not possible to work around, then I suppose it has to change.

    Perhaps putchar_utf8(),

    And if POSIX explicitly allows it, well then I suppose we have to live
    with POSIX and all the warts it implies.

    But had 1.4.0 released with putchar() in place, I'd think there'd be
    possible workarounds.

On 3/25/24 14:00, 'Albrecht Schlosser' via fltk.coredev wrote:

What would be wrong with renaming the Fl_Terminal::putcha() method to avoid name clashes in the first place?

    Simple: API consistency.

    I implemented printf() and putchar() just to be consistent;
    for a terminal widget it's kinda important to have familiar stdio functions available.

    As the designer, I figured I should indicate why it should be the way
    it is, so folks can weigh their decisions.

    People seeing printf() implemented will be right to ask "why didn't
    you call the single character method putchar()?", and it just seems
    lame to have to say it's because of an obscure platform macro issue.

    But, if it's not possible to work around, then it sounds like there's
    no choice really, and it's not even up for question, other than what to call it.

    put_char() I guess?

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/f23a4107-4283-4e28-b24a-5aab31d894be%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.