various forgotten files
This commit is contained in:
parent
dcc9531c5a
commit
e5c26b01f7
9 changed files with 219 additions and 7 deletions
|
|
@ -879,6 +879,20 @@ key(Rune r)
|
|||
return;
|
||||
}
|
||||
|
||||
switch(r) {
|
||||
case 0x03: /* ^C: send interrupt */
|
||||
case 0x7F: /* DEL: send interrupt */
|
||||
t.qh = t.q0 = t.q1 = t.nr;
|
||||
show(t.q0);
|
||||
{int x; x=tcgetpgrp(rcfd);
|
||||
print("postnote %d pgrp %d\n", rcpid, x);
|
||||
postnote(PNGROUP, x, "interrupt");
|
||||
if(x >= 2) killpg(x, 2);
|
||||
}
|
||||
// write(rcfd, "\x7F", 1);
|
||||
return;
|
||||
}
|
||||
|
||||
if(rawon() && t.q0==t.nr){
|
||||
addraw(&r, 1);
|
||||
consread();
|
||||
|
|
@ -898,12 +912,6 @@ key(Rune r)
|
|||
snarf();
|
||||
|
||||
switch(r) {
|
||||
case 0x03: /* ^C: send interrupt */
|
||||
case 0x7F: /* DEL: send interrupt */
|
||||
t.qh = t.q0 = t.q1 = t.nr;
|
||||
show(t.q0);
|
||||
write(rcfd, "\x7F", 1);
|
||||
break;
|
||||
case 0x06: /* ^F: file name completion */
|
||||
case Kins: /* Insert: file name completion */
|
||||
rp = namecomplete();
|
||||
|
|
|
|||
|
|
@ -138,6 +138,9 @@ spawn(ScreenInfo *s)
|
|||
close(ConnectionNumber(dpy));
|
||||
if (s->display[0] != '\0')
|
||||
putenv(s->display);
|
||||
signal(SIGINT, SIG_DFL);
|
||||
signal(SIGTERM, SIG_DFL);
|
||||
signal(SIGHUP, SIG_DFL);
|
||||
if (termprog != NULL) {
|
||||
execl(shell, shell, "-c", termprog, 0);
|
||||
fprintf(stderr, "rio: exec %s", shell);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue