[console] Make callback a std::function