The upstream patch got applied as commit b121da2e21cabd2793fc423d84ceddd919fd6e47 and was released in sudo 1.8.11. Therefore this bug is fixed since Ubuntu 16.04 (xenial).
** Changed in: sudo (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to sudo in Ubuntu. https://bugs.launchpad.net/bugs/1322843 Title: foregrounding a sudo'd vim will sometimes break terminal state Status in sudo: Unknown Status in sudo package in Ubuntu: Fix Released Bug description: See this bug: http://www.sudo.ws/bugs/show_bug.cgi?id=649 Started on Ubuntu/Trusty since it has a sudo after 1.8.7, (precise has 1.8.3). Steps to reproduce: - take a local machine with a recent sudo (after 1.8.7) - sudo vi - ^Z (control-Z) - fg - repeat ^Z and fg until the fg fails and the screen is partially cleared - now a second fg wil open vim with a broken terminal state: arrow keys will render the escape sequences and other nastiness Fix is provided upstream, but author is currently figuring out why it breaks. Cheers, Walter Doekes OSSO B.V. To manage notifications about this bug go to: https://bugs.launchpad.net/sudo/+bug/1322843/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp