1
0
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:
Simon Tatham
2002-10-15 12:42:58 +00:00
parent 6118021749
commit 0813c25bf6
2 changed files with 31 additions and 1 deletions

View File

@ -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;
}