comparison cli-runopts.c @ 40:b4874d772210

- Added terminal mode handling etc for the client, and window change - Refactored the terminal-mode handling for the server - Improved session closing for the client
author Matt Johnston <matt@ucc.asn.au>
date Sun, 01 Aug 2004 08:54:01 +0000
parents 0883c0906870
children 3bea78e1b175
comparison
equal deleted inserted replaced
39:0883c0906870 40:b4874d772210
53 struct passwd *pw; 53 struct passwd *pw;
54 54
55 char* userhostarg = NULL; 55 char* userhostarg = NULL;
56 56
57 /* see printhelp() for options */ 57 /* see printhelp() for options */
58 cli_opts.progname = argv[0];
58 cli_opts.remotehost = NULL; 59 cli_opts.remotehost = NULL;
59 cli_opts.remoteport = NULL; 60 cli_opts.remoteport = NULL;
60 cli_opts.username = NULL; 61 cli_opts.username = NULL;
61 cli_opts.cmd = NULL; 62 cli_opts.cmd = NULL;
62 cli_opts.wantpty = 0; 63 cli_opts.wantpty = 1;
63 opts.nolocaltcp = 0; 64 opts.nolocaltcp = 0;
64 opts.noremotetcp = 0; 65 opts.noremotetcp = 0;
65 /* not yet 66 /* not yet
66 opts.ipv4 = 1; 67 opts.ipv4 = 1;
67 opts.ipv6 = 1; 68 opts.ipv6 = 1;