aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-10-17 15:43:48 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-10-17 15:43:48 +0200
commite9180cf83ade29192d8407337f614e5a024017a9 (patch)
tree0aa207c91d5bdb999a260ba54de015916dfbea5b /editor.h
parent6be820495d70e6f10a92fbdaf6a1e4a278b02ab6 (diff)
downloadvis-e9180cf83ade29192d8407337f614e5a024017a9.tar.gz
vis-e9180cf83ade29192d8407337f614e5a024017a9.tar.xz
Make editor usable as a filter: echo foo | vis - | cat
The terminal output is by default redirected to stderr, making stdout available for communications purposes. If a file is "opened" from stdin (i.e. vis is given '-' as argument) and a subsequent write without a filename is performed as in ":wq" the output is written to stdout.
Diffstat (limited to 'editor.h')
0 files changed, 0 insertions, 0 deletions