Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'see.': 0.07; 'suppose': 0.07; 'ascii': 0.09; 'calculating': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:characters': 0.09; 'jan': 0.12; 'programs.': 0.14; 'posted': 0.15; 'windows': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'root:': 0.16; 'screen,': 0.16; 'silly': 0.16; 'stuff.': 0.16; 'subject:Unicode': 0.16; 'which,': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'trying': 0.19; 'print': 0.22; 'header:User-Agent:1': 0.23; 'subject:problem': 0.24; 'text.': 0.24; 'looks': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'tried': 0.27; 'point': 0.28; 'am,': 0.29; "i'm": 0.30; "skip:' 10": 0.31; 'subject:some': 0.31; 'probably': 0.32; 'figure': 0.32; 'text': 0.33; 'running': 0.33; 'ago': 0.33; 'not.': 0.33; "i'd": 0.34; 'problem': 0.35; 'subject:with': 0.35; 'classes': 0.35; 'but': 0.35; 'there': 0.35; 'doing': 0.36; 'next': 0.36; "i'll": 0.36; 'starting': 0.37; 'step': 0.37; 'window': 0.38; 'to:addr:python-list': 0.38; 'track': 0.38; 'short': 0.38; 'received:71': 0.39; 'delete': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'color': 0.61; 'simple': 0.61; 'developed': 0.63; 'provide': 0.64; 'different': 0.65; 'taking': 0.65; 'url:be': 0.68; 'day': 0.76; 'boxes.': 0.84; 'game,': 0.84; 'hard.': 0.84; 'popup': 0.84; 'received:fios.verizon.net': 0.84; 'step,': 0.84; 'boxes,': 0.91; 'opens': 0.91; 'url:youtu': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: cmd.exe on WIndows - problem with displaying some Unicode characters Date: Mon, 04 Aug 2014 15:17:04 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-71-175-90-87.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407179849 news.xs4all.nl 2918 [2001:888:2000:d::a6]:51409 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75703 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 years ago full-screen console window, , but is intentionally crippled to stop people from doing what you are trying to do. Some as MS would like to delete it altogether. > I'm not starting from scratch. I'm using packages 'termcolor', 'colorama' > and 'colorconsole' - All on pypi.python.org, I see. > they provide functions to print text at desired > position on screen, and change color of foreground/background of this text. > With those packages I already developed some classes that allow me to > construct some simple menus for my console programs. Short demo of silly > program calculating degree of n-th root: > http://youtu.be/V8ilLhHAT_k I am impressed with what the authors of those packages managed to do. > 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. > Next step would be to manage those widgets to draw one over another, to > keep track which one window opens which, and when the other window must be > closed and when only grayed out. At this point I still don't know how to do > this right, but I'm thinking about this very hard. :-) Probably one day > I'll ask it here, if I don't figure it out. :-) You may have to settle for using different background colors to delineate different boxes. -- Terry Jan Reedy