aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-14 17:59:24 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-15 12:56:56 +0100
commit1c56750f7b6796e850a9299358dc6a187c6278bf (patch)
tree3fe936e9b95966402dd05c29813a51f91175438b /vis.h
parente29a0da9deef521694247421e82448c0a9ab3d73 (diff)
downloadvis-1c56750f7b6796e850a9299358dc6a187c6278bf.tar.gz
vis-1c56750f7b6796e850a9299358dc6a187c6278bf.tar.xz
vis: generalize special stdin handling
In preparation to move argument parsing code out of vis.c.
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vis.h b/vis.h
index 8c981fb..e3d0812 100644
--- a/vis.h
+++ b/vis.h
@@ -86,6 +86,11 @@ void vis_suspend(Vis*);
* in another window, share the underlying text that is changes will be
* visible in both windows */
bool vis_window_new(Vis*, const char *filename);
+/* Creates a new window and underlying file object associated with the
+ * given output file descriptor. No data is read from `fd`, but write
+ * commands without an explicit filename will instead write to the file
+ * descriptor */
+bool vis_window_new_fd(Vis*, int fd);
/* reload the file currently displayed in the window from disk */
bool vis_window_reload(Win*);
/* check whether closing the window would loose unsaved changes */