Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <curses.h>
- #include <termcap.h>
- #include <sys/types.h>
- #include <stdlib.h>
- //#include <term.h>
- #include <stdio.h>
- #define T_N 201
- #define T_STR 2
- char * D_entry;
- int main()
- {
- char *s;
- D_entry=malloc(10000);
- tgetent(D_entry, getenv("TERM"));
- if(D_entry){
- printf("OK\n");
- s=tgetstr("cl", &D_entry);
- printf(s?"OK\n":"NULL\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement