From b24379133fff4c55b0eb1a0e82c71dca33474acc Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 20 Aug 2022 09:57:00 +0200 Subject: Add int Fl::system(const char *command) static member function. --- src/Fl.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/Fl.cxx b/src/Fl.cxx index f77a88363..bac2ffa33 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -2098,6 +2098,11 @@ void Fl::keyboard_screen_scaling(int value) { Fl_Screen_Driver::keyboard_screen_scaling = value; } +/** Run a command line on the computer */ +int Fl::system(const char *command) { + return Fl::system_driver()->system(command); +} + // Pointers you can use to change FLTK to another language. // Note: Similar pointers are defined in FL/fl_ask.H and src/fl_ask.cxx FL_EXPORT const char* fl_local_shift = Fl::system_driver()->shift_name(); -- cgit v1.2.3