{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/6403","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/6403/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/6403/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/6403/events","html_url":"https://github.com/neovim/neovim/issues/6403","id":218169276,"number":6403,"title":"Neovim in an ssh session in konsole emits spurious \"q\" characters in prompts","user":{"login":"shlomif","id":3150,"avatar_url":"https://avatars1.githubusercontent.com/u/3150?v=4","gravatar_id":"","url":"https://api.github.com/users/shlomif","html_url":"https://github.com/shlomif","followers_url":"https://api.github.com/users/shlomif/followers","following_url":"https://api.github.com/users/shlomif/following{/other_user}","gists_url":"https://api.github.com/users/shlomif/gists{/gist_id}","starred_url":"https://api.github.com/users/shlomif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlomif/subscriptions","organizations_url":"https://api.github.com/users/shlomif/orgs","repos_url":"https://api.github.com/users/shlomif/repos","events_url":"https://api.github.com/users/shlomif/events{/privacy}","received_events_url":"https://api.github.com/users/shlomif/received_events","type":"User","site_admin":false},"labels":[{"id":77997475,"url":"https://api.github.com/repos/neovim/neovim/labels/duplicate","name":"duplicate","color":"e6e6e6","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/neovim/neovim/milestones/10","html_url":"https://github.com/neovim/neovim/milestone/10","labels_url":"https://api.github.com/repos/neovim/neovim/milestones/10/labels","id":1183808,"number":10,"title":"0.2","description":"","creator":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars0.githubusercontent.com/u/1359421?v=4","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":277,"state":"closed","created_at":"2015-06-27T19:05:24Z","updated_at":"2017-05-01T16:59:47Z","due_on":"2017-03-17T07:00:00Z","closed_at":"2017-05-01T16:59:47Z"},"comments":20,"created_at":"2017-03-30T11:42:49Z","updated_at":"2017-11-25T22:28:48Z","closed_at":"2017-04-04T13:26:33Z","author_association":"CONTRIBUTOR","body":"- `nvim --version`:\r\n```\r\nshlomif@lap:~$ /home/shlomif/apps/neovim/bin/nvim --version\r\nNVIM v0.2.0-1089-g8d13955\r\nBuild type: Debug\r\nCompilation: /home/shlomif/bin/cc -Wconversion -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/home/shlomif/Download/unpack/file/vim/neovim/build/config -I/home/shlomif/Download/unpack/file/vim/neovim/src -I/home/shlomif/Download/unpack/file/vim/neovim/.deps/usr/include -I/home/shlomif/Download/unpack/file/vim/neovim/.deps/usr/include -I/home/shlomif/Download/unpack/file/vim/neovim/.deps/usr/include -I/home/shlomif/Download/unpack/file/vim/neovim/.deps/usr/include -I/home/shlomif/Download/unpack/file/vim/neovim/.deps/usr/include -I/home/shlomif/Download/unpack/file/vim/neovim/.deps/usr/include -I/usr/include -I/home/shlomif/Download/unpack/file/vim/neovim/build/src/nvim/auto -I/home/shlomif/Download/unpack/file/vim/neovim/build/include\r\nCompiled by shlomif@localhost.localdomain\r\n\r\nOptional features included (+) or not (-): +acl   +iconv    +jemalloc +tui      \r\nFor differences from Vim, see :help vim-differences\r\n\r\n   system vimrc file: \"$VIM/sysinit.vim\"\r\n  fall-back for $VIM: \"/home/shlomif/apps/neovim/share/nvim\"\r\n\r\nshlomif@lap:~$ \r\n```\r\n- Vim (version: ) behaves differently? yes, it does\r\n- Operating system/version: Fedora 25 x64 and Mageia Linux x64 v6\r\n- Terminal name/version: konsole 16.12.3\r\n- `$TERM`: xterm-256color\r\n- Using ssh\r\n\r\n### Actual behaviour\r\n\r\nWhen editing the MAX_SEED line on this file in konsole in an ssh session, nvim emits random \"q\" characters on the screen.\r\n\r\n```\r\n#!/usr/bin/env python\r\n\r\nimport re\r\nimport sys\r\nfrom os.path import expanduser, isfile\r\nimport json\r\n\r\nif sys.version_info > (3,):\r\n    xrange = range\r\n\r\nMAX_SEED = 500\r\n\r\nhome = expanduser(\"~\")\r\n\r\nbasedir = home + \"/Backup/Arcs\"\r\n\r\nSTATE_FN = basedir + \"/FC_SOLVE_SUMMARIZE_RESULTS--state.json\"\r\n\r\nextract_len_re = re.compile(r'(?<=Length: )(-?[0-9]+)')\r\n\r\n\r\ndef extract(l):\r\n    return int(extract_len_re.search(l).group(1))\r\n\r\n\r\nNUM_DEALS = 32000\r\n\r\n\r\ndef calc_init_state():\r\n    state = {'start_nums': [], 'reached_seed': 1, 'mysum': 0,\r\n             'my_num_improved': 0, 'my_max': 0, 'output': '', }\r\n    with open(basedir + \"/FC_SOLVE_SUMMARIZE_RESULTS--fif-10.cat.txt\") as fh:\r\n        for l in fh:\r\n            state['start_nums'].append(extract(l))\r\n    assert len(state['start_nums']) == NUM_DEALS\r\n\r\n    state['run_nums'] = list(state['start_nums'])\r\n\r\n    return state\r\n\r\n\r\ndef write_state(state):\r\n    with open(STATE_FN, 'w') as fh:\r\n        fh.write(json.dumps(state))\r\n\r\n\r\nif not isfile(STATE_FN):\r\n    write_state(calc_init_state())\r\n\r\nstate = None\r\nwith open(STATE_FN) as fh:\r\n    state = json.loads(fh.read())\r\n\r\nprint(\"Seed\\tN\\tSum\\tMax\")\r\nsys.stdout.write(state['output'])\r\nfor seed in xrange(state['reached_seed'], MAX_SEED + 1):\r\n    with open(basedir +\r\n              \"/fcs-summary-len-seed/lens-theme1--seed=%d.txt\" % seed) as fh:\r\n        i = 0\r\n        for l in fh:\r\n            new = extract(l)\r\n            if new >= 0:\r\n                delta = state['run_nums'][i] - new\r\n                if delta > 0:\r\n                    orig = state['start_nums'][i]\r\n                    if state['run_nums'][i] == orig:\r\n                        state['my_num_improved'] += 1\r\n                    state['mysum'] += delta\r\n                    init_delta = orig - new\r\n                    if init_delta > state['my_max']:\r\n                        state['my_max'] = init_delta\r\n                    state['run_nums'][i] = new\r\n            i += 1\r\n    out_line = (\"%d\\t%d\\t%d\\t%d\" %\r\n                (seed, state['my_num_improved'],\r\n                 state['mysum'], state['my_max']))\r\n    state['output'] += out_line + \"\\n\"\r\n    print(out_line)\r\n\r\nstate['reached_seed'] = MAX_SEED\r\nwrite_state(state)\r\n\r\n``` \r\n### Expected behaviour\r\n\r\nIt should not emit them.\r\n\r\n### Steps to reproduce using `nvim -u NORC`\r\n\r\n```\r\nnvim -u NORC sum.py\r\n/500\r\nR\r\n<Esc>\r\n:w\r\n```\r\n\r\nNote: it does not happen in : 1. vim 2. xterm 3. outside ssh.\r\n\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/346970434","html_url":"https://github.com/neovim/neovim/issues/6403#issuecomment-346970434","issue_url":"https://api.github.com/repos/neovim/neovim/issues/6403","id":346970434,"user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars0.githubusercontent.com/u/1359421?v=4","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"created_at":"2017-11-25T22:28:48Z","updated_at":"2017-11-25T22:28:48Z","author_association":"OWNER","body":"I don't understand the \"me too\" reports. The problem is explained clearly: it's a Konsole bug. It can be fixed by disabling 'guicursor', like this:\r\n\r\n    set guicursor=\r\n\r\nNo need to say \"me too\"."}}
{"actor":{"display_login":"justinmk"}}