{"action":"created","issue":{"url":"https://api.github.com/repos/KLuka/shellinabox_import/issues/7","labels_url":"https://api.github.com/repos/KLuka/shellinabox_import/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/KLuka/shellinabox_import/issues/7/comments","events_url":"https://api.github.com/repos/KLuka/shellinabox_import/issues/7/events","html_url":"https://github.com/KLuka/shellinabox_import/issues/7","id":59628193,"number":7,"title":"Cursor position / font weirdness","user":{"login":"KLuka","id":1918763,"avatar_url":"https://avatars.githubusercontent.com/u/1918763?v=3","gravatar_id":"","url":"https://api.github.com/users/KLuka","html_url":"https://github.com/KLuka","followers_url":"https://api.github.com/users/KLuka/followers","following_url":"https://api.github.com/users/KLuka/following{/other_user}","gists_url":"https://api.github.com/users/KLuka/gists{/gist_id}","starred_url":"https://api.github.com/users/KLuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KLuka/subscriptions","organizations_url":"https://api.github.com/users/KLuka/orgs","repos_url":"https://api.github.com/users/KLuka/repos","events_url":"https://api.github.com/users/KLuka/events{/privacy}","received_events_url":"https://api.github.com/users/KLuka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KLuka/shellinabox_import/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/KLuka/shellinabox_import/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/KLuka/shellinabox_import/labels/Priority-Medium","name":"Priority-Medium","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-03T11:20:41Z","updated_at":"2015-03-03T11:21:14Z","closed_at":null,"body":"_From [TomOeh...@gmail.com](https://code.google.com/u/105321439125137065723/) on March 18, 2009 19:31:09_\n\nWhat steps will reproduce the problem? 1. Type a long line, watch the cursor position. What is the expected output? What do you see instead? The cursor should be where the next character will render.\r\n\r\nInstead, it lags more and more as I type, about 1 for 15.\r\nThat is, every 15 characters, it is one character more displaced left. What version of the product are you using? On what operating system? Firefox 3.07, probably Andale Mono is the default monospace font. Please provide any additional information below. NOTA BENE: The problem is NOT occurring with Linux Firefox 3.07 and Linux\r\ndefault Monospace font.  I conjecture that this is a font metrics problem?\r\n\r\nBut I don't know if the problem is with shellinabox or with the font?\r\n\r\nPossibly this is really a bug with Microsoft's Andale Mono font?\r\n\r\nOr maybe it is a bug with how shellinabox javascript figures out the metric\r\nfor where to put the cursor?  I don't know the heuristic...\n\n_Original issue: http://code.google.com/p/shellinabox/issues/detail?id=7_"},"comment":{"url":"https://api.github.com/repos/KLuka/shellinabox_import/issues/comments/76928176","html_url":"https://github.com/KLuka/shellinabox_import/issues/7#issuecomment-76928176","issue_url":"https://api.github.com/repos/KLuka/shellinabox_import/issues/7","id":76928176,"user":{"login":"KLuka","id":1918763,"avatar_url":"https://avatars.githubusercontent.com/u/1918763?v=3","gravatar_id":"","url":"https://api.github.com/users/KLuka","html_url":"https://github.com/KLuka","followers_url":"https://api.github.com/users/KLuka/followers","following_url":"https://api.github.com/users/KLuka/following{/other_user}","gists_url":"https://api.github.com/users/KLuka/gists{/gist_id}","starred_url":"https://api.github.com/users/KLuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KLuka/subscriptions","organizations_url":"https://api.github.com/users/KLuka/orgs","repos_url":"https://api.github.com/users/KLuka/repos","events_url":"https://api.github.com/users/KLuka/events{/privacy}","received_events_url":"https://api.github.com/users/KLuka/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T11:21:14Z","updated_at":"2015-03-03T11:21:14Z","body":"_From [TomOeh...@gmail.com](https://code.google.com/u/105321439125137065723/) on March 21, 2009 09:21:58_\n\n*MUCH* better!\r\n\r\nThe long sequence of space characters does still have an issue, but I can't see where\r\nI would care unless I was trying to enter some weird ascii-art.  And, as soon as I\r\ntype a text character, it jumps to the right place.  The remaining weirdness is way a\r\nlow priority now.\r\n\r\nThe stylesheet is better, too, it picks a font that looks more like what I would\r\nexpect, say, xterm to pick.  Might be nice if the right click menu had some font\r\noptions, actually, like ctrl-right on xterm.\r\n\r\nThe big issue for me was when I was typing text and progressively the cursor went\r\nweird, now that doesn't seem to happen at all vertically or horizontally.\r\n\r\nSince the cursor is able to locate correctly when text is entered, is it something\r\nwhere a millisecond introduction and removal of a '.' or even an &nbsp; would locate\r\nit?  Never mind, I shouldn't make guesses when I haven't bothered to read the code...\r\n\r\nI guess I'm going to have to get comfortable with Ajax at some point, I'm a Java\r\ndeveloper and comfortable with C, but I mostly avoid ECMAScript, I've even loaned out\r\nmy Javascript and Ajax books to another developer trying to do RDD (Resume Driven\r\nDevelopment).  But this kind of thing is cool, if you can do this, all kinds of ideas\r\nspring to mind...\r\n\r\nThanks!"}}