From 1c56750f7b6796e850a9299358dc6a187c6278bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 14 Nov 2016 17:59:24 +0100 Subject: vis: generalize special stdin handling In preparation to move argument parsing code out of vis.c. --- vis.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vis.h') 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 */ -- cgit v1.2.3