Look for the function lcd_implementation_status_screen() which you find either in dogm_lcd_implementation.h for graphic controllers:
or ultralcd_implementation_hitachi_HD44780.h for character based controllers:
Note that I'm not using the newest version of Marlin, but probably that should not have changed too much...
lcd_print('X'); u8g.drawPixel(8,XYZ_BASELINE - 5); u8g.drawPixel(8,XYZ_BASELINE - 3); u8g.setPrintPos(10,XYZ_BASELINE); lcd_print(ftostr31ns(current_position[X_AXIS])); u8g.setPrintPos(43,XYZ_BASELINE); lcd_print('Y'); u8g.drawPixel(49,XYZ_BASELINE - 5); u8g.drawPixel(49,XYZ_BASELINE - 3); u8g.setPrintPos(51,XYZ_BASELINE); lcd_print(ftostr31ns(current_position[Y_AXIS])); u8g.setPrintPos(83,XYZ_BASELINE);
or ultralcd_implementation_hitachi_HD44780.h for character based controllers:
lcd.setCursor(0,1); lcd.print('X'); lcd.print(ftostr3(current_position[X_AXIS])); lcd_printPGM(PSTR(" Y")); lcd.print(ftostr3(current_position[Y_AXIS]));
Note that I'm not using the newest version of Marlin, but probably that should not have changed too much...