diff options
| author | rsc <devnull@localhost> | 2005-07-13 03:53:17 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2005-07-13 03:53:17 +0000 |
| commit | 55d360f653add52055c39d7989745bf72d6df27a (patch) | |
| tree | 0bbf39852c7a489519531a57e5453bff102ecbbb /src/cmd/9term/9term.c | |
| parent | 17cfc1dd5f1cf4a6f6752d4e94e76ccee020006c (diff) | |
| download | plan9port-55d360f653add52055c39d7989745bf72d6df27a.tar.gz plan9port-55d360f653add52055c39d7989745bf72d6df27a.zip | |
lets try hold mode in raw mode
Diffstat (limited to 'src/cmd/9term/9term.c')
| -rw-r--r-- | src/cmd/9term/9term.c | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c index a620410a..78d52ab1 100644 --- a/src/cmd/9term/9term.c +++ b/src/cmd/9term/9term.c @@ -922,6 +922,23 @@ key(Rune r) return; } + /* + * This if used to be below the if(rawon() && t.q0==t.nr), + * but let's try putting it here. This will allow ESC-processing + * to toggle hold mode even in remote SSH connections. + * The drawback is that vi-style processing gets harder. + * If you find yourself in some weird readline mode, good + * luck getting out without ESC. Let's see who complains. + */ + if(r==ESC){ /* toggle hold */ + holdon = !holdon; + drawhold(holdon); + /* replaceintegerproperty("_9WM_HOLD_MODE", 1, 32, holdon); */ + if(!holdon) + consread(); + return; + } + if(rawon() && t.q0 == t.nr){ addraw(&r, 1); consread(); @@ -939,15 +956,6 @@ key(Rune r) return; } - if(r==ESC){ /* toggle hold */ - holdon = !holdon; - drawhold(holdon); - /* replaceintegerproperty("_9WM_HOLD_MODE", 1, 32, holdon); */ - if(!holdon) - consread(); - return; - } - snarf(); switch(r) { |
