Re: Using ANSI codes

2009-11-05 Thread Daniel Keep

funog wrote:
 Stewart Gordon Wrote:
 
 Funog wrote:
 How can I get a D1 console program to use ANSI codes? Currently it just 
 prints the escape character like any other...
 At first I thought you meant the ANSI character set, but then I realised 
 you're probably talking about ANSI.SYS.

 This is an operating system issue, not a D issue.  What OS version are 
 you using?  Try searching the web for info related to yours.

 Alternatively, check out disp.h, which comes with DMC, and use that 
 instead.  I once began writing D bindings for it

 Stewart.
 
 You are right. I was using Vista Premium, but it works fine on linux.

http://github.com/DanielKeep/gb/blob/master/src/gb/io/Ansi.d

Should stand on its own, but only works with Tango.

  -- Daniel


Using ANSI codes

2009-11-03 Thread Funog
How can I get a D1 console program to use ANSI codes? Currently it just prints 
the escape character like any other...


Re: Using ANSI codes

2009-11-03 Thread Stewart Gordon

Funog wrote:

How can I get a D1 console program to use ANSI codes? Currently it just prints 
the escape character like any other...


At first I thought you meant the ANSI character set, but then I realised 
you're probably talking about ANSI.SYS.


This is an operating system issue, not a D issue.  What OS version are 
you using?  Try searching the web for info related to yours.


Alternatively, check out disp.h, which comes with DMC, and use that 
instead.  I once began writing D bindings for it


Stewart.


Re: Using ANSI codes

2009-11-03 Thread funog
Stewart Gordon Wrote:

 Funog wrote:
  How can I get a D1 console program to use ANSI codes? Currently it just 
  prints the escape character like any other...
 
 At first I thought you meant the ANSI character set, but then I realised 
 you're probably talking about ANSI.SYS.
 
 This is an operating system issue, not a D issue.  What OS version are 
 you using?  Try searching the web for info related to yours.
 
 Alternatively, check out disp.h, which comes with DMC, and use that 
 instead.  I once began writing D bindings for it
 
 Stewart.

You are right. I was using Vista Premium, but it works fine on linux.