diff --git a/sys/man/1/mothra b/sys/man/1/mothra index bdd64e693..71a7e1eca 100644 --- a/sys/man/1/mothra +++ b/sys/man/1/mothra @@ -131,6 +131,9 @@ Jump to page .I n from the list of previously viewed pages. .TP +.BI m +Enter or exit moth mode. +.TP .B r Reload the current page. .TP diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index 02b9faf23..f7aa2d0ad 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -87,6 +87,7 @@ char *genwww(Panel *, int); void updtext(Www *); void dolink(Panel *, int, Rtext *); void hit3(int, int); +void mothon(Www *, int); char *buttons[]={ "alt display", "moth mode", @@ -626,6 +627,16 @@ void docmd(Panel *p, char *s){ case 'g': s = arg(s); if(*s=='\0'){ + case 'j': + s = arg(s); + if(*s) + doprev(nil, 1, wwwtop-atoi(s)); + else + message("Usage: j index"); + break; + case 'm': + mothon(current, !mothmode); + break; case 'r': if(selection) s = urlstr(selection); @@ -634,13 +645,6 @@ void docmd(Panel *p, char *s){ } geturl(s, GET, 0, 0, 0); break; - case 'j': - s = arg(s); - if(*s) - doprev(nil, 1, wwwtop-atoi(s)); - else - message("Usage: j index"); - break; case 'w': case 'W': s = arg(s);