notcurses-keyplot #430

This commit is contained in:
nick black 2020-04-02 21:27:21 -04:00 committed by Nick Black
parent 5239900ac8
commit 09d8912d4e
2 changed files with 13 additions and 1 deletions

View File

@ -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);

View File

@ -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;
} }