⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 terminal_interface-curses.ads.m4

📁 ncurses 库 可能有用酒用 没用就算了 我觉得还可以用
💻 M4
📖 第 1 页 / 共 4 页
字号:
   --  AKA   --  ALIAS(`clear()')   pragma Inline (Clear);   --  ANCHOR(`wclrtobot()',`Clear_To_End_Of_Screen')   procedure Clear_To_End_Of_Screen     (Win : in Window := Standard_Window);   --  AKA   --  ALIAS(`clrtobot()')   pragma Inline (Clear_To_End_Of_Screen);   --  ANCHOR(`wclrtoeol()',`Clear_To_End_Of_Line')   procedure Clear_To_End_Of_Line     (Win : in Window := Standard_Window);   --  AKA   --  ALIAS(`clrtoeol()')   pragma Inline (Clear_To_End_Of_Line);   --  MANPAGE(`curs_bkgd.3x')   --  ANCHOR(`wbkgdset()',`Set_Background')   --  TODO: we could have Set_Background(Window; Character_Attribute_Set)   --  because in C it is common to see bkgdset(A_BOLD) or   --  bkgdset(COLOR_PAIR(n))   procedure Set_Background     (Win : in Window := Standard_Window;      Ch  : in Attributed_Character);   --  AKA   --  ALIAS(`bkgdset()')   pragma Inline (Set_Background);   --  ANCHOR(`wbkgd()',`Change_Background')   procedure Change_Background     (Win : in Window := Standard_Window;      Ch  : in Attributed_Character);   --  AKA   --  ALIAS(`bkgd()')   pragma Inline (Change_Background);   --  ANCHOR(`wbkgdget()',`Get_Background')   --  ? wbkgdget is not listed in curs_bkgd, getbkgd is thpough.   function Get_Background (Win : Window := Standard_Window)     return Attributed_Character;   --  AKA   --  ALIAS(`bkgdget()')   pragma Inline (Get_Background);   --  MANPAGE(`curs_touch.3x')   --  ANCHOR(`untouchwin()',`Untouch')   procedure Untouch (Win : in Window := Standard_Window);   --  AKA   pragma Inline (Untouch);   --  ANCHOR(`touchwin()',`Touch')   procedure Touch (Win : in Window := Standard_Window);   --  AKA   --  ANCHOR(`touchline()',`Touch')   procedure Touch (Win   : in Window := Standard_Window;                    Start : in Line_Position;                    Count : in Positive);   --  AKA   pragma Inline (Touch);   --  ANCHOR(`wtouchln()',`Change_Line_Status')   procedure Change_Lines_Status (Win   : in Window := Standard_Window;                                  Start : in Line_Position;                                  Count : in Positive;                                  State : in Boolean);   --  AKA   pragma Inline (Change_Lines_Status);   --  ANCHOR(`is_linetouched()',`Is_Touched')   function Is_Touched (Win  : Window := Standard_Window;                        Line : Line_Position) return Boolean;   --  AKA   --  ANCHOR(`is_wintouched()',`Is_Touched')   function Is_Touched (Win : Window := Standard_Window) return Boolean;   --  AKA   pragma Inline (Is_Touched);   --  MANPAGE(`curs_overlay.3x')   --  ANCHOR(`copywin()',`Copy')   procedure Copy     (Source_Window            : in Window;      Destination_Window       : in Window;      Source_Top_Row           : in Line_Position;      Source_Left_Column       : in Column_Position;      Destination_Top_Row      : in Line_Position;      Destination_Left_Column  : in Column_Position;      Destination_Bottom_Row   : in Line_Position;      Destination_Right_Column : in Column_Position;      Non_Destructive_Mode     : in Boolean := True);   --  AKA   pragma Inline (Copy);   --  ANCHOR(`overwrite()',`Overwrite')   procedure Overwrite (Source_Window      : in Window;                        Destination_Window : in Window);   --  AKA   pragma Inline (Overwrite);   --  ANCHOR(`overlay()',`Overlay')   procedure Overlay (Source_Window      : in Window;                      Destination_Window : in Window);   --  AKA   pragma Inline (Overlay);   --  MANPAGE(`curs_deleteln.3x')   --  ANCHOR(`winsdelln()',`Insert_Delete_Lines')   procedure Insert_Delete_Lines     (Win   : in Window  := Standard_Window;      Lines : in Integer := 1); --  default is to insert one line above   --  AKA   --  ALIAS(`insdelln()')   pragma Inline (Insert_Delete_Lines);   --  ANCHOR(`wdeleteln()',`Delete_Line')   procedure Delete_Line (Win : in Window := Standard_Window);   --  AKA   --  ALIAS(`deleteln()')   pragma Inline (Delete_Line);   --  ANCHOR(`winsertln()',`Insert_Line')   procedure Insert_Line (Win : in Window := Standard_Window);   --  AKA   --  ALIAS(`insertln()')   pragma Inline (Insert_Line);   --  MANPAGE(`curs_getyx.3x')   --  ANCHOR(`getmaxyx()',`Get_Size')   procedure Get_Size     (Win               : in Window := Standard_Window;      Number_Of_Lines   : out Line_Count;      Number_Of_Columns : out Column_Count);   --  AKA   pragma Inline (Get_Size);   --  ANCHOR(`getbegyx()',`Get_Window_Position')   procedure Get_Window_Position     (Win             : in Window := Standard_Window;      Top_Left_Line   : out Line_Position;      Top_Left_Column : out Column_Position);   --  AKA   pragma Inline (Get_Window_Position);   --  ANCHOR(`getyx()',`Get_Cursor_Position')   procedure Get_Cursor_Position     (Win    : in  Window := Standard_Window;      Line   : out Line_Position;      Column : out Column_Position);   --  AKA   pragma Inline (Get_Cursor_Position);   --  ANCHOR(`getparyx()',`Get_Origin_Relative_To_Parent')   procedure Get_Origin_Relative_To_Parent     (Win                : in  Window;      Top_Left_Line      : out Line_Position;      Top_Left_Column    : out Column_Position;      Is_Not_A_Subwindow : out Boolean);   --  AKA   --  Instead of placing -1 in the coordinates as return, we use a boolean   --  to return the info that the window has no parent.   pragma Inline (Get_Origin_Relative_To_Parent);   --  MANPAGE(`curs_pad.3x')   --  ANCHOR(`newpad()',`New_Pad')   function New_Pad (Lines   : Line_Count;                     Columns : Column_Count) return Window;   --  AKA   pragma Inline (New_Pad);   --  ANCHOR(`subpad()',`Sub_Pad')   function Sub_Pad     (Pad                   : Window;      Number_Of_Lines       : Line_Count;      Number_Of_Columns     : Column_Count;      First_Line_Position   : Line_Position;      First_Column_Position : Column_Position) return Window;   --  AKA   pragma Inline (Sub_Pad);   --  ANCHOR(`prefresh()',`Refresh')   procedure Refresh     (Pad                      : in Window;      Source_Top_Row           : in Line_Position;      Source_Left_Column       : in Column_Position;      Destination_Top_Row      : in Line_Position;      Destination_Left_Column  : in Column_Position;      Destination_Bottom_Row   : in Line_Position;      Destination_Right_Column : in Column_Position);   --  AKA   pragma Inline (Refresh);   --  ANCHOR(`pnoutrefresh()',`Refresh_Without_Update')   procedure Refresh_Without_Update     (Pad                      : in Window;      Source_Top_Row           : in Line_Position;      Source_Left_Column       : in Column_Position;      Destination_Top_Row      : in Line_Position;      Destination_Left_Column  : in Column_Position;      Destination_Bottom_Row   : in Line_Position;      Destination_Right_Column : in Column_Position);   --  AKA   pragma Inline (Refresh_Without_Update);   --  ANCHOR(`pechochar()',`Add_Character_To_Pad_And_Echo_It')   procedure Add_Character_To_Pad_And_Echo_It     (Pad : in Window;      Ch  : in Attributed_Character);   --  AKA   procedure Add_Character_To_Pad_And_Echo_It     (Pad : in Window;      Ch  : in Character);   pragma Inline (Add_Character_To_Pad_And_Echo_It);   --  MANPAGE(`curs_scroll.3x')   --  ANCHOR(`wscrl()',`Scroll')   procedure Scroll (Win    : in Window  := Standard_Window;                     Amount : in Integer := 1);   --  AKA   --  ALIAS(`scroll()')   --  ALIAS(`scrl()')   pragma Inline (Scroll);   --  MANPAGE(`curs_delch.3x')   --  ANCHOR(`wdelch()',`Delete_Character')   procedure Delete_Character (Win : in Window := Standard_Window);   --  AKA   --  ALIAS(`delch()')   --  ANCHOR(`mvwdelch()',`Delete_Character')   procedure Delete_Character     (Win    : in Window := Standard_Window;      Line   : in Line_Position;      Column : in Column_Position);   --  AKA   --  ALIAS(`mvdelch()')   pragma Inline (Delete_Character);   --  MANPAGE(`curs_inch.3x')   --  ANCHOR(`winch()',`Peek')   function Peek (Win : Window := Standard_Window)     return Attributed_Character;   --  ALIAS(`inch()')   --  AKA   --  ANCHOR(`mvwinch()',`Peek')   function Peek     (Win    : Window := Standard_Window;      Line   : Line_Position;      Column : Column_Position) return Attributed_Character;   --  AKA   --  ALIAS(`mvinch()')   --  More Peek's follow, pragma Inline appears later.   --  MANPAGE(`curs_insch.3x')   --  ANCHOR(`winsch()',`Insert')   procedure Insert (Win : in Window := Standard_Window;                     Ch  : in Attributed_Character);   --  AKA   --  ALIAS(`insch()')   --  ANCHOR(`mvwinsch()',`Insert')   procedure Insert (Win    : in Window := Standard_Window;                     Line   : in Line_Position;                     Column : in Column_Position;                     Ch     : in Attributed_Character);   --  AKA   --  ALIAS(`mvinsch()')   --  MANPAGE(`curs_insstr.3x')   --  ANCHOR(`winsnstr()',`Insert')   procedure Insert (Win : in Window := Standard_Window;                     Str : in String;                     Len : in Integer := -1);   --  AKA   --  ALIAS(`winsstr()')   --  ALIAS(`insnstr()')   --  ALIAS(`insstr()')   --  ANCHOR(`mvwinsnstr()',`Insert')   procedure Insert (Win    : in Window := Standard_Window;                     Line   : in Line_Position;                     Column : in Column_Position;                     Str    : in String;                     Len    : in Integer := -1);   --  AKA   --  ALIAS(`mvwinsstr()')   --  ALIAS(`mvinsnstr()')   --  ALIAS(`mvinsstr()')   pragma Inline (Insert);   --  MANPAGE(`curs_instr.3x')   --  ANCHOR(`winnstr()',`Peek')   procedure Peek (Win : in  Window := Standard_Window;                   Str : out String;                   Len : in  Integer := -1);   --  AKA   --  ALIAS(`winstr()')   --  ALIAS(`innstr()')   --  ALIAS(`instr()')   --  ANCHOR(`mvwinnstr()',`Peek')   procedure Peek (Win    : in  Window := Standard_Window;                   Line   : in  Line_Position;                   Column : in  Column_Position;                   Str    : out String;                   Len    : in  Integer := -1);   --  AKA   --  ALIAS(`mvwinstr()')   --  ALIAS(`mvinnstr()')   --  ALIAS(`mvinstr()')   --  MANPAGE(`curs_inchstr.3x')   --  ANCHOR(`winchnstr()',`Peek')   procedure Peek (Win : in  Window := Standard_Window;                   Str : out Attributed_String;                   Len : in  Integer := -1);   --  AKA   --  ALIAS(`winchstr()')   --  ALIAS(`inchnstr()')   --  ALIAS(`inchstr()')   --  ANCHOR(`mvwinchnstr()',`Peek')   procedure Peek (Win    : in  Window := Standard_Window;                   Line   : in  Line_Position;                   Column : in  Column_Position;                   Str    : out Attributed_String;                   Len    : in  Integer := -1);   --  AKA   --  ALIAS(`mvwinchstr()')   --  ALIAS(`mvinchnstr()')   --  ALIAS(`mvinchstr()')   --  We don't inline the Peek procedures   --  MANPAGE(`curs_getstr.3x')   --  ANCHOR(`wgetnstr()',`Get')   procedure Get (Win : in  Window := Standard_Window;                  Str : out String;                  Len : in  Integer := -1);   --  AKA   --  ALIAS(`wgetstr()')   --  ALIAS(`getnstr()')   --  ALIAS(`getstr()')   --  actually getstr is not supported because that results in buffer   --  overflows.   --  ANCHOR(`mvwgetnstr()',`Get')   procedure Get (Win    : in  Window := Standard_Window;                  Line   : in  Line_Position;                  Column : in  Column_Position;                  Str    : out String;                  Len    : in  Integer := -1);   --  AKA   --  ALIAS(`mvwgetstr()')   --  ALIAS(`mvgetnstr()')   --  ALIAS(`mvgetstr()')   --  Get is not inlined   --  MANPAGE(`curs_slk.3x')   --  Not Implemented: slk_attr_on, slk_attr_off, slk_attr_set   type Soft_Label_Key_Format is (Three_Two_Three,                                  Four_Four,                                  PC_Style,              --  ncurses specific                                  PC_Style_With_Index);  --  "   type Label_Number is new Positive range 1 .. 12;   type Label_Justification is (Left, Centered, Right);   --  ANCHOR(`slk_init()',`Init_Soft_Label_Keys')   procedure Init_Soft_Label_Keys     (Format : in Soft_Label_Key_Format := Three_Two_Three);   --  AKA

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -