diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-03-23 04:03:51 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-03-23 04:03:51 +0100 |
commit | 1b734021ebddb6fe8f4829bff2fd1446a19ee4f8 (patch) | |
tree | f2197627ec5979a119df896ad5124d8bfa583f2a | |
parent | 9840c9f18e2b6a15f89ecb3cf6420d2329685c00 (diff) | |
parent | b72bb9571c2e7d3d11278c3eb359ebe675a56264 (diff) |
merge
-rw-r--r-- | sys/man/1/mothra | 3 | ||||
-rw-r--r-- | sys/src/cmd/mothra/mothra.c | 18 |
2 files changed, 14 insertions, 7 deletions
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); |