add ? for unknown plumbs
This commit is contained in:
parent
4fe01a2b11
commit
acc021b8f8
1 changed files with 20 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue