improve publish script (windows)
ensure z- and friends don't send the current line off the edge of the screen