Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-05 Thread Wiktor
On 05 Aug 2014 20:26:08 GMT, Tony the Tiger wrote: > On Mon, 04 Aug 2014 00:52:29 +0200, Wiktor wrote: > >> okumenty\python\kolony\menu.py", line 14, in > > This works for me on Linux: I believe you, but I use Windows and its cmd.exe (as mentioned in subject). -- Best regards, Wiktor M

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-05 Thread Grant Edwards
On 2014-08-05, Tony the Tiger wrote: > On Mon, 04 Aug 2014 00:52:29 +0200, Wiktor wrote: > >> okumenty\python\kolony\menu.py", line 14, in > > This works for me on Linux: > > ---8<- > # coding:utf-8 > > test = """ > ┌──╖ > │ Construction ║ > │ Production ║ > │ Re

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-05 Thread Wiktor
On Tue, 05 Aug 2014 04:51:15 +0400, Akira Li wrote: > Unicode has line drawing characters [1]. win_unicode_console [2] allows > to print Unicode in cmd.exe. win_unicode_console and colorama will > probably conflict. You could look at the source to see how hard to > combine both functionalities. >

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Akira Li
Wiktor writes: > On Mon, 04 Aug 2014 15:17:04 -0400, Terry Reedy wrote: > >>>I'm taking next step, so I tried to draw nice frame around menu (that's >>> why I posted yesterday). >> >> Is there no working codepage with ascii text and the line chars? I >> suppose I am not surprised if not. > >

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread giacomo boffi
Wiktor writes: > I'm not starting from scratch. I'm using packages 'termcolor', 'colorama' > and 'colorconsole' the 'urwid' package could be useful for similar projects but requires Linux, OSX, Cygwin or other unix-like OS so I guess it's of no use for you... ciao

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Christian Gollwitzer
Am 04.08.14 01:08, schrieb Chris Angelico: On Mon, Aug 4, 2014 at 8:52 AM, Wiktor wrote: I have to ask - is there a way to make that original concept work? I know, that CP437 has symbols "╖", "╢" and "╘", but does not have polish letters - and I need to display them too. Yeah, that's exactly

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Wiktor
On Mon, 04 Aug 2014 15:17:04 -0400, Terry Reedy wrote: >>I'm taking next step, so I tried to draw nice frame around menu (that's >> why I posted yesterday). > > Is there no working codepage with ascii text and the line chars? I > suppose I am not surprised if not. With single line (└┘┌┐─│

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Chris Angelico
On Tue, Aug 5, 2014 at 5:17 AM, Terry Reedy wrote: > Is there no working codepage with ascii text and the line chars? I suppose I > am not surprised if not. That would be codepage 437. I grew up with that on DOS, as the one and only 256-character set, and then when we moved to OS/2 and actual cod

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Terry Reedy
On 8/4/2014 1:22 PM, Wiktor wrote: On Tue, 5 Aug 2014 03:06:41 +1000, Chris Angelico wrote: On Tue, Aug 5, 2014 at 2:48 AM, Wiktor wrote: From colorama I just use one function - init(). Without this initialization all those ansii escape characters (used by colorama itself, but also by term

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Grant Edwards
On 2014-08-04, Glenn Linderman wrote: > I believe that most Unix terminal emulators, which are used for running > shells and command lines, support cursor controls, and I believe most of > them have a mode that emulates the DEC VT-52 terminal, I'm not aware of any that are in common use, but t

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Terry Reedy
On 8/4/2014 6:24 AM, Wolfgang Maier wrote: On 08/04/2014 11:53 AM, Glenn Linderman wrote: I've never used the API from Python but random console access is documented at http://msdn.microsoft.com/en-us/library/windows/desktop/ms687404%28v=vs.85%29.aspx Would using the API from Python involve

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Terry Reedy
On 8/4/2014 11:00 AM, Wiktor wrote: Yes, I'd like to make text game, that looks like window-based, with popup boxes, inactive windows grayed out and all this stuff. And all this running on standard console window (cmd.exe). Your problem doing this is that cmd.exe is not a standard since 30

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Glenn Linderman
On 8/4/2014 3:24 AM, Wolfgang Maier wrote: On 08/04/2014 11:53 AM, Glenn Linderman wrote: I've never used the API from Python but random console access is documented at http://msdn.microsoft.com/en-us/library/windows/desktop/ms687404%28v=vs.85%29.aspx Would using the API from Python invol

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Glenn Linderman
On 8/4/2014 3:33 AM, Andrew Berg wrote: If you want to save your users the hassle, I would definitely recommend a graphical environment. If I had realized that you intended your application to be widely deployed, I would have simply recommended that from the start. Graphical environments are go

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Wiktor
On Tue, 5 Aug 2014 03:06:41 +1000, Chris Angelico wrote: > On Tue, Aug 5, 2014 at 2:48 AM, Wiktor wrote: >> From colorama I just use one function - init(). Without this >> initialization all those ansii escape characters (used by colorama itself, >> but also by termcolor.colored()) don't work i

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Chris Angelico
On Tue, Aug 5, 2014 at 2:48 AM, Wiktor wrote: > From colorama I just use one function - init(). Without this > initialization all those ansii escape characters (used by colorama itself, > but also by termcolor.colored()) don't work in cmd.exe. At least I couldn't > make it work. I dug into colo

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Wiktor
On Mon, 04 Aug 2014 17:43:41 +0200, Wolfgang Maier wrote: >>I'm not starting from scratch. I'm using packages 'termcolor', 'colorama' >> and 'colorconsole' - they provide functions to print text at desired >> position on screen, and change color of foreground/background of this text. > > Than

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Wolfgang Maier
On 08/04/2014 05:00 PM, Wiktor wrote: Hi, first, thank you all for responses. I decided to just use single line frame around menu. Yes, those double+single line corners work fine in ConEmu, but I don't want this Python script to be dependent on external program. Maybe one day it will be worth

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Wiktor
Hi, first, thank you all for responses. I decided to just use single line frame around menu. Yes, those double+single line corners work fine in ConEmu, but I don't want this Python script to be dependent on external program. Maybe one day it will be worth of showing to others, and it's silly to t

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Andrew Berg
On 2014.08.04 04:46, Glenn Linderman wrote: > How does one "directly run" another application using ConEmu? That wasn't > clear > from what I found to read. It sounded like you run ConEmu, run one or more > shells within it, and launch programs from those shells? And so it was also > unclear if a

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Wolfgang Maier
On 08/04/2014 11:53 AM, Glenn Linderman wrote: I've never used the API from Python but random console access is documented at http://msdn.microsoft.com/en-us/library/windows/desktop/ms687404%28v=vs.85%29.aspx Would using the API from Python involve doing the wrapping yourself or do you know

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Glenn Linderman
On 8/4/2014 1:39 AM, Terry Reedy wrote: On 8/3/2014 6:52 PM, Wiktor wrote: Hi, as OO programming exercise, I'm trying to port to Python one of my favorite game from early'90 (Atari 65XL/XE) - Kolony (here's video from original version on C64 https://www.youtube.com/watch?v=UFycYOp2cbE, and h

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Glenn Linderman
On 8/3/2014 10:06 PM, Andrew Berg wrote: On 2014.08.03 23:14, Glenn Linderman wrote: Having read a bit about ConEmu, it seems that it is a "pretty face" built on top of Windows Console, by screen scraping the real (but hidden) Windows Console, and providing a number of interesting display featur

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Chris “Kwpolska” Warrick
On Mon, Aug 4, 2014 at 2:17 AM, Glenn Linderman wrote: > For this OP problem, it is mostly a matter of finding a fixed-width font > that supports the box drawing characters and the Polish characters that are > desired. Lucida Console has a fair repertoire, and Consolas has a fair > repertoire, in

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Terry Reedy
On 8/3/2014 6:52 PM, Wiktor wrote: Hi, as OO programming exercise, I'm trying to port to Python one of my favorite game from early'90 (Atari 65XL/XE) - Kolony (here's video from original version on C64 https://www.youtube.com/watch?v=UFycYOp2cbE, and here's This appears to be an actual text s

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-03 Thread Andrew Berg
On 2014.08.03 23:14, Glenn Linderman wrote: > Having read a bit about ConEmu, it seems that it is a "pretty face" built on > top of Windows Console, by screen scraping the real (but hidden) Windows > Console, and providing a number of interesting display features and modes. So > while it adds funct

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-03 Thread Glenn Linderman
On 8/3/2014 5:17 PM, Glenn Linderman wrote: On 8/3/2014 4:25 PM, Andrew Berg wrote: On 2014.08.03 18:08, Chris Angelico wrote: The best way to do it is to use the Unicode codepage, but cmd.exe just plain has issues. There are underlying Windows APIs for displaying text that have problems with a

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-03 Thread Glenn Linderman
On 8/3/2014 4:25 PM, Andrew Berg wrote: On 2014.08.03 18:08, Chris Angelico wrote: The best way to do it is to use the Unicode codepage, but cmd.exe just plain has issues. There are underlying Windows APIs for displaying text that have problems with astral characters (I think that's what it is),

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-03 Thread Chris Angelico
On Mon, Aug 4, 2014 at 9:39 AM, Chris Angelico wrote: > I just played around with a CP-437 decode of everything 128-255, > rendered in various different fonts, all using my MUD client on > Windows. (For what it's worth, it renders using GTK2 and Pango. But I > suspect this is more a font issue tha

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-03 Thread Chris Angelico
On Mon, Aug 4, 2014 at 9:25 AM, Andrew Berg wrote: > On 2014.08.03 18:08, Chris Angelico wrote: >> The best way to do it is to use the Unicode codepage, but cmd.exe just >> plain has issues. There are underlying Windows APIs for displaying >> text that have problems with astral characters (I think

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-03 Thread Mark Lawrence
On 04/08/2014 00:25, Andrew Berg wrote: On 2014.08.03 18:08, Chris Angelico wrote: The best way to do it is to use the Unicode codepage, but cmd.exe just plain has issues. There are underlying Windows APIs for displaying text that have problems with astral characters (I think that's what it is),

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-03 Thread Andrew Berg
On 2014.08.03 18:08, Chris Angelico wrote: > The best way to do it is to use the Unicode codepage, but cmd.exe just > plain has issues. There are underlying Windows APIs for displaying > text that have problems with astral characters (I think that's what it > is), so ultimately, you're largely stuc

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-03 Thread Mark Lawrence
On 03/08/2014 23:52, Wiktor wrote: Hi, as OO programming exercise, I'm trying to port to Python one of my favorite game from early'90 (Atari 65XL/XE) - Kolony (here's video from original version on C64 https://www.youtube.com/watch?v=UFycYOp2cbE, and here's video from modern rewritten (for Atar

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-03 Thread Chris Angelico
On Mon, Aug 4, 2014 at 8:52 AM, Wiktor wrote: > I have to ask - is there a way to make that original concept work? I know, > that CP437 has symbols "╖", "╢" and "╘", but does not have polish letters - > and I need to display them too. Yeah, that's exactly the problem with codepages :) The best w

cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-03 Thread Wiktor
Hi, as OO programming exercise, I'm trying to port to Python one of my favorite game from early'90 (Atari 65XL/XE) - Kolony (here's video from original version on C64 https://www.youtube.com/watch?v=UFycYOp2cbE, and here's video from modern rewritten (for Atari emulators) version: Kolony 2106 htt

Re: windows problem

2006-11-29 Thread hankpai
thanks :)! On Nov 29, 12:35 am, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Wednesday 29 November 2006 8:12 am, [EMAIL PROTECTED] wrote: > > > Dumb question from extreme newbie. > > > Steps so far: > > 1. Installed Python 2.5 > > 2. Installed Qt 4.2.1 (with mingw) from executable > > 3. Installe

Re: [PyQt] windows problem

2006-11-29 Thread Phil Thompson
On Wednesday 29 November 2006 8:12 am, [EMAIL PROTECTED] wrote: > Dumb question from extreme newbie. > > Steps so far: > 1. Installed Python 2.5 > 2. Installed Qt 4.2.1 (with mingw) from executable > 3. Installed PyQt 4.1 from executable > > Been trying to run the first example (t1.pyw) in the tuto

[PyQt] windows problem

2006-11-29 Thread hankpai
Dumb question from extreme newbie. Steps so far: 1. Installed Python 2.5 2. Installed Qt 4.2.1 (with mingw) from executable 3. Installed PyQt 4.1 from executable Been trying to run the first example (t1.pyw) in the tutorials folder, but the following error pops up while running the from idle-pyth