summaryrefslogtreecommitdiff
path: root/ycurses/src/examples/example4.cpp
blob: 7e0e3172f68e8a113f27b7115e3bb88c78d812f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "example4.h"

int example4()
{
  curses cur;
  cursor::set_invisible();

  window win_root(root);
  win_root.print(1, 1, "Class menu example...");

  vector<string> vec_choices;
  vec_choices.push_back("Hallo das ist asd asdas d asd asda sd asd asd a");
  vec_choices.push_back("Bdsfsdsa das d asd asd asd as das djf");
  vec_choices.push_back("s das d asd saa sdCsdfsdf");
  menu menu1(vec_choices);
 
  menu1.run(); 

  return 0;
}