From e9180cf83ade29192d8407337f614e5a024017a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 17 Oct 2014 15:43:48 +0200 Subject: 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. --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 9ecb018..9cd686a 100644 --- a/config.def.h +++ b/config.def.h @@ -1,5 +1,5 @@ /** start by reading from the top of vis.c up until config.h is included */ - +#define DEFAULT_TERM "xterm" /* default term to use if $TERM isn't set */ /* macros used to specify keys for key bindings */ #define ESC 0x1B #define NONE(k) { .str = { k }, .code = 0 } -- cgit v1.2.3