notcurses-keyplot #430

pull/434/head
nick black 5 years ago committed by Nick Black
parent 5239900ac8
commit 09d8912d4e

@ -2531,6 +2531,10 @@ typedef struct ncplot_options {
// of keys. for a time range, say the previous hour sampled with second // of keys. for a time range, say the previous hour sampled with second
// resolution, the independent variable would be the range [0..3960). // resolution, the independent variable would be the range [0..3960).
int64_t minx, maxx; int64_t minx, maxx;
// y axis min and max. set the two equal (to any stand-in value; 0 is
// recommended) for autodiscovery of range.
int64_t miny, maxy;
bool exponentialy; // is y-axis exponential?
} ncplot_options; } ncplot_options;
API struct ncplot* ncplot_create(struct ncplane* n, const ncplot_options* opts); API struct ncplot* ncplot_create(struct ncplane* n, const ncplot_options* opts);

@ -2,5 +2,13 @@
#include <ncpp/NotCurses.hh> #include <ncpp/NotCurses.hh>
int main(void){ int main(void){
return EXIT_FAILURE; // FIXME if(setlocale(LC_ALL, "") == nullptr){
return EXIT_FAILURE;
}
ncpp::NotCurses nc;
if(!nc.mouse_enable()){
return EXIT_FAILURE;
}
// FIXME
return EXIT_SUCCESS;
} }

Loading…
Cancel
Save