Deutsch English Français Italiano |
<mailman.87.1712775067.3468.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: WordWeaver Evangelist <billkochman777@gmail.com> Newsgroups: comp.lang.python Subject: How to Add ANSI Color to User Response Date: Thu, 11 Apr 2024 04:50:49 +1000 Lines: 13 Message-ID: <mailman.87.1712775067.3468.python-list@python.org> References: <E07728FE-3599-462D-B572-107C5D53C72F@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 7jWVBxR8bBS7beJqQPmvRg5nowTO3nAD4pA0d2FcspZQ== Cancel-Lock: sha1:7NsJUUfybAQkjIoCHDUht3KQUFw= sha256:SKOZOM252gBcuvEXzPsEBUpJugsStv0vstz668IqEUs= Return-Path: <billkochman777@gmail.com> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=huO5EOvf; dkim-adsp=pass; dkim-atps=neutral X-Spam-Status: OK 0.092 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.02; 'subject:Add': 0.04; 'ansi': 0.09; 'jython': 0.16; 'received:apple': 0.16; 'received:smtpclient.apple': 0.16; 'subject:User': 0.16; 'advance.': 0.17; 'instead': 0.17; 'to:addr:python-list': 0.20; 'input': 0.21; 'code': 0.23; 'subject:How': 0.23; 'list,': 0.24; 'there': 0.33; 'received:google.com': 0.34; 'question.': 0.35; 'following': 0.35; 'from:addr:gmail.com': 0.35; "skip:' 10": 0.37; 'way': 0.38; 'use': 0.39; 'message-id:@yahoo.com': 0.40; 'color': 0.62; 'received:202': 0.69; 'conditions': 0.70; 'skip:f 20': 0.75; 'choice': 0.76; 'subject:Color': 0.84; 'subject:Response': 0.91; 'bill': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712775063; x=1713379863; darn=python.org; h=to:date:message-id:subject:mime-version:disposition-notification-to :from:from:to:cc:subject:date:message-id:reply-to; bh=3Vt0E+CLWfWefMVCDJZ0TYiwVM/YusVL0BA13Qqrgww=; b=huO5EOvfPKbDLtmtfJOq8s04EKd0H84QhrrIEKsQUxULQVpQpTAJvFGDexijti3sa/ mUFyRRhg9qvk5QBiLYHGkHRIQcul8NcRVfb0IxKhdvZ58ynFoIh8Qj8XczKJMuWAOvP8 PqIbgXUESPSSkAZQYhU0w37X/pYHD8pVVC9cXRfz9GYWnR3Afh/Ix1xNs+yVOTuylrAX sI0u/RnCqvIp8MQz8GBkSQPQBGzdIx4VsFvUuGvFNgZqe4/ENPSbLPiWzoI+7Eg8leXd 24v4bi2+RzpHowKBTbIv4g7ZACzOOoDAeyPjZnj7tqn4pndOdXbSKod1pAMXoZ1utAa5 LKZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712775063; x=1713379863; h=to:date:message-id:subject:mime-version:disposition-notification-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3Vt0E+CLWfWefMVCDJZ0TYiwVM/YusVL0BA13Qqrgww=; b=UOIW520sj+mk3NOu6/QejydAMV55tqhsW2B6btyQWHwxizB7PZzoVkklFivssX2uVd JgFE6fEvWFwuU/ZFYao8K44ZzzO9mp3F9mXWVrHS6JSzfZfROk80GHR7s1HDanAjw3n6 CWdXp41ZDqz222+a8/OCyOT8m0ugwtKTiImBN9Cjm0I5ueBzjWH/i6oKswZYXDposSVV oUWRxwD5uRo43P1GY92O971B7bsCFTvmY4K21BlwtSSkzYbc5/9Rv6G+MRRONRwRg39o Pfoawsx4ekEK4P/1vo/Y9L8kwvH5N8FqUz1G+o3Y4CSo8VDXQh7IJejkmnimYossKOjJ vQgw== X-Gm-Message-State: AOJu0YwEqrVLwzr3f1wsJjebBEDQn9LRDGdewkHyEOHrpX55F8K8egsE hmUN7W/hn0BQaTUlO+bHZRgtvJPeW/7ZBDZk5nDXKUCaB9mN2pA51eB+5fnN X-Google-Smtp-Source: AGHT+IH7WReTLpVy9yf/43D1rVxiFcq+2jz1mJ+VfXG0VG8qZ9i6p216lJVVXIIwQUMIt4wN/XcqHg== X-Received: by 2002:a17:90b:8d7:b0:2a0:3dc3:8a8b with SMTP id ds23-20020a17090b08d700b002a03dc38a8bmr3031870pjb.47.1712775063041; Wed, 10 Apr 2024 11:51:03 -0700 (PDT) X-Google-Original-From: WordWeaver Evangelist <wordweaverevangelist@yahoo.com> X-Mailer: Apple Mail (2.3774.500.171.1.1) X-Content-Filtered-By: Mailman/MimeDel 2.1.39 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language <python-list.python.org> List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> List-Archive: <https://mail.python.org/pipermail/python-list/> List-Post: <mailto:python-list@python.org> List-Help: <mailto:python-list-request@python.org?subject=help> List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> X-Mailman-Original-Message-ID: <E07728FE-3599-462D-B572-107C5D53C72F@yahoo.com> Bytes: 4833 Hello List, I have a simple question. I use the following textPrompt in some of my = Jython modules: '\n=1B[1;33mYour choice is? (A B C D E): ', maxChars=3D1, = autoAccept=3DFalse, forceUppercase=3DTrue) Is there a way to add an ANSI color code to the end where the conditions = are, so that the color of the user=E2=80=99s input is of a color of my = choosing, instead of just white? Thank you very much in advance. Kind regards, Bill Kochman=