diff options
author | David Swasey <david.swasey@gmail.com> | 2010-04-13 13:16:36 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2010-04-13 13:16:36 -0700 |
commit | 7b08cf334b613a777a64ce41565b771d98740faf (patch) | |
tree | 22fc3f1e9229af6316dd0d071a1ff7942a6aeab1 /src/cmd/9term | |
parent | 80c90f271e673a036cf208399cfc824e388249c5 (diff) | |
download | plan9port-7b08cf334b613a777a64ce41565b771d98740faf.tar.gz plan9port-7b08cf334b613a777a64ce41565b771d98740faf.tar.bz2 plan9port-7b08cf334b613a777a64ce41565b771d98740faf.zip |
9term: cut, snarf, and paste with keyboard on Mac
R=rsc
CC=codebot
http://codereview.appspot.com/854042
Diffstat (limited to 'src/cmd/9term')
-rw-r--r-- | src/cmd/9term/wind.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cmd/9term/wind.c b/src/cmd/9term/wind.c index 6f04595d..4cc9c207 100644 --- a/src/cmd/9term/wind.c +++ b/src/cmd/9term/wind.c @@ -667,6 +667,22 @@ wkeyctl(Window *w, Rune r) waddraw(w, &r, 1); return; } + if(r == Kcmd+'x'){ + wsnarf(w); + wcut(w); + wscrdraw(w); + return; + } + if(r == Kcmd+'c'){ + wsnarf(w); + return; + } + if(r == Kcmd+'v'){ + riogetsnarf(); + wpaste(w); + wscrdraw(w); + return; + } if(r != 0x7F){ wsnarf(w); wcut(w); |