mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
notcurses-keyplot #430
This commit is contained in:
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
|
||||
// resolution, the independent variable would be the range [0..3960).
|
||||
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;
|
||||
|
||||
API struct ncplot* ncplot_create(struct ncplane* n, const ncplot_options* opts);
|
||||
|
@ -2,5 +2,13 @@
|
||||
#include <ncpp/NotCurses.hh>
|
||||
|
||||
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…
x
Reference in New Issue
Block a user