{"action":"created","issue":{"url":"https://api.github.com/repos/martinwguy/xvi/issues/30","repository_url":"https://api.github.com/repos/martinwguy/xvi","labels_url":"https://api.github.com/repos/martinwguy/xvi/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/martinwguy/xvi/issues/30/comments","events_url":"https://api.github.com/repos/martinwguy/xvi/issues/30/events","html_url":"https://github.com/martinwguy/xvi/issues/30","id":187727698,"number":30,"title":"The length of command lines is limited to WIDTH-2 characters","user":{"login":"martinwguy","id":608929,"avatar_url":"https://avatars.githubusercontent.com/u/608929?v=3","gravatar_id":"","url":"https://api.github.com/users/martinwguy","html_url":"https://github.com/martinwguy","followers_url":"https://api.github.com/users/martinwguy/followers","following_url":"https://api.github.com/users/martinwguy/following{/other_user}","gists_url":"https://api.github.com/users/martinwguy/gists{/gist_id}","starred_url":"https://api.github.com/users/martinwguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinwguy/subscriptions","organizations_url":"https://api.github.com/users/martinwguy/orgs","repos_url":"https://api.github.com/users/martinwguy/repos","events_url":"https://api.github.com/users/martinwguy/events{/privacy}","received_events_url":"https://api.github.com/users/martinwguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-07T14:38:29Z","updated_at":"2016-12-13T12:47:23Z","closed_at":null,"body":"Xvi stops accepting command-line input at the WIDTH-1th character of the screen.\r\n\r\nvim, nvi and classic vi just wrap to the next line, which scrolls the whole screen by a line, then they redraw the whole screen when you hit enter (or ^C or Esc). Strangely, classic vi wraps at the 79th character, then subsequent lines at the 80th (or WIDTH-1 and WIDTH) while nvi and vim wrap both the first line and continuation lines at the 80th (or WIDTHth) character. I'm not sure how invasive a change that would be for xvi. It's not just a question of carrying on printing characters and leaving the terminal to do the wrapping, as xvi also runs on character-memory-mapped displays, for example on the IBM PC in EGA and VGA modes it writes directly to the frame buffer, so we'd need to explicitly scroll the whole display ourselves to mimic this behaviour."},"comment":{"url":"https://api.github.com/repos/martinwguy/xvi/issues/comments/266729874","html_url":"https://github.com/martinwguy/xvi/issues/30#issuecomment-266729874","issue_url":"https://api.github.com/repos/martinwguy/xvi/issues/30","id":266729874,"user":{"login":"martinwguy","id":608929,"avatar_url":"https://avatars.githubusercontent.com/u/608929?v=3","gravatar_id":"","url":"https://api.github.com/users/martinwguy","html_url":"https://github.com/martinwguy","followers_url":"https://api.github.com/users/martinwguy/followers","following_url":"https://api.github.com/users/martinwguy/following{/other_user}","gists_url":"https://api.github.com/users/martinwguy/gists{/gist_id}","starred_url":"https://api.github.com/users/martinwguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinwguy/subscriptions","organizations_url":"https://api.github.com/users/martinwguy/orgs","repos_url":"https://api.github.com/users/martinwguy/repos","events_url":"https://api.github.com/users/martinwguy/events{/privacy}","received_events_url":"https://api.github.com/users/martinwguy/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T12:47:23Z","updated_at":"2016-12-13T12:47:23Z","body":"Ah, OK, sorry I misunderstood.\n\nThe behaviour I had assumed was that when they typed the 80th(*)\ncommand line character it would keep the cursor at the right edge and\nscroll the command line by one character, and similarly if they keep\ntyping, and shifting it back if they move left again beyond the first\ndisplayed column (or hit \"Home\").\n\n*) Or maybe the 79th character - I remember seeing somewhere that xvi\nis shy of writing anything into the bottom right character cell\nbecause it can't predict the behaviour of some terminals\n\nCan you see if that is implementable without too much trouble?\n\nI confirm the segfault is fixed.\n\nOn 13/12/2016, Martin Guy <martinwguy@gmail.com> wrote:\n> An alternative would be to scroll it without adding continuation\n> marks, and leave them to understand that it's scrolled when they keep\n> typing and see the sideways movement of the command line.\n>\n"}}
{"actor":{"display_login":"martinwguy"}}