Xref: utzoo comp.sys.ibm.pc:11816 comp.sys.tandy:601 Path: utzoo!mnetor!uunet!husc6!yale!cmcl2!brl-adm!umd5!uvaarpa!virginia!uvacs!alb7e From: alb7e@uvacs.CS.VIRGINIA.EDU (Lynn Barbee) Newsgroups: comp.sys.ibm.pc,comp.sys.tandy Subject: Re: Video Attributes Message-ID: <2226@uvacs.CS.VIRGINIA.EDU> Date: 8 Feb 88 23:17:16 GMT References: <518@auvax.UUCP> Organization: U.Va. CS Department, Charlottesville, VA Lines: 79 In article <518@auvax.UUCP>, terryt@auvax.UUCP (Terry Tanski) writes: > > How do you change the video attributes on an IBM PC. I would like to > bold,reverse,underline strings on the screen but don't know how or > what escape sequences to use. > > Can anyone help? > > Terry Tanski - Systems Analyst > Athabasca University > Athabasca, Alberta CANADA > > (!alberta!auvax!terryt) Subject: Re: Video Attributes ASSUMPTION: using MS-DOS A PC uses ANSI escape sequences to print underlined, blinking , etc characters. First you must have device=ansi.sys in your config.sys file and of course have ansi.sys available. ANSI.SYS should be on your MS-DOS diskette. The following is an incomplete set of ANSI sequence's : ESC code sequence Function ----------------- -------- Erase Functions: ESC[2J Clear screen and home cursor ESC[K clear to end of line Set graphics rendition: ESC[#;#;...;#m Set display attributes where # is 0 for normal display 1 for bold on 4 underline (mono only) 5 blink on 8 invisible 30 black foreground 31 red foreground 32 green foreground 33 yellow foreground 34 blue foreground 35 magenta foreground 36 cyan foreground 37 white foreground 40 - 47 background colors in same order as above foreground ESC[=#;7h Put screen in mode # 0 for 40 x 25 mono 2 for 80 x 25 mono This is no where near all of them but maybe it's a start. Hope it helps. Lynn Barbee Bell Communications Research GSP to Univ. Of Virginia