Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!norge.Eng.Sun.COM!jmck From: jmck@norge.Eng.Sun.COM (John McKernan) Newsgroups: comp.windows.open-look Subject: Re: problem with tty subwindows Keywords: tty xview openwin Message-ID: <4760@exodus.Eng.Sun.COM> Date: 18 Dec 90 21:02:12 GMT References: <1990Dec18.170732.23944@ucselx.sdsu.edu> Sender: news@exodus.Eng.Sun.COM Lines: 19 turtle@sciences.sdsu.EDU (Andrew Scherpbier) writes: >This compiles and runs fine until I run 'vi' in the window! >It will dump core when the terminal is set to sun-cmd and >vi is started. When I change the terminal type to just 'sun' >everything is fine. >DBX reports the error to be in 'ttysw_ansi_escape' Patient: "Doc, it hurts when I do this." Doctor: "Okay, don't do that." The terminal type sun-cmd is for the cmdtool program, which has a scrollbar. When sun's vi is run in a cmdtool, vi turns the scrollbar off. In a ttysw with the terminal type set to sun-cmd vi appearently attempts to turn off a non-existent scrollbar leading to a crash. The moral of the story is to set the terminal type correctly. Alternatively you could use a termsw instead of a ttysw. John McKernan. Windows and Graphics Software, Sun Microsystems. jmck@sun.com