mcurses icon indicating copy to clipboard operation
mcurses copied to clipboard

Return non-zero in mcurses_phyio_init to work properly.

Open ghost opened this issue 3 years ago • 1 comments

static uint_fast8_t mcurses_phyio_init (void)
{
  return 0;
}

...

uint_fast8_t
initscr (void)
{
    uint_fast8_t rtc;

    if (mcurses_phyio_init ())
    {
        mcurses_puts_P (SEQ_LOAD_G1);                                               // load graphic charset into G1
        attrset (A_NORMAL);
        clear ();
        move (0, 0);
        mcurses_is_up = 1;
        rtc = OK;
    }
    else
    {
        rtc = ERR;
    }
    return rtc;
}

ghost avatar Mar 13 '21 11:03 ghost

Hi ChrisMicro,

Many thanks for your work porting mcurses to the Arduino, lots of us grey-beards appreciate it (it's thirty-odd years since I last wrote a (working, useful) curses program). :-)

Using mcurses with an ESP8266 (building with PlatformIO under Linux), I'm seeing the same thing as Jasoroony, though; the graphics character set isn't available unless I change mcurses_phyio_init() to return a non-zero value.

Other than that, it works remarkably well and remarkably quickly on an ESP01S (using a telnet connection).

Best wishes from Japan,

      -John-

PuceBaboon avatar Jun 03 '21 13:06 PuceBaboon