Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!frisbee.Eng.Sun.COM!jcb From: jcb@frisbee.Eng.Sun.COM (Jim Becker) Newsgroups: comp.windows.open-look Subject: Re: problem with tty subwindows Keywords: tty xview openwin Message-ID: <4797@exodus.Eng.Sun.COM> Date: 19 Dec 90 00:56:25 GMT References: <1990Dec18.170732.23944@ucselx.sdsu.edu> <4760@exodus.Eng.Sun.COM> Sender: news@exodus.Eng.Sun.COM Lines: 49 jmck@norge.Eng.Sun.COM (John McKernan) writes: 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 The recommended workaround to the problem that you are experiencing is to create a TERMSW and set the object to the tty mode with the call: ttysw = xv_create(base_frame, TERMSW, WIN_IS_CLIENT_PANE, TTY_ARGV, argv, TTY_QUIT_ON_CHILD_DEATH, TRUE, TTY_CONSOLE, become_console, 0); xv_set(ttysw, TERMSW_MODE, TTYSW_MODE_TYPE, 0); Although the code you originally wrote should perform correctly, this isn't the case. Therefore, this workaround is used to make the code function correctly. Bottom line, it's our problem and we know about it. Sorry that you have to work around it. -Jim Becker XView Group -- -- Jim Becker / jcb%frisbee@sun.com / Sun Microsystems