diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-05-04 11:30:48 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-04 13:42:05 +0200 |
| commit | 583045c2d85f30cfebc7a7689c27c797db2d30f4 (patch) | |
| tree | a1f081ebd3188c17dde47889e268f25bcba71917 /text-objects.c | |
| parent | b9d70d03550b33b40212c98251733e11a6b33ce5 (diff) | |
| download | vis-583045c2d85f30cfebc7a7689c27c797db2d30f4.tar.gz vis-583045c2d85f30cfebc7a7689c27c797db2d30f4.tar.xz | |
vis: re-open stdin as /dev/tty when reaching EOF
This handles (notices the missing - at the end of the command line):
$ printf ":new\n" | vis
more gracefully. This instructs vis to read commands (not file content)
from stdin. Once all input from stdin is consumed we open /dev/tty
and start processing regular keyboard input instead.
Diffstat (limited to 'text-objects.c')
0 files changed, 0 insertions, 0 deletions
