D Paste by Dejan Lekic
Description: CURSES.d
Hide line numbers

Create new paste
Post a reply
View replies

Paste:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
extern (C) {
  int mvaddch (int, int, chtype);
  int mvhline (int, int, chtype, int);
  int mvvline (int, int, chtype, int);

  WINDOW* initscr();
  int start_color();
  int cbreak();
  int keypad (void*, bool);
  int noecho ();
  int init_pair(short, short, short);
  int COLOR_PAIR(int);
  int mvprintw (int, int, char *,...);
  int refresh();
  int getch();
  int endwin();
  int attron(attr_t);

  // some extern variables
  WINDOW* stdscr;
  int LINES;
  int COLS;
  int TABSIZE;
  int COLORS;
  int COLOR_PAIRS;
  chtype[128] acs_map;

  // undocumented feature under AIX curses.
  int ESCDELAY; /// ESC expire time in milliseconds
  byte ttytype[];       /// needed for backward compatibility
} // extern(C)

// ..................................... Alternate character set constants ....
// TODO: Fix this somehow!
// VT100 symbols

const chtype ACS_ULCORNER = acs_map['l']; /* upper left corner */
const chtype ACS_LLCORNER       = acs_map['m']; /* lower left corner */
const chtype ACS_URCORNER       = acs_map['k']; /* upper right corner */
const chtype ACS_LRCORNER       = acs_map['j']; /* lower right corner */

Replies:
No replies posted yet