Add a parameter to write_clip() so that windlg.c need not call term_deselect