diff options
author | ppatience0 <ppatience0@gmail.com> | 2013-04-04 16:38:36 -0400 |
---|---|---|
committer | ppatience0 <ppatience0@gmail.com> | 2013-04-04 16:38:36 -0400 |
commit | 02f60df0f314a0090cf917dc383c35f92551af07 (patch) | |
tree | fd8773b4dcdf3c313a04d34cf381a4bb7f8389ca /sys/src/cmd/samterm/plan9.c | |
parent | 6bef56f0376ea1459271bb1e23c48e358d0ae4d7 (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.c | 5 |
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 |