Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!barnett From: barnett@grymoire.crd.ge.com (Bruce Barnett) Newsgroups: comp.windows.open-look Subject: Re: ksh disable's scrolling in cmdtool Message-ID: Date: 22 Mar 91 14:00:51 GMT References: Sender: news@crdgw1.crd.ge.com Reply-To: barnett@crdgw1.ge.com Distribution: usa Organization: GE Corp. R & D, Schenectady, NY Lines: 47 In-reply-to: srm@Unify.Com's message of 21 Mar 91 20:53:42 GMT Perhaps this should be in the OpenLook FAQ: In article srm@Unify.Com (Steve Maraglia) writes: > I have a problem with the cmdtool/shelltool when accessing the history file > with the Korn shell. As soon as the "esc" key is hit, scrolling is disabled, > just as if you selected "Disable Scrolling" from the "Term Pane" menu. > Does anyone know how to get around this problem? Its very annoying! I don't think there is a solution with the current software. With cmdtool, you already have the ability to edit the command line using emacs-like bindings. Or you can use the mouse to edit the command line. It works with any program and does not require raw/cbreak/icanon mode. By using ksh in a cmdtool window, you have two programs that are trying to the same thing. Which one handles the Control-B command? It must be cmdtool, because it doesn't know what the program running inside the window does. The only way programs like vi, emacs, etc work inside of cmdtool is they send out the termcap(3) TI (terminal initialization) string. This tells cmdtool to stop providing it's command line editing, and turns off the scrollbar, which changes cmdtool into shelltool. (They are really the same program). You can manually do this with the Disable Scrolling in the menu, or by the following alias: alias ScrollOff '/usr/5bin/echo "\033[>4l\c"' Turn it back on with: alias ScrollOn '/usr/5bin/echo "\033[>4h\c"' You can split the window, and have a scrollbar for past history in one window, and disable scrolling in the other window. This doesn't really work well, because the history of what is going on in the window without scrolling isn't retained in the window with the scrollbar. The only other alternative is to use xterm, which does not provide mouse-based editing but does provide scrolling. -- Bruce G. Barnett barnett@crd.ge.com uunet!crdgw1!barnett