{"action":"created","comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/comments/48578546","id":48578546,"diff_hunk":"@@ -0,0 +1,38 @@\n+- Feature Name: esc_escape\n+- Start Date: 2015-12-29\n+- RFC PR: (leave this empty)\n+- Rust Issue: (leave this empty)\n+\n+# Summary\n+[summary]: #summary\n+\n+Add a byte escape `\\e` as shorthand for 0x1B (ESC), similar to GCC's `\\e`.\n+\n+# Motivation\n+[motivation]: #motivation\n+\n+ANSI escape codes are a vital part of CLIs. These are used both in stdin (special keys, control commands, etc.) and stdout (colors, text formatting, change in previous text, movement of the cursor, etc.). Adding a byte escape for it will make it easier to read the source code of and write interactive CLIs.\n+\n+Many compilers do already have this byte escape, GCC is an example (however, `\\e` is not a part of ISO C).\n+\n+# Detailed design\n+[design]: #detailed-design\n+\n+Add a byte escape `\\e` as shorthand for 0x1B (ESC) to characters, strings, byte characters, and byte strings. Furthermore, add it to the escape iterators.\n+\n+# Drawbacks\n+[drawbacks]: #drawbacks\n+\n+None.","path":"text/0000-esc-escape.md","position":26,"original_position":26,"commit_id":"c99183729301b3662e601ae7656bbbbae1368695","original_commit_id":"c99183729301b3662e601ae7656bbbbae1368695","user":{"login":"withoutboats","id":9063376,"avatar_url":"https://avatars.githubusercontent.com/u/9063376?v=3","gravatar_id":"","url":"https://api.github.com/users/withoutboats","html_url":"https://github.com/withoutboats","followers_url":"https://api.github.com/users/withoutboats/followers","following_url":"https://api.github.com/users/withoutboats/following{/other_user}","gists_url":"https://api.github.com/users/withoutboats/gists{/gist_id}","starred_url":"https://api.github.com/users/withoutboats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withoutboats/subscriptions","organizations_url":"https://api.github.com/users/withoutboats/orgs","repos_url":"https://api.github.com/users/withoutboats/repos","events_url":"https://api.github.com/users/withoutboats/events{/privacy}","received_events_url":"https://api.github.com/users/withoutboats/received_events","type":"User","site_admin":false},"body":"There is a definite drawback here; adding more escape codes increases the incidental complexity of the language (and [graydon cited some other common escapes as something he was glad Rust did not have](﻿﻿https://graydon2.dreamwidth.org/218040.html)).","created_at":"2015-12-29T23:39:16Z","updated_at":"2015-12-29T23:39:16Z","html_url":"https://github.com/rust-lang/rfcs/pull/1437#discussion_r48578546","pull_request_url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1437","_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rfcs/pulls/comments/48578546"},"html":{"href":"https://github.com/rust-lang/rfcs/pull/1437#discussion_r48578546"},"pull_request":{"href":"https://api.github.com/repos/rust-lang/rfcs/pulls/1437"}}},"pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1437","id":54754358,"html_url":"https://github.com/rust-lang/rfcs/pull/1437","diff_url":"https://github.com/rust-lang/rfcs/pull/1437.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/1437.patch","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1437","number":1437,"state":"open","locked":false,"title":"ESC byte escape","user":{"login":"Ticki","id":13349091,"avatar_url":"https://avatars.githubusercontent.com/u/13349091?v=3","gravatar_id":"","url":"https://api.github.com/users/Ticki","html_url":"https://github.com/Ticki","followers_url":"https://api.github.com/users/Ticki/followers","following_url":"https://api.github.com/users/Ticki/following{/other_user}","gists_url":"https://api.github.com/users/Ticki/gists{/gist_id}","starred_url":"https://api.github.com/users/Ticki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ticki/subscriptions","organizations_url":"https://api.github.com/users/Ticki/orgs","repos_url":"https://api.github.com/users/Ticki/repos","events_url":"https://api.github.com/users/Ticki/events{/privacy}","received_events_url":"https://api.github.com/users/Ticki/received_events","type":"User","site_admin":false},"body":"[Rendered](https://github.com/Ticki/rfcs/blob/esc-escape/text/0000-esc-escape.md)","created_at":"2015-12-29T20:11:54Z","updated_at":"2015-12-29T23:39:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60527c716b8c5ebb417cfdc113d3f1d11b7f253a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1437/commits","review_comments_url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1437/comments","review_comment_url":"https://api.github.com/repos/rust-lang/rfcs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1437/comments","statuses_url":"https://api.github.com/repos/rust-lang/rfcs/statuses/c99183729301b3662e601ae7656bbbbae1368695","head":{"label":"Ticki:esc-escape","ref":"esc-escape","sha":"c99183729301b3662e601ae7656bbbbae1368695","user":{"login":"Ticki","id":13349091,"avatar_url":"https://avatars.githubusercontent.com/u/13349091?v=3","gravatar_id":"","url":"https://api.github.com/users/Ticki","html_url":"https://github.com/Ticki","followers_url":"https://api.github.com/users/Ticki/followers","following_url":"https://api.github.com/users/Ticki/following{/other_user}","gists_url":"https://api.github.com/users/Ticki/gists{/gist_id}","starred_url":"https://api.github.com/users/Ticki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ticki/subscriptions","organizations_url":"https://api.github.com/users/Ticki/orgs","repos_url":"https://api.github.com/users/Ticki/repos","events_url":"https://api.github.com/users/Ticki/events{/privacy}","received_events_url":"https://api.github.com/users/Ticki/received_events","type":"User","site_admin":false},"repo":{"id":48624792,"name":"rfcs","full_name":"Ticki/rfcs","owner":{"login":"Ticki","id":13349091,"avatar_url":"https://avatars.githubusercontent.com/u/13349091?v=3","gravatar_id":"","url":"https://api.github.com/users/Ticki","html_url":"https://github.com/Ticki","followers_url":"https://api.github.com/users/Ticki/followers","following_url":"https://api.github.com/users/Ticki/following{/other_user}","gists_url":"https://api.github.com/users/Ticki/gists{/gist_id}","starred_url":"https://api.github.com/users/Ticki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ticki/subscriptions","organizations_url":"https://api.github.com/users/Ticki/orgs","repos_url":"https://api.github.com/users/Ticki/repos","events_url":"https://api.github.com/users/Ticki/events{/privacy}","received_events_url":"https://api.github.com/users/Ticki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ticki/rfcs","description":"RFCs for changes to Rust","fork":true,"url":"https://api.github.com/repos/Ticki/rfcs","forks_url":"https://api.github.com/repos/Ticki/rfcs/forks","keys_url":"https://api.github.com/repos/Ticki/rfcs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ticki/rfcs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ticki/rfcs/teams","hooks_url":"https://api.github.com/repos/Ticki/rfcs/hooks","issue_events_url":"https://api.github.com/repos/Ticki/rfcs/issues/events{/number}","events_url":"https://api.github.com/repos/Ticki/rfcs/events","assignees_url":"https://api.github.com/repos/Ticki/rfcs/assignees{/user}","branches_url":"https://api.github.com/repos/Ticki/rfcs/branches{/branch}","tags_url":"https://api.github.com/repos/Ticki/rfcs/tags","blobs_url":"https://api.github.com/repos/Ticki/rfcs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ticki/rfcs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ticki/rfcs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ticki/rfcs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ticki/rfcs/statuses/{sha}","languages_url":"https://api.github.com/repos/Ticki/rfcs/languages","stargazers_url":"https://api.github.com/repos/Ticki/rfcs/stargazers","contributors_url":"https://api.github.com/repos/Ticki/rfcs/contributors","subscribers_url":"https://api.github.com/repos/Ticki/rfcs/subscribers","subscription_url":"https://api.github.com/repos/Ticki/rfcs/subscription","commits_url":"https://api.github.com/repos/Ticki/rfcs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ticki/rfcs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ticki/rfcs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ticki/rfcs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ticki/rfcs/contents/{+path}","compare_url":"https://api.github.com/repos/Ticki/rfcs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ticki/rfcs/merges","archive_url":"https://api.github.com/repos/Ticki/rfcs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ticki/rfcs/downloads","issues_url":"https://api.github.com/repos/Ticki/rfcs/issues{/number}","pulls_url":"https://api.github.com/repos/Ticki/rfcs/pulls{/number}","milestones_url":"https://api.github.com/repos/Ticki/rfcs/milestones{/number}","notifications_url":"https://api.github.com/repos/Ticki/rfcs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ticki/rfcs/labels{/name}","releases_url":"https://api.github.com/repos/Ticki/rfcs/releases{/id}","created_at":"2015-12-26T22:01:50Z","updated_at":"2015-12-25T02:59:43Z","pushed_at":"2015-12-29T20:03:00Z","git_url":"git://github.com/Ticki/rfcs.git","ssh_url":"git@github.com:Ticki/rfcs.git","clone_url":"https://github.com/Ticki/rfcs.git","svn_url":"https://github.com/Ticki/rfcs","homepage":"","size":2430,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rust-lang:master","ref":"master","sha":"3a16a14ca5ed1100b4b76c303e97774dfe765f26","user":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":17527989,"name":"rfcs","full_name":"rust-lang/rfcs","owner":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang/rfcs","description":"RFCs for changes to Rust","fork":false,"url":"https://api.github.com/repos/rust-lang/rfcs","forks_url":"https://api.github.com/repos/rust-lang/rfcs/forks","keys_url":"https://api.github.com/repos/rust-lang/rfcs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang/rfcs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang/rfcs/teams","hooks_url":"https://api.github.com/repos/rust-lang/rfcs/hooks","issue_events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang/rfcs/events","assignees_url":"https://api.github.com/repos/rust-lang/rfcs/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang/rfcs/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang/rfcs/tags","blobs_url":"https://api.github.com/repos/rust-lang/rfcs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang/rfcs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang/rfcs/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang/rfcs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang/rfcs/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang/rfcs/languages","stargazers_url":"https://api.github.com/repos/rust-lang/rfcs/stargazers","contributors_url":"https://api.github.com/repos/rust-lang/rfcs/contributors","subscribers_url":"https://api.github.com/repos/rust-lang/rfcs/subscribers","subscription_url":"https://api.github.com/repos/rust-lang/rfcs/subscription","commits_url":"https://api.github.com/repos/rust-lang/rfcs/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang/rfcs/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang/rfcs/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang/rfcs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang/rfcs/merges","archive_url":"https://api.github.com/repos/rust-lang/rfcs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang/rfcs/downloads","issues_url":"https://api.github.com/repos/rust-lang/rfcs/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang/rfcs/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang/rfcs/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang/rfcs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang/rfcs/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang/rfcs/releases{/id}","created_at":"2014-03-07T21:29:00Z","updated_at":"2015-12-29T09:49:48Z","pushed_at":"2015-12-29T20:11:55Z","git_url":"git://github.com/rust-lang/rfcs.git","ssh_url":"git@github.com:rust-lang/rfcs.git","clone_url":"https://github.com/rust-lang/rfcs.git","svn_url":"https://github.com/rust-lang/rfcs","homepage":"","size":4674,"stargazers_count":522,"watchers_count":522,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":252,"mirror_url":null,"open_issues_count":630,"forks":252,"open_issues":630,"watchers":522,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rfcs/pulls/1437"},"html":{"href":"https://github.com/rust-lang/rfcs/pull/1437"},"issue":{"href":"https://api.github.com/repos/rust-lang/rfcs/issues/1437"},"comments":{"href":"https://api.github.com/repos/rust-lang/rfcs/issues/1437/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/rfcs/pulls/1437/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang/rfcs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang/rfcs/pulls/1437/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/rfcs/statuses/c99183729301b3662e601ae7656bbbbae1368695"}}}}