delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/04/10:00:36

From: "Martin Böhnert" <MartinB777 AT gmx DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: textattr() doesn't work as it should
Date: Wed, 4 Jul 2001 15:54:16 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Lines: 42
Message-ID: <3b431ff7$0$25519$9b622d9e@news.freenet.de>
NNTP-Posting-Host: 213.6.217.251
X-Trace: 994254839 news.freenet.de 25519 213.6.217.251
X-Complaints-To: abuse AT freenet DOT de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

hi!

i'm using djgpp (downloaded last sunday...). i'm writing a little
database in commandline of win95. for different textcolors and -backgrounds
i use
textattr(). but only when i use clrscr() the changes will take affect on the
next printf() command. a change with textattr() without clrscr() has no
effect. here's the procedure

void db_write() {
  textattr(112);
  clrscr();
  //printf("write database\n");
  printf("  martin's cd-datenbank v0.1\n");
  textattr(31);

printf("+------------------------------------------------------------------
  printf("¦
  printf("¦
  ...
  ...
  ...

printf("+------------------------------------------------------------------
  textattr(112);
  printf("  pfeiltasten: hoch/runter - enter: auswahl");
  gotoxy(0,3); // wegen cmd-prompt  nach ende
}

printf()'s are not completed here but in the source. all with ...");

if you know the prob then please answer me!

thanx a lot!

bye, martin!

-------------------------------------
martinb777 AT gmx DOT net
www.terrorbart.de


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019