aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2014-08-28 12:48:29 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2014-09-23 07:12:41 +0200
commit5afb3862ba368de8888c0c570098baababc7bc19 (patch)
tree614c4238669f5513bc0bd3fe4007aa4770a3fc81 /config.def.h
parent0392d165d07143eec29c730364006bc0613e1198 (diff)
downloadst-5afb3862ba368de8888c0c570098baababc7bc19.tar.gz
st-5afb3862ba368de8888c0c570098baababc7bc19.zip
Add support for utmp in st
St runs an interactive shell and not a login shell, and it means that profile is not loaded. The default terminal configuration in some system is not the correct for st, but since profile is not loaded there is no way of getting a script configures the correct values. St doesn't update the utmp files, this is the job of another suckless tool, utmp. Utmp also opens a login shell (it is the logical behaviour when you create a new user record) it is a good option execute utmp and then get a correct input in utmp, wtmp and lastlog file, and execute the content of the profile.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index fe81078..cc16f97 100644
--- a/config.def.h
+++ b/config.def.h
@@ -8,6 +8,7 @@
8static char font[] = "Liberation Mono:pixelsize=12:antialias=false:autohint=false"; 8static char font[] = "Liberation Mono:pixelsize=12:antialias=false:autohint=false";
9static int borderpx = 2; 9static int borderpx = 2;
10static char shell[] = "/bin/sh"; 10static char shell[] = "/bin/sh";
11static char *utmp = NULL;
11 12
12/* identification sequence returned in DA and DECID */ 13/* identification sequence returned in DA and DECID */
13static char vtiden[] = "\033[?6c"; 14static char vtiden[] = "\033[?6c";