summaryrefslogtreecommitdiffstats
path: root/grapher/StapParser.hxx
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-04 13:08:01 +0100
committerTim Moore <timoore@redhat.com>2009-12-04 13:08:01 +0100
commit5ddc5963ce06ecea574e90ca503a3ee598522d8f (patch)
treecd6dd73b8104da1c2527180b24b38b48828b307e /grapher/StapParser.hxx
parent388924acea820c7a1328eb2ac8a4128437853c3a (diff)
downloadsystemtap-steved-5ddc5963ce06ecea574e90ca503a3ee598522d8f.tar.gz
systemtap-steved-5ddc5963ce06ecea574e90ca503a3ee598522d8f.tar.xz
systemtap-steved-5ddc5963ce06ecea574e90ca503a3ee598522d8f.zip
support multiline data output from scripts run under the grapher
This is accompanied by support for multiline output in hover text. * grapher/StapParser.cxx (ioCallback): Read data 'til the end of line character, not just '\n'. Be careful to use I/O functions that don't treat '\n' specially. * grapher/StapParser.hxx: ditto * grapher/CairoWidget.cxx (CairoTextBox::draw): Perform line breaks for hover text. * testsuite/systemtap.examples/general/grapher.stp: Do multiline output of keyboard events. Also, fix longstanding breaking in the pty probe.
Diffstat (limited to 'grapher/StapParser.hxx')
-rw-r--r--grapher/StapParser.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/grapher/StapParser.hxx b/grapher/StapParser.hxx
index a77ad1bc..4f1cbd5a 100644
--- a/grapher/StapParser.hxx
+++ b/grapher/StapParser.hxx
@@ -14,10 +14,11 @@ class StapParser
GraphWidget* _widget;
int _errFd;
int _inFd;
+ unsigned char _lineEndChar;
public:
StapParser(Gtk::Window* win,
GraphWidget* widget) : _win(win), _widget(widget), _errFd(-1),
- _inFd(-1)
+ _inFd(-1), _lineEndChar('\n')
{
}
void parseData(std::tr1::shared_ptr<GraphDataBase> gdata,