Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!hp4nl!phigate!ehviea!leo From: leo@ehviea.ine.philips.nl (Leo de Wit) Newsgroups: comp.unix.questions Subject: Re: Alternate characters at bottem right hand corner. Keywords: curses, ansi, vt100 Message-ID: <808@ehviea.ine.philips.nl> Date: 28 Jun 90 07:12:40 GMT References: <1344@wiggles.UUCP> <13250@smoke.BRL.MIL> Reply-To: leo@ehviea.UUCP (Leo de Wit) Organization: Philips I&E Eindhoven Lines: 51 (Mail to T. Kramer failed; phigate!nluug.nl!MAILER-DAEMON says: 554 theo@wiggles... undomained host not known : wiggles) In article <13250@smoke.BRL.MIL> gwyn@smoke.BRL.MIL (Doug Gwyn) writes: |In article <1344@wiggles.UUCP> theo@wiggles.UUCP (T. Kramer) writes: |>Has anybody out there got a solution? | |You're not supposed to try to place a character at the LRC, for obvious |reasons. I suppose by 'obvious reasons' you meant the scrolling of the display; this depends on the type of terminal, and the mode it is in (automargin on/off). For instance, on a vt220 you _can_ place a character at the LRC. The following test program was run both with BSD curses and AT&T curses (on a Pyramid): #include main() { initscr(); scrollok(stdscr,TRUE); clear(); box(stdscr,'|','-'); refresh(); getch(); endwin(); } Results for a vt220: both versions use the LRC, the AT&T one uses the enter insert mode (smir) sequence to accomplish this, it also ends each line - except the last - with a carriage return (which is bogus IMHO, since the terminfo entry has the 'am' capability). Results for a vt100 (which doesn't have an insert character or enter insert mode capability): the BSD version places a character at the LRC, the AT&T version doesn't. If you leave out the scrollok(), it makes no difference for the AT&T version, the BSD version however doesn't use any of the corners anymore (for the box()). Even if you create a terminfo entry for a 'vt100 without automargin', AT&T curses refuses to use the LRC. | However, on terminals that support character (or, yuck, line) |insertion, you can achieve the same effect by building a last line with |some earlier character left out, then insert the left-out character to |shift the rest of the line over. Unfortunately, the vt100 (one of the terminals this was asked for) doesn't support character insertion. Leo.