diff options
Diffstat (limited to 'util/fbrun/FbRun.cc')
-rw-r--r-- | util/fbrun/FbRun.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc index c304413..f98a02e 100644 --- a/util/fbrun/FbRun.cc +++ b/util/fbrun/FbRun.cc | |||
@@ -58,6 +58,7 @@ using std::ios; | |||
58 | FbRun::FbRun(int x, int y, size_t width): | 58 | FbRun::FbRun(int x, int y, size_t width): |
59 | FbTk::TextBox(DefaultScreen(FbTk::App::instance()->display()), | 59 | FbTk::TextBox(DefaultScreen(FbTk::App::instance()->display()), |
60 | m_font, ""), | 60 | m_font, ""), |
61 | m_print(false), | ||
61 | m_font("fixed"), | 62 | m_font("fixed"), |
62 | m_display(FbTk::App::instance()->display()), | 63 | m_display(FbTk::App::instance()->display()), |
63 | m_bevel(4), | 64 | m_bevel(4), |
@@ -115,6 +116,12 @@ void FbRun::run(const std::string &command) { | |||
115 | FbTk::App::instance()->end(); // end application | 116 | FbTk::App::instance()->end(); // end application |
116 | m_end = true; // mark end of processing | 117 | m_end = true; // mark end of processing |
117 | 118 | ||
119 | if (m_print) { | ||
120 | std::cout << command; | ||
121 | hide(); | ||
122 | return; | ||
123 | } | ||
124 | |||
118 | // fork and execute program | 125 | // fork and execute program |
119 | if (!fork()) { | 126 | if (!fork()) { |
120 | 127 | ||