git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1049
270642c3-0616-0410-b53a-bc976706d245
if (enabled_)
return;
enabled_ = true;
+ for (unsigned n (0); n < auxDisplay_.size(); ++n) {
+ toLine(n+1);
+ put(auxDisplay_[n]);
+ }
+ toLine(0);
forceRedisplay();
}
{
if (! enabled_)
return;
+ reset();
clearLine();
enabled_ = false;
}
toLine(line+1);
clearLine();
put(text);
+ while (auxDisplay_.size() < line+1)
+ auxDisplay_.push_back("");
+ auxDisplay_[line] = text;
}
prefix_ unsigned senf::term::LineEditor::maxAuxDisplayHeight()
prefix_ void senf::term::LineEditor::clearAuxDisplay()
{
reset();
+ auxDisplay_.clear();
}
prefix_ std::string const & senf::term::LineEditor::text()
typedef std::map<keycode_t, KeyBinding> KeyMap;
typedef std::vector<std::string> History;
+ typedef std::vector<std::string> AuxDisplay;
bool enabled_;
bool redisplayNeeded_;
KeyMap bindings_;
History history_;
unsigned historyPoint_;
+ AuxDisplay auxDisplay_;
};
namespace bindings {