src/console/conio.c
static void
forward(char *str, int str_len)
{
   if (cp > str_len) {
      return;
   }
   if (cp >= cl) {
       t_char(' ');
       str[cp+1] = ' ';
       str[cp+2] = 0;
   } else {
       t_char(str[cp]);
       if ((str[cp] & 0xC0) == 0xC0) {
          cp++;
          while ((str[cp] & 0xC0) == 0x80) {
             t_char(str[cp]);
             cp++;
          }
          cp--;
       }
   }
   cp++;
}
/* Move cursor forward keeping characters under it */
Move cursor forward keeping characters under it
Move cursor forward keeping characters under it
static void
forward(char *str, int str_len)
{
   if (cp > str_len) {
      return;
   }
   if (cp >= cl) {
       t_char(' ');
       str[cp+1] = ' ';
       str[cp+2] = 0;
   } else {
       t_char(str[cp]);
       if ((str[cp] & 0xC0) == 0xC0) {
          cp++;
          while ((str[cp] & 0xC0) == 0x80) {
             t_char(str[cp]);
             cp++;
          }
          cp--;
       }
   }
   cp++;
}
static void forward ( char * str , int str_len ) { if ( cp > str_len ) { return ; } if ( cp >= cl ) { t_char ( ' ' ) ; str [ cp + 1 ] = ' ' ; str [ cp + 2 ] = 0 ; } else { t_char ( str [ cp ] ) ; if ( ( str [ cp ] & 0xC0 ) == 0xC0 ) { cp ++ ; while ( ( str [ cp ] & 0xC0 ) == 0x80 ) { t_char ( str [ cp ] ) ; cp ++ ; } cp -- ; } } cp ++ ; }
Move cursor forward keeping characters under it
Move cursor forward keeping characters under it