aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
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 */