Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site lasspvax.UUCP Path: utzoo!linus!decvax!decwrl!amd!dual!zehntel!ihnp4!houxm!vax135!cornell!lasspvax!cpf From: cpf@lasspvax.UUCP (Courtenay Footman) Newsgroups: net.games.rogue Subject: Re: Rogue's use of termcap entries Message-ID: <88@lasspvax.UUCP> Date: Tue, 16-Oct-84 17:38:27 EDT Article-I.D.: lasspvax.88 Posted: Tue Oct 16 17:38:27 1984 Date-Received: Fri, 19-Oct-84 05:32:23 EDT References: <335@mako.UUCP> Reply-To: cpf@lasspvax.UUCP (Courtenay Footman) Organization: Cornell University Theorynet Lines: 24 In article <335@mako.UUCP> steveb@mako.UUCP writes: > >I believe rogue is incorrect when it puts out the "vs" termcap entry upon >startup as well as putting out "ti". >.... >Can anyone justify rogue's use of vs, or is it agreed that it is wrong? It is quite simple. Rogue undoubtably uses curses to handle screen movement. Curses initializes the terminal in a routine setterm(), called by initscr(). Setterm has in it the lines _puts(TI); _puts(VS); . Thus *any* program that uses the default screen handling program (curses) will put out both the TI string and the VS string. This explains why rogue uses VS; it does not explain why curses does. (The person who wrote curses states that he used much code from vi; this probably slipped through; whether it is necessary I don't know.) See the document "Screen Updating and Cursor Movement Optimization: A Library Package", by K. Arnold in UPM 2C for more details. -- Courtenay Footman arpa: cpf@lnsvax Newman Lab. of Nuclear Studies usenet: cornell!lnsvax!cpf Cornell University