Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!agate!darkstar!ucscf.UCSC.EDU!isbell From: isbell@ucscf.UCSC.EDU (Art Isbell) Newsgroups: comp.sys.next Subject: Re: Disabling cmd-q in Terminal Summary: Use nibeditor to open Terminal menu in IB and remove cmd-q Keywords: Terminal, nibeditor Message-ID: <16528@darkstar.ucsc.edu> Date: 3 Jun 91 05:23:27 GMT References: <1991Jun2.235028.21517@parc.xerox.com> Sender: usenet@darkstar.ucsc.edu Organization: none really - just me Lines: 29 In article <1991Jun2.235028.21517@parc.xerox.com> Lovstrand@EuroPARC.Xerox.COM (Lennart Lovstrand) writes: >So... Anyone know how to disable cmd-q in Terminal -- preferrably, but >not necessarily, without patching the app? Wouldn't mind getting rid >of cmd-w at the same time. At second best (and for possible future >releases), a way of persuading Terminal to ask for confirmation before >closing a window with a live shell would be a real win. > Grab Simon Garfinkel's nibeditor from your favorite NeXT archive site: 1. Extract Terminal's .nib files using the extract utility. 2. Open Terminal.nib in Interface Builder. 3. Select and delete the "q" in the Quit cell in Terminal's menu. 4. Repeat for any other keyboard alternatives you want to change. 5. Save your changes and exit IB. 6. Run the combine utility to produce a new version of Terminal with your changes implemented. You may consider this a patch, but it's pretty trivial because no source code is changed (you don't even have the source code :-) I haven't tried it, but you might even be able to add alert panels similar to the logout alert panel so you can cancel the Terminal Quit or cancel the closing of a Terminal window before it happens. -- _____ ____ Art Isbell |\ | HELP! | | | \ 315 Moon Meadow Lane NeXT Registered Developer | \ | ___ |____| | | Felton, CA 95018-9442 isbell@ucscf.UCSC.EDU | \ | |___| | \ | | (408)335-1154 => I NEED TO FIND NeXT ==> | \| |___ | \ |___/ ==> DEVELOPMENT WORK <=