U8glib insert text into page

I have the following function:

void connect_wifi(String cmd, int t, bool wifi)
{
    u8g.firstPage();
    do {  

      u8g.drawStr(0, 0, cmd.c_str());

    } while( u8g.nextPage() );


  int temp=0,i=0;
  while(1)
  {
    
    esp.println(cmd); 
    while(esp.available())
    {
      if(esp.find("OK"))
      i=8;
    }
    delay(t);
    if(i>5)
    break;
    i++;
  }
  if(i==8){
    

    if(wifi==true){
      No_IP=true;
       
      
      // here need to show a message to the display without clearing it

    }else{
     
      
       // here need to show a message to the display without clearing it

    }
    
   
    
    
  }
 
  else{

  
     // here need to show a message to the display
  }
 
}

I need to update the display, adding some text to the actual page where I have comments // here need to show a message to the display without clearing it.

Any clue?

Appreciate it

Hi
This is not possible with u8glib. If you really need such a functionality, I suggest to switch to u8g2 and use the u8x8 application interface (U8x8 is a part of U8g2, see the examples for u8x8 after installing U8g2 via the Arduino library manager).

U8x8 will be great for status logging and allows exactly this "write anywhere at any time concept".

Oliver

olikraus:
Hi
This is not possible with u8glib. If you really need such a functionality, I suggest to switch to u8g2 and use the u8x8 application interface (U8x8 is a part of U8g2, see the examples for u8x8 after installing U8g2 via the Arduino library manager).

U8x8 will be great for status logging and allows exactly this “write anywhere at any time concept”.

Oliver

Sounds great let me try it. Appreciate it