projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce the ability to control whether the shell run in pterm is a
[u/mdw/putty]
/
unix
/
pterm.c
diff --git
a/unix/pterm.c
b/unix/pterm.c
index
c5d742c
..
769f728
100644
(file)
--- a/
unix/pterm.c
+++ b/
unix/pterm.c
@@
-1283,7
+1283,6
@@
char *get_x_display(void)
int main(int argc, char **argv)
{
extern int pty_master_fd; /* declared in pty.c */
int main(int argc, char **argv)
{
extern int pty_master_fd; /* declared in pty.c */
- extern int pty_stamp_utmp; /* declared in pty.c */
extern char **pty_argv; /* declared in pty.c */
int err = 0;
extern char **pty_argv; /* declared in pty.c */
int err = 0;
@@
-1331,7
+1330,10
@@
int main(int argc, char **argv)
cfg.hide_mouseptr = 1;
}
if (!strcmp(p, "-ut-")) {
cfg.hide_mouseptr = 1;
}
if (!strcmp(p, "-ut-")) {
- pty_stamp_utmp = 0;
+ cfg.stamp_utmp = 0;
+ }
+ if (!strcmp(p, "-ls-")) {
+ cfg.login_shell = 0;
}
if (!strcmp(p, "-nethack")) {
cfg.nethack_keypad = 1;
}
if (!strcmp(p, "-nethack")) {
cfg.nethack_keypad = 1;