On Sun, 23 Feb 1997, Robert Sinland wrote: > I was messing with Oasis olc and trying to figure out how to load > a MOB into a room with zedit. Turns out when I looked at the code in > zedit.c there was a line or two with an sprint (etc) then some ansi > codes esc[H esc[J then the menu list. These ansi calls were somehow > killing the first one or two choices of any menu that they were used in, > so I took them out and recompiled, problem solved. My question is what > do they do and why were they there? I dug in a book or two before > posting this, but found no ref to either of those codes as they were > used. \x1b[H is go to 0,0 (home), \x1b[J is clear from cursor position to the bottom of the screen (so if the cursor was at 23,23 it'd clear 23,24 through 24,24). Your Win95/DOS/whatever thing might want \x1b[2J (means clear the whole screen no matter where you are). Be warned that some programs have problems interpreting ANSI codes and don't like clear screen codes. I believe it was posted here that a program called..uhm.. I belive zMud or something similar to that erases the top line (or so) when it clears the screen. Dunno if there's been a fix for it, yet, after all, I don't use (read: despise) Win95. -- Daniel Koepke dkoepke@california.com Forgive me father, for I am sin. +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | | Or send 'info circle' to majordomo@cspo.queensu.ca | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST