curseSimpleOutput.hh 628 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * curseOutput.hh for jsonstroller
  3. *
  4. * Author: isundil <isundill@gmail.com>
  5. **/
  6. #pragma once
  7. #include "curseOutput.hh"
  8. class CurseSimpleOutput: public CurseOutput
  9. {
  10. public:
  11. CurseSimpleOutput(const Params &);
  12. ~CurseSimpleOutput();
  13. bool redraw();
  14. /**
  15. * Display data, and shutdown ncurses at the end
  16. **/
  17. void run(JSonElement *);
  18. /**
  19. * Root item
  20. **/
  21. JSonElement *data;
  22. /**
  23. * Initialize ncurses
  24. **/
  25. void init();
  26. /**
  27. * Release ncurses
  28. **/
  29. void shutdown();
  30. };