🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.tcl
Article #209

Re: [Q] How to distinguish "a" and "Alt-a" on bind command?

#209
From: Toshihiko Haga
Date: Wed, 03 Dec 1997 00:00
30 lines
1724 bytes

>	   bind .foo <a>     { honya }
>	   bind .foo <Alt-a> { munya }
>
>   $B$H=q$$$?$H$7$^$9!%$3$l$O!$(Ba $B%-!<$r2!$7$?;~$O(B honya $B$r<B9T!$(B
>   Alt $B%-!<$r2!$7$J$,$i(B a $B$r2!$7$?;~$O(B munya $B$r<B9T!$$H$$$&F0:n$r(B
>   $B4|BT$7$F$$$^$9!%(B
>
>   $B$H$3$m$,<B:]$O!$(Ba $B%-!<$r2!$7$?;~$O(B honya $B$@$1$,<B9T$5$l$^$9$,!$(B
>   Alt $B%-!<$r2!$7$J$,$i(B a $B%-!<$r2!$9$H!$(Bhonya $B$H(B munya $B$NN>J}$,(B
>   $B<B9T$5$l$F$7$^$$$^$9!%(B
>   $B3N$+$K!$$3$l$O$3$l$G(B reasonable $B$@$H$O;W$&$N$G$9$,!$$=$l$J$i$P!$(B
>   <only-a> $B$_$?$$$J(B (^^; $B9%ET9g$J%$%Y%s%HL>$OL5$$$s$G$7$g$&$+(B...

bind$B$N%^%K%e%"%k$N(BMULTIPLE MATCHES$B@a$K<!$N5-=R$,$"$j$^$9!#(B

     If more than one binding matches a particular event and they  |
     have  the same tag, then the most specific binding is chosen  |
     and its  script  is  evaluated.
$B@[Lu(B
     $BJ#?t$N%P%$%s%G%#%s%0$,FCDj$N%$%Y%s%H$KE,9g$7!"$=$l$i$,F1$8%?%0(B
     $B$r;}$C$F$$$k$H!"$b$C$H$b8BDjE*$J%P%$%s%G%#%s%0$,A*Br$5$l!"$=$N(B
     $B%9%/%j%W%H$,I>2A$5$l$k!#(B

$B$3$l$r8+$k8B$j$G$O7o$N%3!<%I$GLdBj$J$$$h$&$K;W$($k$N$G$9$,!"(B
$B;d$J$K$+4*0c$$$7$F$^$9!)(B


$BK'2l(B
Technical Details
Message-ID: <HAGA.97Dec3140754@sras37.sra.CO.JP>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MNAKASHI.97Dec2161944@cpus-f0.cc.titech.ac.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 15a83d,55ceaf8141eec0b7
X-Google-Attributes: gid15a83d,public
From: haga@sra.CO.JP (Toshihiko Haga)
Subject: Re: [Q] How to distinguish "a" and "Alt-a" on bind command?
Date: 1997/12/03
Message-ID: <HAGA.97Dec3140754@sras37.sra.CO.JP>
X-Deja-AN: 294754006
References: <MNAKASHI.97Dec2161944@cpus-f0.cc.titech.ac.jp>
Followup-To: fj.lang.tcl
Distribution: world
Organization: Software Research Associates, Inc., Japan
Newsgroups: fj.lang.tcl