[MacPorts] #22598: when pressing enter after entering "Sudo port selfupdate" via x11 or terminal cursor placed in wrong place to enter password