include PVE/PTY.pm (copied from pve-common)