From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: Bold text (in terminal) from Ada? Date: Tue, 11 Oct 2022 10:43:31 +0200 Organization: A noiseless patient Spider Message-ID: References: <77f28b34-63ef-4903-a111-026968c0918dn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 11 Oct 2022 08:43:31 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="3ad25625c99a564dd24967e4a8f6372d"; logging-data="1096113"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4BsHsK9oakK+imscafcSkRM6UVFoe6Kw=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Cancel-Lock: sha1:HM3117uN8KNa4yxXeigdyomCmrY= Content-Language: en-US In-Reply-To: <77f28b34-63ef-4903-a111-026968c0918dn@googlegroups.com> Xref: reader01.eternal-september.org comp.lang.ada:64486 List-Id: On 2022-10-11 10:06, reinert wrote: > Any simple way to print out bold text from an Ada program? > In case, how? > > Assume linux. Looking at PragmARC.Ansi_Tty_Control (https://github.com/jrcarter/PragmARC/blob/Ada-12/pragmarc-ansi_tty_control.ads) we can see that sending PragmARC.Ansi_Tty_Control.Bold_Mode to most Linux terminal emulators initiates bold mode. -- Jeff Carter "Simplicity and elegance are unpopular because they require hard work and discipline to achieve and education to be appreciated." Edsger Dijkstra 170