ui.h 678 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef UI_H
  2. #define UI_H
  3. #include "vt.h"
  4. #include "xio.h"
  5. #include "vbi.h"
  6. #include "search.h"
  7. #define N_HISTORY (1 << 6) // number of history entries
  8. struct vtwin
  9. {
  10. struct vtwin *parent, *child;
  11. struct xio_win *xw;
  12. struct vbi *vbi;
  13. struct {
  14. int pgno;
  15. int subno;
  16. } hist[N_HISTORY];
  17. int hist_top;
  18. int searching;
  19. int revealed;
  20. int hold;
  21. int pgno, subno;
  22. struct vt_page *vtp;
  23. struct search *search;
  24. int searchdir;
  25. int status;
  26. u8 statusline[W+1];
  27. struct export *export;
  28. };
  29. extern struct vtwin *vtwin_new(struct xio *xio, struct vbi *vbi, char *geom,
  30. struct vtwin *parent, int pgno, int subno);
  31. #endif