A workaround to sfd_getline by A. Kakuto