{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/stock-logistics-barcode/issues/115","repository_url":"https://api.github.com/repos/OCA/stock-logistics-barcode","labels_url":"https://api.github.com/repos/OCA/stock-logistics-barcode/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/OCA/stock-logistics-barcode/issues/115/comments","events_url":"https://api.github.com/repos/OCA/stock-logistics-barcode/issues/115/events","html_url":"https://github.com/OCA/stock-logistics-barcode/pull/115","id":275714420,"number":115,"title":"[FIX] Handle KEY_RESIZE event in a selection action","user":{"login":"benwillig","id":27724417,"avatar_url":"https://avatars3.githubusercontent.com/u/27724417?v=4","gravatar_id":"","url":"https://api.github.com/users/benwillig","html_url":"https://github.com/benwillig","followers_url":"https://api.github.com/users/benwillig/followers","following_url":"https://api.github.com/users/benwillig/following{/other_user}","gists_url":"https://api.github.com/users/benwillig/gists{/gist_id}","starred_url":"https://api.github.com/users/benwillig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benwillig/subscriptions","organizations_url":"https://api.github.com/users/benwillig/orgs","repos_url":"https://api.github.com/users/benwillig/repos","events_url":"https://api.github.com/users/benwillig/events{/privacy}","received_events_url":"https://api.github.com/users/benwillig/received_events","type":"User","site_admin":false},"labels":[{"id":107326721,"url":"https://api.github.com/repos/OCA/stock-logistics-barcode/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/OCA/stock-logistics-barcode/milestones/2","html_url":"https://github.com/OCA/stock-logistics-barcode/milestone/2","labels_url":"https://api.github.com/repos/OCA/stock-logistics-barcode/milestones/2/labels","id":2052388,"number":2,"title":"10.0","description":null,"creator":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars2.githubusercontent.com/u/7165771?v=4","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":18,"state":"open","created_at":"2016-10-06T14:08:57Z","updated_at":"2017-12-15T01:49:44Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-11-21T13:37:47Z","updated_at":"2017-12-15T17:10:16Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/OCA/stock-logistics-barcode/pulls/115","html_url":"https://github.com/OCA/stock-logistics-barcode/pull/115","diff_url":"https://github.com/OCA/stock-logistics-barcode/pull/115.diff","patch_url":"https://github.com/OCA/stock-logistics-barcode/pull/115.patch"},"body":"Using ```sentinel```, there is an error when resizing the terminal. During resizing, KEY_RESIZE is sent but it's not handled in ```sentinel.py```. This errors occurs when using a scanner which has no physical keyboard (KEY_RESIZE is sent when the virtual keyboard is shown) but it can be reproduced with a standard terminal by connecting with the sentinel user.\r\n\r\nThis PR only fixes the error on the menu list screen. For other screens, the process will try to display chars outside the screen because the KEY_RESIZE event forced the terminal size. Then, following error is raised :  ```_curses.error: addstr() returned ERR``` and after that, current screen and related actions are blocked and user must kill & reopen the SSH connection in order to work again.\r\n\r\nAt the moment, I didn't find any solution to fix all screens without adding other errors. @sylvain-garancher Do you have any ideas?"},"comment":{"url":"https://api.github.com/repos/OCA/stock-logistics-barcode/issues/comments/352059652","html_url":"https://github.com/OCA/stock-logistics-barcode/pull/115#issuecomment-352059652","issue_url":"https://api.github.com/repos/OCA/stock-logistics-barcode/issues/115","id":352059652,"user":{"login":"sylvain-garancher","id":2804014,"avatar_url":"https://avatars1.githubusercontent.com/u/2804014?v=4","gravatar_id":"","url":"https://api.github.com/users/sylvain-garancher","html_url":"https://github.com/sylvain-garancher","followers_url":"https://api.github.com/users/sylvain-garancher/followers","following_url":"https://api.github.com/users/sylvain-garancher/following{/other_user}","gists_url":"https://api.github.com/users/sylvain-garancher/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvain-garancher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvain-garancher/subscriptions","organizations_url":"https://api.github.com/users/sylvain-garancher/orgs","repos_url":"https://api.github.com/users/sylvain-garancher/repos","events_url":"https://api.github.com/users/sylvain-garancher/events{/privacy}","received_events_url":"https://api.github.com/users/sylvain-garancher/received_events","type":"User","site_admin":false},"created_at":"2017-12-15T17:10:16Z","updated_at":"2017-12-15T17:10:16Z","author_association":"NONE","body":"@lasley Good idea.\r\nI never think about submitting PRs to PRs branches... :)"}}
{"actor":{"display_login":"sylvain-garancher"}}