X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=Ada95%2Fsamples%2Fncurses2-color_edit.adb;h=098f98d837b274f31ce051f16c731143f09ff09e;hp=ac14628fd9909da004aed77e676545435f0bec91;hb=0237f10a296593d54fd8b2aa144921983085e002;hpb=46722468f47c2b77b3987729b4bcf2321cccfd01 diff --git a/Ada95/samples/ncurses2-color_edit.adb b/Ada95/samples/ncurses2-color_edit.adb index ac14628f..098f98d8 100644 --- a/Ada95/samples/ncurses2-color_edit.adb +++ b/Ada95/samples/ncurses2-color_edit.adb @@ -7,7 +7,7 @@ -- B O D Y -- -- -- ------------------------------------------------------------------------------ --- Copyright (c) 2000 Free Software Foundation, Inc. -- +-- Copyright (c) 2000-2006,2009 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- @@ -35,14 +35,14 @@ ------------------------------------------------------------------------------ -- Author: Eugene V. Melaragno 2000 -- Version Control --- $Revision: 1.1 $ +-- $Revision: 1.6 $ +-- $Date: 2009/12/26 17:38:58 $ -- Binding Version 01.00 ------------------------------------------------------------------------------ with ncurses2.util; use ncurses2.util; with ncurses2.genericPuts; with Terminal_Interface.Curses; use Terminal_Interface.Curses; - procedure ncurses2.color_edit is use Int_IO; @@ -53,8 +53,6 @@ procedure ncurses2.color_edit is value : RGB_Value; usebase : Boolean); - - procedure change_color (current : Color_Number; field : RGB_Enum; value : RGB_Value; @@ -84,7 +82,6 @@ procedure ncurses2.color_edit is end change_color; - package x is new ncurses2.genericPuts (100); use x; tmpb : x.BS.Bounded_String; @@ -101,7 +98,6 @@ procedure ncurses2.color_edit is current : Color_Number := 0; field : RGB_Enum := Redx; this_c : Key_Code := 0; - last_c : Key_Code; begin Refresh; @@ -175,7 +171,7 @@ begin Set_Character_Attributes; end if; Set_Character_Attributes; - Add (ch => ')'); + Add (Ch => ')'); end loop; Add (Line => Line_Position (Number_Of_Colors + 3), Column => 0, Str => "Use up/down to select a color, left/right to change " & @@ -185,7 +181,6 @@ begin Move_Cursor (Line => 2 + Line_Position (current), Column => 0); - last_c := this_c; this_c := Getchar; if Is_Digit (this_c) then value := 0;