D - Escape sequence request
- Dn7 (1/1) Mar 24 2004 Add \e in string escapes, it should do the same as \x[escape key hex].
- Walter (3/4) Mar 24 2004 What's the rationale?
- Dn7 (3/7) Mar 24 2004 It is also used by C/C++, and they're common to use for writing attribut...
- Andy Friesen (3/5) Mar 24 2004 \033 isn't that hard to type, is it?
- Dn7 (2/7) Mar 24 2004 case 'e': return '\033'; break; isn't either.
- Andy Friesen (7/8) Mar 24 2004 It's not so much a matter of it being easy as a matter of it not at all
- Dn7 (2/7) Mar 24 2004 Let me check. \033. Still, how hard would it be making \e.
- Walter (5/12) Mar 24 2004 to
Add \e in string escapes, it should do the same as \x[escape key hex].
Mar 24 2004
"Dn7" <Dn7_member pathlink.com> wrote in message news:c3sok9$q5c$1 digitaldaemon.com...Add \e in string escapes, it should do the same as \x[escape key hex].What's the rationale?
Mar 24 2004
In article <c3st6d$128s$2 digitaldaemon.com>, Walter says..."Dn7" <Dn7_member pathlink.com> wrote in message news:c3sok9$q5c$1 digitaldaemon.com...It is also used by C/C++, and they're common to use for writing attributes to the console. I don't think it would take a lot of effort adding it ;)Add \e in string escapes, it should do the same as \x[escape key hex].What's the rationale?
Mar 24 2004
Dn7 wrote:It is also used by C/C++, and they're common to use for writing attributes to the console. I don't think it would take a lot of effort adding it ;)\033 isn't that hard to type, is it? -- andy
Mar 24 2004
In article <c3t5e2$1g6j$1 digitaldaemon.com>, Andy Friesen says...Dn7 wrote:case 'e': return '\033'; break; isn't either.It is also used by C/C++, and they're common to use for writing attributes to the console. I don't think it would take a lot of effort adding it ;)\033 isn't that hard to type, is it? -- andy
Mar 24 2004
Dn7 wrote:case 'e': return '\033'; break; isn't either.It's not so much a matter of it being easy as a matter of it not at all being necessary. A frequently useful construction that is difficult to replicate with the language as it stands is a good candidate for inclusion A minor piece of syntactic sugar that saves two keystrokes and will rarely see use is not. -- andy
Mar 24 2004
In article <c3t5e2$1g6j$1 digitaldaemon.com>, Andy Friesen says...Dn7 wrote:Let me check. \033. Still, how hard would it be making \e.It is also used by C/C++, and they're common to use for writing attributes to the console. I don't think it would take a lot of effort adding it ;)\033 isn't that hard to type, is it? -- andy
Mar 24 2004
"Dn7" <Dn7_member pathlink.com> wrote in message news:c3t4ug$1fh9$1 digitaldaemon.com...In article <c3st6d$128s$2 digitaldaemon.com>, Walter says...to"Dn7" <Dn7_member pathlink.com> wrote in message news:c3sok9$q5c$1 digitaldaemon.com...It is also used by C/C++, and they're common to use for writing attributesAdd \e in string escapes, it should do the same as \x[escape key hex].What's the rationale?the console. I don't think it would take a lot of effort adding it ;)It's non-standard for both C and C++, and since it's redundant, I'm reluctant to add it.
Mar 24 2004