diff options
| author | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2020-04-10 22:06:32 +0200 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-04-11 15:23:20 +0200 |
| commit | 21e0d6e8b8d20903494386e7e6f43201b3761154 (patch) | |
| tree | 5b05d14922679f2560855d5734314336c16cade2 /config.def.h | |
| parent | make argv0 not static, fixes a warning with tcc (diff) | |
| download | st-21e0d6e8b8d20903494386e7e6f43201b3761154.tar.gz st-21e0d6e8b8d20903494386e7e6f43201b3761154.zip | |
Add support for scroll(1)
Scroll is a program that stores all the lines of its child and be used in st as
a way of implementing scrollback.
This solution is much better than implementing the scrollback in st itself
because having a different program allows to use it in any other program
without doing modifications to those programs.
Diffstat (limited to '')
| -rw-r--r-- | config.def.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 546edda..dfcbda9 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -11,13 +11,14 @@ static int borderpx = 2; | |||
| 11 | /* | 11 | /* |
| 12 | * What program is execed by st depends of these precedence rules: | 12 | * What program is execed by st depends of these precedence rules: |
| 13 | * 1: program passed with -e | 13 | * 1: program passed with -e |
| 14 | * 2: utmp option | 14 | * 2: scroll and/or utmp |
| 15 | * 3: SHELL environment variable | 15 | * 3: SHELL environment variable |
| 16 | * 4: value of shell in /etc/passwd | 16 | * 4: value of shell in /etc/passwd |
| 17 | * 5: value of shell in config.h | 17 | * 5: value of shell in config.h |
| 18 | */ | 18 | */ |
| 19 | static char *shell = "/bin/sh"; | 19 | static char *shell = "/bin/sh"; |
| 20 | char *utmp = NULL; | 20 | char *utmp = NULL; |
| 21 | char *scroll = NULL; | ||
| 21 | char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400"; | 22 | char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400"; |
| 22 | 23 | ||
| 23 | /* identification sequence returned in DA and DECID */ | 24 | /* identification sequence returned in DA and DECID */ |
