mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 22:12:47 -05:00
Finish up utmp processing: add the -ut- command-line option to
suppress stamping it at all. (I suppose this ought to be part of the cfg structure really.) [originally from svn r2059]
This commit is contained in:
@ -1283,6 +1283,7 @@ char *get_x_display(void)
|
||||
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;
|
||||
|
||||
@ -1329,6 +1330,9 @@ int main(int argc, char **argv)
|
||||
if (!strcmp(p, "-hide")) {
|
||||
cfg.hide_mouseptr = 1;
|
||||
}
|
||||
if (!strcmp(p, "-ut-")) {
|
||||
pty_stamp_utmp = 0;
|
||||
}
|
||||
if (!strcmp(p, "-nethack")) {
|
||||
cfg.nethack_keypad = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user