]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - Ada95/samples/ncurses2-color_edit.adb
ncurses 6.2 - patch 20200711
[ncurses.git] / Ada95 / samples / ncurses2-color_edit.adb
index ac14628fd9909da004aed77e676545435f0bec91..7c30c666a2345b0d10f5a249b80dc63794f9a6e8 100644 (file)
@@ -7,7 +7,8 @@
 --                                 B O D Y                                  --
 --                                                                          --
 ------------------------------------------------------------------------------
--- Copyright (c) 2000 Free Software Foundation, Inc.                        --
+-- Copyright 2020 Thomas E. Dickey                                          --
+-- Copyright 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            --
 ------------------------------------------------------------------------------
 --  Author: Eugene V. Melaragno <aldomel@ix.netcom.com> 2000
 --  Version Control
---  $Revision: 1.1 $
+--  $Revision: 1.7 $
+--  $Date: 2020/02/02 23:34:34 $
 --  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 +54,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 +83,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 +99,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 +172,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 +182,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;