zsh-users
 help / color / mirror / code / Atom feed
From: Mircea Damian <dmircea@secu.kappa.ro>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@math.gatech.edu
Subject: Re: How to trigger the death of zsh(3.0.5)
Date: Fri, 9 Oct 1998 07:43:34 +0300	[thread overview]
Message-ID: <19981009074334.A14649@kappa.ro> (raw)
In-Reply-To: <981008143455.ZM21286@candle.brasslantern.com>; from Bart Schaefer on Thu, Oct 08, 1998 at 02:34:55PM -0700

> Ah.  There's really no way to fix that one.  Even in 3.1.4 where you can
> make your own new zle functions, support for using the digit-argument
> prefixes is not yet up to snuff.
> 
> You can do `ESC - ESC 1 ESC .' to negate the digit, in which case zsh
> counts from the beginning.  You can even do `ESC - ESC 0 ESC .' to get
> the command name.
> 
> Or you can do `! : x TAB' where x is the number of the word you want,
> e.g. !:2 for the second word.

I think that a temporary _ugly_ fix is to bind the keys for some exact
cases(5 or 6 arguments). This will "fix" their request... but I repeat it's
ugly.


> Yes, change the value of the WORDCHARS variable.  I use
> 
> 	WORDCHARS='*?_-.[]~\!#$%^(){}<>'
> 
> The only drawback is that it also affects transpose-words, which is
> sometimes not what you'd like.

It's just perfect. Thanks!


> 
> More specifically than that, I can't tell.  If you type \Cv \C\My, what
> do you see?  If you see ^Y, then your alt or meta key isn't working,
> which could explain the beeping.

Something strange happens here.
If I type \Cv \C\My I only get the ESC character('^[') but the
lines(strace) bellow shows that it reads more when I press \C\My. The
behaviour is the same if I use xterm or linux console:

read(10, "\33", 1)                      = 1          //ESC
read(10, "\31", 1)                      = 1          //\Cy
select(11, [10], NULL, NULL, {0, 0})    = 0 (Timeout)
read(10, "\26", 1)                      = 1          //\Cv
read(10, "\33", 1)                      = 1          //ESC
select(11, [10], NULL, NULL, {0, 0})    = 1 (in [10], left {0, 0})
read(10, "\31", 1)                      = 1          //\Cy
select(11, [10], NULL, NULL, {0, 0})    = 0 (Timeout)
write(10, "^[", 2)                      = 2          //??! why only ^[
read(10,



Thank you for your prompt answers!

-- 
Mircea Damian
Network Manager
dmircea@roedu.net, dmircea@lbi.ro, dmircea@kappa.ro
MD65-RIPE, MD2225, MD1-6BONE
Phone: +40-1-4115246


  reply	other threads:[~1998-10-09  4:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-08 17:49 Mircea Damian
1998-10-08 18:58 ` Bart Schaefer
1998-10-08 19:44   ` Mircea Damian
1998-10-08 19:49     ` Mircea Damian
1998-10-08 21:34       ` Bart Schaefer
1998-10-09  4:43         ` Mircea Damian [this message]
1998-10-09 16:17           ` Bart Schaefer
1998-10-09 18:29             ` Mircea Damian
1998-10-12 14:53               ` Bart Schaefer
1998-10-12 16:40                 ` Mircea Damian
1998-10-12 17:22                   ` Bart Schaefer
1998-10-13  9:02                     ` Mircea Damian
1998-10-08 19:15 ` Rob Windsor
1998-10-08 19:26 Rob Windsor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19981009074334.A14649@kappa.ro \
    --to=dmircea@secu.kappa.ro \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).