Re: [Haskell-cafe] Windows console

2008-09-13 Thread Duncan Coutts
On Sat, 2008-09-13 at 13:41 +0100, Andrew Coppin wrote: > > If you mean "how do I compile the ANSI emulator on Windows but the > > actual ANSI stuff on Unix", most of the magic is in the .cabal file: > > > I simply turn on the C-preprocessor (CPP) and then supply -DWINDOWS on > > Windows and -DUN

Re: [Haskell-cafe] Windows console

2008-09-13 Thread Andrew Coppin
Max Bolingbroke wrote: 2008/9/13 Andrew Coppin <[EMAIL PROTECTED]>: Just FYI, I have now implemented and tested this feature. The new version, 0.5.0, is available on Hackage. For both platforms? Of course! My package promises to work cross-platform, after all. [rejoyce!]

Re: [Haskell-cafe] Windows console

2008-09-13 Thread Max Bolingbroke
2008/9/13 Andrew Coppin <[EMAIL PROTECTED]>: >> Just FYI, I have now implemented and tested this feature. The new >> version, 0.5.0, is available on Hackage. > > For both platforms? Of course! My package promises to work cross-platform, after all. > Out of interest, how do you get the correct pac

Re: [Haskell-cafe] Windows console

2008-09-13 Thread Andrew Coppin
Max Bolingbroke wrote: 2008/9/13 Max Bolingbroke <[EMAIL PROTECTED]>: Interesting information. I'll look into adding this to my package then: cheers! Just FYI, I have now implemented and tested this feature. The new version, 0.5.0, is available on Hackage. For both platforms? Out

Re: [Haskell-cafe] Windows console

2008-09-13 Thread Max Bolingbroke
2008/9/13 Max Bolingbroke <[EMAIL PROTECTED]>: > Interesting information. I'll look into adding this to my package then: > cheers! Just FYI, I have now implemented and tested this feature. The new version, 0.5.0, is available on Hackage. Cheers, Max __

Re: [Haskell-cafe] Windows console

2008-09-13 Thread Max Bolingbroke
2008/9/13 Brandon S. Allbery KF8NH <[EMAIL PROTECTED]>: >> Right. Unless you send an ^[^H]0;foo^G sequence (^[ being ESC) to your >> xterm. You'll find that the title changes to "foo". > > > 0 = both title and icon > 1 = icon name > 2 = titlebar text > > Most X11 terminal emulators use the same pro

Re: [Haskell-cafe] Windows console

2008-09-13 Thread Max Bolingbroke
2008/9/12 Andrew Coppin <[EMAIL PROTECTED]>: > Any ideas about the build log error that's preventing Hackage from > autogenerating the documentation? That is a Cabal problem: Duncan Coutts tells me that it is fixed in HEAD, so documentation will be available on Hackage when they update the version

Re: [Haskell-cafe] Windows console

2008-09-12 Thread Brandon S. Allbery KF8NH
On 2008 Sep 12, at 22:29, Curt Sampson wrote: On 2008-09-12 20:29 +0100 (Fri), Andrew Coppin wrote: Looks like the only thing it doesn't do is let you change the title on the console window. (Because, obviously, that's only possible on Windows.) Right. Unless you send an ^[^H]0;foo^G sequence

Re: [Haskell-cafe] Windows console

2008-09-12 Thread Curt Sampson
On 2008-09-12 20:29 +0100 (Fri), Andrew Coppin wrote: > Looks like the only thing it doesn't do is let you change the title > on the console window. (Because, obviously, that's only possible on > Windows.) Right. Unless you send an ^[^H]0;foo^G sequence (^[ being ESC) to your xterm. You'll find t

Re: [Haskell-cafe] Windows console

2008-09-12 Thread Andrew Coppin
Max Bolingbroke wrote: 2008/9/9 Andrew Coppin <[EMAIL PROTECTED]>: Actually, now that I think about it, it would be kind of nice to have a magic package that writes out escape codes or calls the Win32 API depending on which platform your program is compiled on - in the style of System.FilePat

Re: [Haskell-cafe] Windows console

2008-09-09 Thread Bulat Ziganshin
Hello Andrew, Tuesday, September 9, 2008, 11:15:08 PM, you wrote: > Haskell. I was not, however, able to find any way at all to import the > symbolic constants necessary, so I was forced to reading through the > source code of the raw C header files to find out what the numeric > values of thes

Re: [Haskell-cafe] Windows console

2008-09-09 Thread Max Bolingbroke
2008/9/9 Andrew Coppin <[EMAIL PROTECTED]>: > Actually, now that I think about it, it would be kind of nice to have a > magic package that writes out escape codes or calls the Win32 API depending > on which platform your program is compiled on - in the style of > System.FilePath. I don't know how t

Re: [Haskell-cafe] Windows console

2008-09-09 Thread Jonathan Cast
On Tue, 2008-09-09 at 20:15 +0100, Andrew Coppin wrote: > When coding in a POSIX-compliant environment, you can usually write > special escape codes to the console to change the text colour and so > forth. However, this does not work on Windows. > > (Ignore all references you see to enabling ANS

[Haskell-cafe] Windows console

2008-09-09 Thread Andrew Coppin
When coding in a POSIX-compliant environment, you can usually write special escape codes to the console to change the text colour and so forth. However, this does not work on Windows. (Ignore all references you see to enabling ANSI.SYS in your config.sys file; this applies only to 16-bit MS-DO