diff options
author | rsc <devnull@localhost> | 2005-01-02 03:45:07 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-02 03:45:07 +0000 |
commit | acc021b8f8c727c0f04f33615354170fd7bccd0c (patch) | |
tree | 94638d63de29f7a151d5d36c78ab220c3b31ae61 | |
parent | 4fe01a2b112e98271b429738b3f9d617bd348ab1 (diff) | |
download | plan9port-acc021b8f8c727c0f04f33615354170fd7bccd0c.tar.gz plan9port-acc021b8f8c727c0f04f33615354170fd7bccd0c.tar.bz2 plan9port-acc021b8f8c727c0f04f33615354170fd7bccd0c.zip |
add ? for unknown plumbs
-rw-r--r-- | src/cmd/9term/9term.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c index 7d79cc3e..8d3c1a9f 100644 --- a/src/cmd/9term/9term.c +++ b/src/cmd/9term/9term.c @@ -196,6 +196,18 @@ Cursor whitearrow = { 0xD3, 0xB8, 0xF1, 0xF0, 0xE0, 0xE0, 0xC0, 0x40, } }; +Cursor query = { + {-7,-7}, + {0x0f, 0xf0, 0x1f, 0xf8, 0x3f, 0xfc, 0x7f, 0xfe, + 0x7c, 0x7e, 0x78, 0x7e, 0x00, 0xfc, 0x01, 0xf8, + 0x03, 0xf0, 0x07, 0xe0, 0x07, 0xc0, 0x07, 0xc0, + 0x07, 0xc0, 0x07, 0xc0, 0x07, 0xc0, 0x07, 0xc0, }, + {0x00, 0x00, 0x0f, 0xf0, 0x1f, 0xf8, 0x3c, 0x3c, + 0x38, 0x1c, 0x00, 0x3c, 0x00, 0x78, 0x00, 0xf0, + 0x01, 0xe0, 0x03, 0xc0, 0x03, 0x80, 0x03, 0x80, + 0x00, 0x00, 0x03, 0x80, 0x03, 0x80, 0x00, 0x00, } +}; + void usage(void) { @@ -1791,7 +1803,14 @@ plumb(uint q0, uint q1) p += runetochar(p, t.r+q0+i); *p = '\0'; pm->ndata = strlen(pm->data); - plumbsend(plumbfd, pm); + if(plumbsend(plumbfd, pm) < 0){ + setcursor(mc, &query); + sleep(500); + if(holdon) + setcursor(mc, &whitearrow); + else + setcursor(mc, nil); + } plumbfree(pm); } |