static void dbg_colorize_func(const char* buf, int level) { const char* col = debugColor(level); ::write(2,col,::strlen(col)); ::write(2,buf,::strlen(buf)); col = debugColor(-2); ::write(2,col,::strlen(col)); }
virtual void operator()(int buttonPressed) { debugColor(DEBUG_BROWN, "Apretado boton :%d\n", buttonPressed); }