From: Alain De Vos <devosalain71@gmail.com>
Subject: hello world ada-ncurses new_window
Date: Thu, 7 Nov 2019 14:05:39 -0800 (PST)
Date: 2019-11-07T14:05:39-08:00 [thread overview]
Message-ID: <a1b58a33-26cb-43b4-9242-4ca809b343d3@googlegroups.com> (raw)
Creating a window in ada-ncurses raises an exception :
Code,
with Terminal_Interface.Curses;
use Terminal_Interface.Curses;
....
with Ada.Exceptions;
use Ada.Exceptions;
with GNAT.OS_Lib;
use GNAT.OS_Lib;
with Text_IO;
use Text_IO;
with Ada.Text_IO;
use Ada.Text_IO;
procedure test01 is
begin
W1 := New_Window (5,5,1,1);
Delete (W1);
exception
when Event : others =>
Terminal_Interface.Curses.End_Windows;
Text_IO.Put ("Exception: ");
Text_IO.Put (Exception_Name (Event));
Text_IO.New_Line;
GNAT.OS_Lib.OS_Exit (1);
end test01;
Exception:
raised TERMINAL_INTERFACE.CURSES.CURSES_EXCEPTION : terminal_interface-curses.adb:117
next reply other threads:[~2019-11-07 22:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-07 22:05 Alain De Vos [this message]
2019-11-08 6:50 ` hello world ada-ncurses new_window J-P. Rosen
2019-11-08 9:07 ` Simon Wright
2019-11-08 13:19 ` Simon Wright
2019-11-09 11:25 ` Alain De Vos
2019-11-09 13:21 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox