projects
/
ncurses.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ncurses 6.2 - patch 20200627
[ncurses.git]
/
Ada95
/
src
/
terminal_interface-curses-termcap.adb
diff --git
a/Ada95/src/terminal_interface-curses-termcap.adb
b/Ada95/src/terminal_interface-curses-termcap.adb
index be1da8297ce5c14bff113184241cc8d408b8a23a..d09457ccfec49ca2fdf248f41b9def17cefbbc05 100644
(file)
--- a/
Ada95/src/terminal_interface-curses-termcap.adb
+++ b/
Ada95/src/terminal_interface-curses-termcap.adb
@@
-7,7
+7,8
@@
-- B O D Y --
-- --
------------------------------------------------------------------------------
-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright (c) 2000,2004 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 --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this software and associated documentation files (the --
@@
-35,7
+36,8
@@
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control:
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control:
--- $Revision: 1.6 $
+-- $Revision: 1.13 $
+-- $Date: 2020/02/02 23:34:34 $
-- Binding Version 01.00
------------------------------------------------------------------------------
-- Binding Version 01.00
------------------------------------------------------------------------------
@@
-52,7
+54,7
@@
package body Terminal_Interface.Curses.Termcap is
pragma Import (C, tgetent, "tgetent");
NameTxt : char_array (0 .. Name'Length);
Length : size_t;
pragma Import (C, tgetent, "tgetent");
NameTxt : char_array (0 .. Name'Length);
Length : size_t;
- ignored : char_array (0 .. 0) := (0 => nul);
+ ignored : c
onstant c
har_array (0 .. 0) := (0 => nul);
result : C_Int;
begin
To_C (Name, NameTxt, Length);
result : C_Int;
begin
To_C (Name, NameTxt, Length);
@@
-81,7
+83,7
@@
package body Terminal_Interface.Curses.Termcap is
end Get_Flag;
------------------------------------------------------------------------------
end Get_Flag;
------------------------------------------------------------------------------
- procedure Get_Number (Name :
in
String;
+ procedure Get_Number (Name : String;
Value : out Integer;
Result : out Boolean)
is
Value : out Integer;
Result : out Boolean)
is
@@
-111,7
+113,7
@@
package body Terminal_Interface.Curses.Termcap is
Length : size_t;
Txt2 : chars_ptr;
type t is new char_array (0 .. 1024); -- does it need to be 1024?
Length : size_t;
Txt2 : chars_ptr;
type t is new char_array (0 .. 1024); -- does it need to be 1024?
- Return_Buffer : t := (others => nul);
+ Return_Buffer :
constant
t := (others => nul);
begin
To_C (Name, Txt, Length);
Txt2 := tgetstr (Txt, char_array (Return_Buffer));
begin
To_C (Name, Txt, Length);
Txt2 := tgetstr (Txt, char_array (Return_Buffer));
@@
-132,7
+134,7
@@
package body Terminal_Interface.Curses.Termcap is
Length : size_t;
Txt2 : chars_ptr;
type t is new char_array (0 .. 1024); -- does it need to be 1024?
Length : size_t;
Txt2 : chars_ptr;
type t is new char_array (0 .. 1024); -- does it need to be 1024?
- Phony_Txt : t := (others => nul);
+ Phony_Txt :
constant
t := (others => nul);
begin
To_C (Name, Txt, Length);
Txt2 := tgetstr (Txt, char_array (Phony_Txt));
begin
To_C (Name, Txt, Length);
Txt2 := tgetstr (Txt, char_array (Phony_Txt));
@@
-159,5
+161,4
@@
package body Terminal_Interface.Curses.Termcap is
(tgoto (Txt, C_Int (Col), C_Int (Row))));
end TGoto;
(tgoto (Txt, C_Int (Col), C_Int (Row))));
end TGoto;
-
end Terminal_Interface.Curses.Termcap;
end Terminal_Interface.Curses.Termcap;