diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-14 17:59:24 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-15 12:56:56 +0100 |
| commit | 1c56750f7b6796e850a9299358dc6a187c6278bf (patch) | |
| tree | 3fe936e9b95966402dd05c29813a51f91175438b /vis.h | |
| parent | e29a0da9deef521694247421e82448c0a9ab3d73 (diff) | |
| download | vis-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 */ |
