replaced setxtermwidth script with resize()