comp.lang.ada
 help / color / mirror / Atom feed
* hello world ada-ncurses new_window
@ 2019-11-07 22:05 Alain De Vos
  2019-11-08  6:50 ` J-P. Rosen
  2019-11-08  9:07 ` Simon Wright
  0 siblings, 2 replies; 6+ messages in thread
From: Alain De Vos @ 2019-11-07 22:05 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-11-09 13:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-07 22:05 hello world ada-ncurses new_window Alain De Vos
2019-11-08  6:50 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox