home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,160 of 2,978   
   Samuel Fleischer to All   
   Crt, redirectable output, text-color   
   07 Dec 04 21:40:56   
   
   From: LiveSucks@hotmail.com   
      
   Hello !   
      
   I try to create a real-DOS application with BP7.   
   I use the CRT-unit as -on screen- I need to   
   change text-color via "textcolor();"   
   and "normvideo;".   
      
   The CRT-unit by default makes it impossible to   
   redirect in- or output by the shell. Instead   
   empty files are created.   
   Within Prof. Timo Salmi's FAQ I read that   
   "assig(output,''); rewrite(output);"   
   makes output redirectable again.   
      
   When I do this, output is redirectable.   
   GoToXY also works.   
   But changes of textcolor via   
   "textcolor();"   
   do not apply any more.   
      
   Is there a possibility to achieve both redirectable   
   output and coloured text via the CRT-unit?   
      
   Is there a possibility to detect if in- or output   
   is redirected by the shell?   
   [   
     If so, branching could be implemented -   
     pseudo-code:   
      
     IF redirection THEN   
     BEGIN   
       assig(output,'');   
       rewrite(output);   
     END;   
   ]   
      
   Sincerely   
      
   Sam   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca