Window echoing is a window option and is set with the set window options function, sw_opt(), as shown below:
void sw_opt(WNECHO, state, wnp)
where state is ON or OFF.