* [9fans] source change to allow for Alt-space
@ 2002-07-03 11:27 Fco.J.Ballesteros
0 siblings, 0 replies; only message in thread
From: Fco.J.Ballesteros @ 2002-07-03 11:27 UTC (permalink / raw)
To: 9fans
Even if we never end up using ␣ instead of " ", I think
this change is useful on its own.
It allows one character sequences in /lib/keyboard, considering that
the sequence " " is actually " ".
Right now, I'm using "␣" as the rune for Alt-space, therefore I made
no change to /lib/keyboard.
diff /n/dump/2002/0703/sys/src/cmd/aux/mklatinkbd.c mklatinkbd.c
185c185
< if(inseq && p-seq >= 2) {
---
> if(inseq && p-seq >= 1) {
diff /n/dump/2002/0703/sys/src/9/port/latin1.c /sys/src/9/port/latin1.c
58a59,65
> if(l->ld[0] == '\0' && n == 1){
> for(p=l->si; *p!=0; p++)
> if(*p == k[0])
> return l->so[p - l->si];
> return -1;
> }
> for(l=latintab; l->ld!=0; l++)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-03 11:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-03 11:27 [9fans] source change to allow for Alt-space Fco.J.Ballesteros
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).