/****************************************************************************
- * Copyright (c) 2014 Free Software Foundation, Inc. *
+ * Copyright (c) 2014,2017 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
/*
* Author: Thomas E. Dickey
*
- * $Id: dots_curses.c,v 1.2 2014/06/28 20:33:24 tom Exp $
+ * $Id: dots_curses.c,v 1.4 2017/04/15 14:13:30 tom Exp $
*
* A simple demo of the curses interface used for comparison with termcap.
*/
{
int pair = mypair(fg, bg);
if (pair > 0) {
- attron((attr_t) COLOR_PAIR(mypair(fg, bg)));
+ attron(COLOR_PAIR(mypair(fg, bg)));
}
}
z = (int) (ranf() * COLORS);
if (ranf() > 0.01) {
set_colors(fg = z, bg);
- attron((attr_t) COLOR_PAIR(mypair(fg, bg)));
+ attron(COLOR_PAIR(mypair(fg, bg)));
} else {
set_colors(fg, bg = z);
napms(1);
napms(1);
}
}
- addch((chtype) p);
+ AddCh(p);
refresh();
++total_chars;
}