Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucsdhub!hp-sdd!hp-pcd!hplsla!hpubvwa!grlab!scott From: scott@grlab.UUCP (Scott Blachowicz) Newsgroups: comp.emacs Subject: cmushell-mode [was: Re: comint (generally) and gdb/comint] Message-ID: Date: 21 Feb 90 15:35:59 GMT References: Sender: news@grlab.UUCP Organization: Graphicus, Inc., Kirkland, WA USA Lines: 37 In-reply-to: shivers@cs.cmu.edu's message of 15 Feb 90 20:24:55 GMT Regarding comint (generally) and gdb/comint; shivers@cs.cmu.edu (Olin Shivers) writes: > Hello, Jordan. Hope all is well. Let me address a few general points > before I get to your question. > - I've got several small upgrades to comint: improved M-p & M-n commands, > improved filename completion, and a new hook someone sent me that > is called on text before you submit it to the process (for processes > that might require funny input conventions). I also have some improved > directory tracking code that someone sent me. As soon as I have the time, > I'll merge in the new stuff and mail it out. Is it possible to have the shell mode re-sync its current-directory on a pwd command? Either by recognizing that a pwd command was typed or by a key-binding that somehow figures it out (send a pwd command and get the response)? Maybe there could be a regexp that describes what a "pwd" command will look like that gets matched against the command. Now, I don't know enough to know how possible it would be to grab the command's output (if it can even be reliably identified). Does the new directory tracking stuff allow me to say "cd -" to "goto the previous directory"? My ksh allows that (actually, I think it's a bunch of functions that get loaded up that do it). I've noticed a few other things... -Could it recognize a "Password:" prompt at the beginning of a line and not echo the chars? or is there a better way to get a super-user shell? -A lot of times, when I run an interactive command I start getting commands echoed back at me, and sometimes "^M" at the end of each line... Would this be because the command is doing some stty/ioctl commands? Anyone know of the magic incantation to give stty to correct things? -- Scott Blachowicz E-mail: scott@grlab.UUCP USPS: Graphicus ..or.. ...!hpubvwa!grlab!scott 150 Lake Str S, #206 VoicePh: 206/828-4691 Kirkland, WA 98033 FAX: 206/828-4236