saving for xterm