On 2022-10-11 11:06, reinert wrote:
Any simple way to print out bold text from an Ada program?
In case, how?
Assume linux.
reinert
Print the corresponding ANSI control sequence to turn on bold mode
before you print the text, then print the ANSI control sequence to turn
off bold mode.
See
https://www.linux.org/threads/ansi-codes-and-colorized-terminals.11706/.
Example:
with Ada.Characters.Latin_1;
with Ada.Text_IO;
procedure Be_Bold
is
use Ada.Characters, Ada.Text_IO;
begin
Put ("This is a very ");
-- Bold mode:
Put (Latin_1.ESC); Put ("[1m");
Put ("bold");
-- Normal mode:
Put (Latin_1.ESC); Put ("[0m");
Put_Line (" program.");
end Be_Bold;
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)