aboutsummaryrefslogtreecommitdiff
path: root/util/fbrun/FbRun.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-10-04 21:01:31 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-10-04 21:01:31 (GMT)
commite6570b61f34e9d7822f500706a5a2cd6bc436234 (patch)
tree3f186315662e41fc8908d07a1720de0282113981 /util/fbrun/FbRun.hh
parent4b5c00b764417b91388d6e88b10f3cbd2764ff02 (diff)
downloadfluxbox-e6570b61f34e9d7822f500706a5a2cd6bc436234.zip
fluxbox-e6570b61f34e9d7822f500706a5a2cd6bc436234.tar.bz2
add -print option to fbrun to return result to stdout instead of executing it
Diffstat (limited to 'util/fbrun/FbRun.hh')
-rw-r--r--util/fbrun/FbRun.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/fbrun/FbRun.hh b/util/fbrun/FbRun.hh
index 405ae3f..6ddbad0 100644
--- a/util/fbrun/FbRun.hh
+++ b/util/fbrun/FbRun.hh
@@ -42,6 +42,7 @@ public:
42 void handleEvent(XEvent * const ev); 42 void handleEvent(XEvent * const ev);
43 void setTitle(const std::string &title); 43 void setTitle(const std::string &title);
44 void resize(unsigned int width, unsigned int height); 44 void resize(unsigned int width, unsigned int height);
45 void setPrint(bool print) { m_print = print; }
45 46
46 /// load and reconfigure for new font 47 /// load and reconfigure for new font
47 bool loadFont(const std::string &fontname); 48 bool loadFont(const std::string &fontname);
@@ -83,6 +84,7 @@ private:
83 void tabCompleteHistory(); 84 void tabCompleteHistory();
84 void tabCompleteApps(); 85 void tabCompleteApps();
85 86
87 bool m_print; ///< the input should be printed to stdout rather than run
86 FbTk::Font m_font; ///< font used to draw command text 88 FbTk::Font m_font; ///< font used to draw command text
87 Display *m_display; ///< display connection 89 Display *m_display; ///< display connection
88 int m_bevel; 90 int m_bevel;