From: alby.gamper@gmail.com
Subject: Re: Can Ada print coloured/styled text to the terminal? (ANSI escape sequences?)
Date: Thu, 16 Aug 2018 05:52:01 -0700 (PDT)
Date: 2018-08-16T05:52:01-07:00 [thread overview]
Message-ID: <55372a19-160e-4ac5-8fb7-78f45433b0d5@googlegroups.com> (raw)
In-Reply-To: <0139f162-7150-45bf-b14f-4ed593f8ee82@googlegroups.com>
On Thursday, August 16, 2018 at 10:29:11 PM UTC+10, Aurele Vitali wrote:
> Very nice Alex, and remember if you prefer a fullscreen mood (just like an actual VT100 terminal), simply insert a "SetConsoleDisplayMode" API call with the "CONSOLE_FULLSCREEN_MODE" flag set. You might also want to write your own thin Win32 spec. Just include something like this:
>
> function SetConsoleDisplayMode (
> ConOut_Ref : access System.Address;
> Flags : Interfaces.C.unsigned_long;
> Buffer_Ref : Coord_Ref
> )
> return Interfaces.C.int
>
> with Import => True,
> Convention => StdCall,
> External_Name => "SetConsoleDisplayMode";
>
> Also, Windows 10 supports two screen buffers (see Alternate Screen Buffer in my first link): The main buffer has scroll bars, the other has none. Have fun!
Thanks Aurele, I hadn't thought of testing against Vt100 full screen mode, and
I will try (time permitting) to update the sample code accordingly
prev parent reply other threads:[~2018-08-16 12:52 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-04 1:37 Can Ada print coloured/styled text to the terminal? (ANSI escape sequences?) Hazz
2018-08-04 1:59 ` Lucretia
2018-08-04 2:21 ` Hazz
2018-08-04 9:07 ` Jeffrey R. Carter
2018-08-06 6:35 ` briot.emmanuel
2018-08-06 22:15 ` Randy Brukardt
2018-08-07 5:12 ` Per Sandberg
2018-08-07 22:31 ` Randy Brukardt
2018-08-08 6:39 ` Per Sandberg
2018-08-08 17:59 ` Randy Brukardt
2018-08-08 18:28 ` Dmitry A. Kazakov
2018-08-08 19:23 ` Dan'l Miller
2018-08-07 8:33 ` Dmitry A. Kazakov
2018-08-07 13:59 ` Dan'l Miller
2018-08-07 22:36 ` Randy Brukardt
2018-08-09 17:08 ` G. B.
2018-08-07 0:01 ` Aurele
2018-08-12 20:56 ` Matt Borchers
2018-08-13 10:23 ` Aurele Vitali
2018-08-16 9:58 ` alby.gamper
2018-08-16 12:29 ` Aurele Vitali
2018-08-16 12:52 ` alby.gamper [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox