/****************************************************************************
- * Copyright (c) 2007 Free Software Foundation, Inc. *
+ * Copyright (c) 2007,2010 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 *
* authorization. *
****************************************************************************/
/*
- * $Id: inchs.c,v 1.9 2007/07/21 19:01:43 tom Exp $
+ * $Id: inchs.c,v 1.10 2010/05/01 19:13:46 tom Exp $
*
* Author: Thomas E Dickey
*/
break;
}
- mvwprintw(chrwin, 0, 0, "char:");
+ MvWPrintw(chrwin, 0, 0, "char:");
wclrtoeol(chrwin);
if (txtwin != stdscr) {
}
wnoutrefresh(chrwin);
- mvwprintw(strwin, 0, 0, "text:");
+ MvWPrintw(strwin, 0, 0, "text:");
wclrtobot(strwin);
limit = getmaxx(strwin) - 5;
if (txtwin != stdscr) {
wmove(txtwin, txt_y, txt_x);
if (winchstr(txtwin, text) != ERR) {
- mvwaddchstr(strwin, 0, 5, text);
+ MvWAddChStr(strwin, 0, 5, text);
}
wmove(txtwin, txt_y, txt_x);
if (winchnstr(txtwin, text, limit) != ERR) {
- mvwaddchstr(strwin, 1, 5, text);
+ MvWAddChStr(strwin, 1, 5, text);
}
if (mvwinchstr(txtwin, txt_y, txt_x, text) != ERR) {
- mvwaddchstr(strwin, 2, 5, text);
+ MvWAddChStr(strwin, 2, 5, text);
}
if (mvwinchnstr(txtwin, txt_y, txt_x, text, limit) != ERR) {
- mvwaddchstr(strwin, 3, 5, text);
+ MvWAddChStr(strwin, 3, 5, text);
}
} else {
move(txt_y, txt_x);
if (inchstr(text) != ERR) {
- mvwaddchstr(strwin, 0, 5, text);
+ MvWAddChStr(strwin, 0, 5, text);
}
move(txt_y, txt_x);
if (inchnstr(text, limit) != ERR) {
- mvwaddchstr(strwin, 1, 5, text);
+ MvWAddChStr(strwin, 1, 5, text);
}
if (mvinchstr(txt_y, txt_x, text) != ERR) {
- mvwaddchstr(strwin, 2, 5, text);
+ MvWAddChStr(strwin, 2, 5, text);
}
if (mvinchnstr(txt_y, txt_x, text, limit) != ERR) {
- mvwaddchstr(strwin, 3, 5, text);
+ MvWAddChStr(strwin, 3, 5, text);
}
}