+
Point of view
All features
class NCURSES
Summary
Class invariant
Overview
creation features
features
Events related routines
To switch the is_enabled flag:
  • ncurses: NCURSES
    Access to the ncurses singleton.
make
effective procedure
event_catcher: JOB
once function
proceed_events: BOOLEAN
effective function
key_pressed_signal: SIGNAL_1[INTEGER_32]
writable attribute
resized_signal: SIGNAL_0
writable attribute
idle_signal: SIGNAL_0
writable attribute
when_key_pressed (p: PROCEDURE[TUPLE 1[INTEGER_32]])
effective procedure
when_resized (p: PROCEDURE[TUPLE])
effective procedure
when_idle (p: PROCEDURE[TUPLE])
effective procedure
loop_stack: LOOP_STACK
writable attribute
is_enabled: BOOLEAN
writable attribute
Is ncurses ready to be used?
enable
effective procedure
To switch from normal terminal mode to ncurses mode.
start
effective procedure
disable
effective procedure
This procedure must be called when returning to normal terminal mode.
get_root_window: NCURSES_WINDOW
once function
Returns the root NCURSES_WINDOW.
register_recovery_agent (register: PROCEDURE[TUPLE])
effective procedure
unregister_recovery_agent (unregister: PROCEDURE[TUPLE])
effective procedure
get_color_pair (foreground: INTEGER_32, background: INTEGER_32): INTEGER_32
effective function
Defines new color-pair.
buffering_policy: BOOLEAN
writable attribute
Is line buffering enabled?
set_buffering_policy (enable_buffering: BOOLEAN)
effective procedure
Enables/disables line buffering_policy.
echoing_policy: BOOLEAN
writable attribute
Is there some echo on the screen when fetching keystrokes.
set_echoing_policy (enable_echoing: BOOLEAN)
effective procedure
Enables/disables echoing_policy.
automatic_kill_policy: BOOLEAN
writable attribute
?????
set_automatic_kill_policy (enable_kill_policy: BOOLEAN)
effective procedure
Enables/disables automatic_kill_policy.
push_back_keypress (ch: INTEGER_32)
effective procedure
Pushes back the next (fake) keypress.
refresh_pending
effective procedure
Refreshes all windows which have called refresh_later.
a_attributes: INTEGER_32
a_chartext: INTEGER_32
a_color: INTEGER_32
a_normal: INTEGER_32
a_standout: INTEGER_32
a_underline: INTEGER_32
a_reverse: INTEGER_32
a_blink: INTEGER_32
a_dim: INTEGER_32
a_bold: INTEGER_32
a_altcharset: INTEGER_32
a_invis: INTEGER_32
a_protect: INTEGER_32
a_horizontal: INTEGER_32
a_left: INTEGER_32
a_low: INTEGER_32
a_right: INTEGER_32
a_top: INTEGER_32
a_vertical: INTEGER_32
cursor_visibility: INTEGER_32
writable attribute
See available cursor mode constants in NUMBER_TOOLS.
set_cursor_visibility (visibility: INTEGER_32)
effective procedure
See available cursor mode constants in NUMBER_TOOLS.
check_for_error (noerror: BOOLEAN)
effective procedure
Used to check correct ncurses return codes.
color_pair_counter: INTEGER_32
writable attribute
recovery_agents: FAST_ARRAY[PROCEDURE[TUPLE]]
once function
We can safely use once here because NCURSES_WRAPPER is a singleton
disable_and_exit
effective procedure
dispose
effective procedure
Action to be executed just before garbage collection reclaims an object.
initscr
stdscr: POINTER
endwin
start_color
init_pair (pair: INTEGER_32, f: INTEGER_32, b: INTEGER_32): INTEGER_32
color_pair (index: INTEGER_32): INTEGER_32
Returns defined color-pair.
cbreak: INTEGER_32
nocbreak: INTEGER_32
noecho: INTEGER_32
ungetch (ch: INTEGER_32): INTEGER_32
doupdate: INTEGER_32
refresh: INTEGER_32
curs_set (v: INTEGER_32): INTEGER_32
terminal_width: INTEGER_32
terminal_height: INTEGER_32
ncurses: NCURSES
once function
Access to the ncurses singleton.
invisible_cursor_mode: INTEGER_32
constant attribute
In this mode the cursor is invisible.
default_visible_cursor_mode: INTEGER_32
constant attribute
The default visible cursor mode.
special_visible_cursor_mode: INTEGER_32
constant attribute
In this mode cursor may blink in a more special or in a more visible way.
valid_cursor_visibility (code: INTEGER_32): BOOLEAN
effective function
Chack that code is one of invisible_cursor_mode, default_visible_cursor_mode or special_visible_cursor_mode.
key_escape: INTEGER_32
constant attribute
key_return: INTEGER_32
constant attribute
Below are integer equivalent for special "function" keys.
key_min: INTEGER_32
key_break: INTEGER_32
key_sreset: INTEGER_32
key_reset: INTEGER_32
key_down: INTEGER_32
The Down arrow of the keyboard.
key_up: INTEGER_32
The Up arrow of the keyboard.
key_left: INTEGER_32
The Left arrow of the keyboard.
key_right: INTEGER_32
The Right arrow of the keyboard.
key_home: INTEGER_32
key_backspace: INTEGER_32
key_dl: INTEGER_32
key_il: INTEGER_32
key_dc: INTEGER_32
key_ic: INTEGER_32
key_eic: INTEGER_32
key_clear: INTEGER_32
key_eos: INTEGER_32
key_eol: INTEGER_32
key_sf: INTEGER_32
key_sr: INTEGER_32
key_next_page: INTEGER_32
Also labeled "Page Down" on some keyboards.
key_previous_page: INTEGER_32
Also labeled "Page Up" on some keyboards.
key_stab: INTEGER_32
key_ctab: INTEGER_32
key_catab: INTEGER_32
key_enter: INTEGER_32
key_print: INTEGER_32
key_ll: INTEGER_32
key_a1: INTEGER_32
key_a3: INTEGER_32
key_b2: INTEGER_32
key_c1: INTEGER_32
key_c3: INTEGER_32
key_btab: INTEGER_32
key_beg: INTEGER_32
key_cancel: INTEGER_32
key_close: INTEGER_32
key_command: INTEGER_32
key_copy: INTEGER_32
key_create: INTEGER_32
key_end: INTEGER_32
key_exit: INTEGER_32
key_find: INTEGER_32
key_help: INTEGER_32
key_mark: INTEGER_32
key_message: INTEGER_32
key_move: INTEGER_32
key_next: INTEGER_32
key_open: INTEGER_32
key_options: INTEGER_32
key_previous: INTEGER_32
key_redo: INTEGER_32
key_reference: INTEGER_32
key_refresh: INTEGER_32
key_replace: INTEGER_32
key_restart: INTEGER_32
key_resume: INTEGER_32
key_save: INTEGER_32
key_sbeg: INTEGER_32
key_scancel: INTEGER_32
key_scommand: INTEGER_32
key_scopy: INTEGER_32
key_screate: INTEGER_32
key_sdc: INTEGER_32
key_sdl: INTEGER_32
key_select: INTEGER_32
key_send: INTEGER_32
key_seol: INTEGER_32
key_sexit: INTEGER_32
key_sfind: INTEGER_32
key_shelp: INTEGER_32
key_shome: INTEGER_32
key_sic: INTEGER_32
key_sleft: INTEGER_32
key_smessage: INTEGER_32
key_smove: INTEGER_32
key_snext: INTEGER_32
key_soptions: INTEGER_32
key_sprevious: INTEGER_32
key_sprint: INTEGER_32
key_sredo: INTEGER_32
key_sreplace: INTEGER_32
key_sright: INTEGER_32
key_srsume: INTEGER_32
key_ssave: INTEGER_32
key_ssuspend: INTEGER_32
key_sundo: INTEGER_32
key_suspend: INTEGER_32
key_undo: INTEGER_32
key_mouse: INTEGER_32
key_resize: INTEGER_32
key_event: INTEGER_32
key_max: INTEGER_32
key_f0: INTEGER_32
key_f1: INTEGER_32
key_f2: INTEGER_32
key_f3: INTEGER_32
key_f4: INTEGER_32
key_f5: INTEGER_32
key_f6: INTEGER_32
key_f7: INTEGER_32
key_f8: INTEGER_32
key_f9: INTEGER_32
key_f10: INTEGER_32
key_f11: INTEGER_32
key_f12: INTEGER_32
key_function (num: INTEGER_32): INTEGER_32
is_real_singleton: BOOLEAN
effective function
singleton_memory_pool: HASHED_DICTIONARY[POINTER, STRING]
once function
This pool is unique in the whole system.
current_is_not_an_expanded_type: BOOLEAN
effective function
Check that the dynamic type of the SINGLETON is not an expanded type.