{"issue":{"created_at":"2011-12-02T16:23:36Z","state":"open","updated_at":"2011-12-06T00:03:46Z","comments":3,"user":{"gravatar_id":"8988285911e50fbe248b659d43bccf83","id":38294,"url":"https://api.github.com/users/mdboom","login":"mdboom","avatar_url":"https://secure.gravatar.com/avatar/8988285911e50fbe248b659d43bccf83?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"This addresses the bug in #629.\r\n\r\nIt extends AnsiCodeProcessor to understand the '\\r' character and move the cursor back to the start of the line.  It also understands the '\\b' character and calls QTApplication::beep().  Neither are strictly speaking ANSI code sequences, of course, but they seem related enough and was simple enough to do it this way.\r\n\r\nHere's a \"poor man's scrollbar\" function to help test this:\r\n\r\n```\r\ndef scrollbar():\r\n    import sys\r\n    import time\r\n    for i in range(80):\r\n        print '\\r' + ('=' * i),\r\n        sys.stdout.flush() # required for regular console\r\n        time.sleep(0.1)\r\n    print '\\b'\r\n```","assignee":null,"id":2429810,"number":1089,"pull_request":{"patch_url":"https://github.com/ipython/ipython/pull/1089.patch","html_url":"https://github.com/ipython/ipython/pull/1089","diff_url":"https://github.com/ipython/ipython/pull/1089.diff"},"labels":[],"title":"Support carriage return ('\\r') and beep ('\\b') characters in the qtconsole","html_url":"https://github.com/ipython/ipython/issues/1089","closed_at":null,"url":"https://api.github.com/repos/ipython/ipython/issues/1089","milestone":null},"action":"created","comment":{"created_at":"2011-12-06T00:03:46Z","updated_at":"2011-12-06T00:03:46Z","user":{"gravatar_id":"d5b897c37001627c2e3ad3c1e8a7e6fb","id":151929,"url":"https://api.github.com/users/minrk","login":"minrk","avatar_url":"https://secure.gravatar.com/avatar/d5b897c37001627c2e3ad3c1e8a7e6fb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"This seems good to go. @epatters - does the explanation satisfy you?","id":3025885,"url":"https://api.github.com/repos/ipython/ipython/issues/comments/3025885"}}