-- 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;
value : RGB_Value;
usebase : Boolean);
-
-
procedure change_color (current : Color_Number;
field : RGB_Enum;
value : RGB_Value;
end change_color;
-
package x is new ncurses2.genericPuts (100); use x;
tmpb : x.BS.Bounded_String;
current : Color_Number := 0;
field : RGB_Enum := Redx;
this_c : Key_Code := 0;
- last_c : Key_Code;
begin
Refresh;
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 " &
Move_Cursor (Line => 2 + Line_Position (current), Column => 0);
- last_c := this_c;
this_c := Getchar;
if Is_Digit (this_c) then
value := 0;