On 8/24/06, Martin Bähr <[EMAIL PROTECTED]> wrote: > On Thu, Aug 24, 2006 at 01:30:24AM +0200, Axel Liljencrantz wrote: > > The current way to do this is to use backslash escape codes > > ah, duh, why didn't i think of those? > that's certainly good enough to cover 'rare things should be possible'
It is. > > > If you can give me a situation when quoted insert is clearly superior, > > I'd be willing to add it, but as it is, I can't really see any > > advantage. > > the main advantage is discoverability in the sense that if you know that > there is a way to enter special characters (which you would have to know > either way), you can just enter them without having to look up what the > escape code for it would be. > But you'd need to know about the quoted-insert shortcut, so for the total newb, it wouldn't be very discoverable. But it is very discoverable for migrators from other shells. > on the other hand using escapes as now makes copy-paste easier. > interresting would be automaticly translate a literal character into its > escape code when it is entered. (and using \ as a starting point might > also be nice, so if you type \<TAB> then the text \t would be produced, > etc...) Sure, if quoted-insert is implemented, that would be the right way to do it, I think. > > most often i use them for entering things like ^G to generate a beep, > which screen will notify me about if i am in another window, or to play > around with ansi escape codes which are mostly specified as literals. > \e is there, but no \a for the beep. (i don't know why it is \a, but > that's what i found in the ascii(7) manpage, i'll just have to memorize > \x07 now...) Or I could just add \a. I checked the C99 standard, and it also defines \f and \v. I seem to remember at least \v being in fish before, but it's not there now. I wonder if the more exotic simple escape sequences aren't universally implemented, even though they're in the standard, and that is why fish doesn't implement them. Silly search function doesn't let me search the mailing list archive for strings containing backslashes... I guess I'll add all three and see if anything breaks. That's professionalism for you. > > greetings, martin. > -- > cooperative communication with sTeam - caudium, pike, roxen and unix > offering: programming, training and administration - anywhere in the world > -- > pike programmer travelling and working in europe open-steam.org > unix system- bahai.or.at iaeste.(tuwien.ac|or).at > administrator (caudium|gotpike).org is.schon.org > Martin Bähr http://www.iaeste.or.at/~mbaehr/ > -- Axel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
