Advertisement
Guest User

Untitled

a guest
Aug 14th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <curses.h>
  2. #include <termcap.h>
  3. #include <sys/types.h>
  4. #include <stdlib.h>
  5. //#include <term.h>
  6. #include <stdio.h>
  7. #define T_N 201
  8. #define T_STR 2
  9.  
  10. char * D_entry;
  11.  
  12. int main()
  13. {
  14. char *s;
  15. D_entry=malloc(10000);
  16. tgetent(D_entry, getenv("TERM"));
  17. if(D_entry){
  18. printf("OK\n");
  19. s=tgetstr("cl", &D_entry);
  20. printf(s?"OK\n":"NULL\n");
  21. }
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement