merce@iguana.uucp (Jim Mercer) (03/07/91)
i'm pretty enthused about trying this out, but ..... when i try to dial using the OBM i get connected but the "Not multiplexed" window does not seem to act/send any of the keys i press. also, how does one get xtclient to use a telebit on /dev/tty000? i am running 3.51m with HDB and the dial(3m) routines seem to use /usr/lib/uucp/L-devices to determine dialing. also^2, how does one use xtclient with a direct serial connection? thanx for any help. -- [ Jim Mercer work: jim@lsuc.on.ca home: merce@iguana.uucp +1 519 570-3467 ] [ "I am pro-military. I am not pro-war. There is a big difference" ] [ -- Louise Mandrell (Toronto Sun) ]
hartman@abacab.UUCP (Mark A. Hartman) (03/13/91)
In article <1991Mar7.053459.2491@iguana.uucp> merce@iguana.uucp (Jim Mercer) writes: >i'm pretty enthused about trying this out, but ..... As you should be -- it is an excellent program... >when i try to dial using the OBM i get connected but the "Not multiplexed" >window does not seem to act/send any of the keys i press. Did you install the new pty driver that was included the distribution? It does not work with some of the earlier versions that are around. >i am running 3.51m with HDB and the dial(3m) routines seem to use >/usr/lib/uucp/L-devices to determine dialing. True. I have the same configuration, and set my L-devices file up as follows: OBM ph1 UNIXPC 1200 DIR tty000 0 9600 >also^2, how does one use xtclient with a direct serial connection? With L-devices as above, the following (completely unofficial) changes make the phone number argument optional, making it possible to use xtclient over a direct line (i.e. "xtclient -l/dev/tty000"). Apply using "patch". *** phone.c-old Tue Feb 19 18:04:42 1991 --- phone.c Tue Feb 19 18:10:53 1991 *************** *** 42,49 # define BAUDRATE B2400 #else # define LINE "/dev/ph0" ! # define SPEED "1200" ! # define BAUDRATE B1200 #endif sun #ifndef sun --- 42,48 ----- # define BAUDRATE B2400 #else # define LINE "/dev/ph0" ! # define SPEED "0" #endif sun #ifndef sun *** xtclient.c-old Tue Feb 19 18:04:36 1991 --- xtclient.c Mon Feb 18 23:33:36 1991 *************** *** 56,61 char *speed = NULL; /* alternate line speed for connection */ int c; /* getopt() return character */ int log = 0; /* logging flag */ /* process the arguments */ while ((c = getopt(argc, argv, "l:s:x")) != EOF) --- 56,62 ----- char *speed = NULL; /* alternate line speed for connection */ int c; /* getopt() return character */ int log = 0; /* logging flag */ + char *phone_number = 0; /* process the arguments */ while ((c = getopt(argc, argv, "l:s:x")) != EOF) *************** *** 77,84 } } ! /* there must be exactly 1 argument left (the phone number) */ ! if (argc - optind != 1) usage(argv[0]); /* has logging been requested? */ --- 78,87 ----- } } ! /* if there is one argument left, it is the phone number */ ! if (optind == argc - 1) ! phone_number = argv[optind]; ! else if (optind < argc) usage(argv[0]); /* has logging been requested? */ *************** *** 92,100 /* initialize the application layer routines */ APinit(); ! (void)APind(1, "Dialing \"", -1); ! (void)APind(1, argv[optind], -1); ! (void)APind(1, "\"\n", -1); /* attempt to call the specified phone number */ if (connect(argv[optind], line, speed) < 0) --- 95,106 ----- /* initialize the application layer routines */ APinit(); ! if (phone_number) ! { ! (void)APind(1, "Dialing \"", -1); ! (void)APind(1, phone_number, -1); ! (void)APind(1, "\"\n", -1); ! } /* attempt to call the specified phone number */ if (connect(phone_number, line, speed) < 0) *************** *** 97,103 (void)APind(1, "\"\n", -1); /* attempt to call the specified phone number */ ! if (connect(argv[optind], line, speed) < 0) { (void)APind(1, "Failed to connect, Exiting...\n", -1); (void)sleep((unsigned)5); --- 103,109 ----- } /* attempt to call the specified phone number */ ! if (connect(phone_number, line, speed) < 0) { (void)APind(1, "Failed to connect, Exiting...\n", -1); (void)sleep((unsigned)5); *************** *** 275,281 char *progname; { (void)fprintf(stderr, ! "Usage: %s [ -x ] [ -l <line> ] [ -s <speed> ] phone-number\n", progname); exit(1); } --- 281,287 ----- char *progname; { (void)fprintf(stderr, ! "Usage: %s [ -x ] [ -l <line> ] [ -s <speed> ] [ <phone-number> ]\n", progname); exit(1); } -- Mark Hartman hartman@abacab.chi.il.us Mark_A_Hartman@att.com