summaryrefslogtreecommitdiff
path: root/sys/src/cmd/samterm/plan9.c
diff options
context:
space:
mode:
authorppatience0 <ppatience0@gmail.com>2013-04-04 16:38:36 -0400
committerppatience0 <ppatience0@gmail.com>2013-04-04 16:38:36 -0400
commit02f60df0f314a0090cf917dc383c35f92551af07 (patch)
treefd8773b4dcdf3c313a04d34cf381a4bb7f8389ca /sys/src/cmd/samterm/plan9.c
parent6bef56f0376ea1459271bb1e23c48e358d0ae4d7 (diff)
sam, samterm: add -i flag to make tab insert spaces up to the next tabstop and backspace to delete spaces until the previous tabstop
Diffstat (limited to 'sys/src/cmd/samterm/plan9.c')
-rw-r--r--sys/src/cmd/samterm/plan9.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/src/cmd/samterm/plan9.c b/sys/src/cmd/samterm/plan9.c
index a7e3d5b70..f00e5481b 100644
--- a/sys/src/cmd/samterm/plan9.c
+++ b/sys/src/cmd/samterm/plan9.c
@@ -14,7 +14,7 @@ static char exname[64];
void
usage(void)
{
- fprint(2, "usage: samterm [-a]\n");
+ fprint(2, "usage: samterm [-ai]\n");
threadexitsall("usage");
}
@@ -27,6 +27,9 @@ getscreen(int argc, char **argv)
case 'a':
autoindent = 1;
break;
+ case 'i':
+ spacesindent = 1;
+ break;
default:
usage();
}ARGEND