├── ANNOUNCE
├── AUTHORS
├── Ada95
├── Makefile.in
├── README
├── TODO
├── aclocal.m4
├── configure
├── configure.in
├── doc
│ └── Makefile.in
├── gen
│ ├── Makefile.in
│ ├── adacurses-config.in
│ ├── gen.c
│ ├── html.m4
│ ├── normal.m4
│ ├── table.m4
│ ├── terminal_interface-curses-aux.ads.m4
│ ├── terminal_interface-curses-forms-field_types.ads.m4
│ ├── terminal_interface-curses-forms-field_user_data.ads.m4
│ ├── terminal_interface-curses-forms-form_user_data.ads.m4
│ ├── terminal_interface-curses-forms.ads.m4
│ ├── terminal_interface-curses-menus-item_user_data.ads.m4
│ ├── terminal_interface-curses-menus-menu_user_data.ads.m4
│ ├── terminal_interface-curses-menus.ads.m4
│ ├── terminal_interface-curses-mouse.ads.m4
│ ├── terminal_interface-curses-panels-user_data.ads.m4
│ ├── terminal_interface-curses-panels.ads.m4
│ ├── terminal_interface-curses-trace.ads.m4
│ ├── terminal_interface-curses.adb.m4
│ └── terminal_interface-curses.ads.m4
├── include
│ ├── MKncurses_def.sh
│ ├── Makefile.in
│ ├── ncurses_cfg.hin
│ └── ncurses_defs
├── make-tar.sh
├── mk-1st.awk
├── mk-pkg.awk
├── package
│ ├── AdaCurses-doc.spec
│ ├── AdaCurses.spec
│ └── debian
│ │ ├── compat
│ │ ├── control
│ │ ├── copyright
│ │ ├── docs
│ │ ├── rules
│ │ ├── source
│ │ └── format
│ │ └── watch
├── samples
│ ├── Makefile.in
│ ├── README
│ ├── explain.txt
│ ├── ncurses.adb
│ ├── ncurses2-acs_and_scroll.adb
│ ├── ncurses2-acs_and_scroll.ads
│ ├── ncurses2-acs_display.adb
│ ├── ncurses2-acs_display.ads
│ ├── ncurses2-attr_test.adb
│ ├── ncurses2-attr_test.ads
│ ├── ncurses2-color_edit.adb
│ ├── ncurses2-color_edit.ads
│ ├── ncurses2-color_test.adb
│ ├── ncurses2-color_test.ads
│ ├── ncurses2-demo_forms.adb
│ ├── ncurses2-demo_forms.ads
│ ├── ncurses2-demo_pad.adb
│ ├── ncurses2-demo_pad.ads
│ ├── ncurses2-demo_panels.adb
│ ├── ncurses2-demo_panels.ads
│ ├── ncurses2-flushinp_test.adb
│ ├── ncurses2-flushinp_test.ads
│ ├── ncurses2-genericputs.adb
│ ├── ncurses2-genericputs.ads
│ ├── ncurses2-getch.ads
│ ├── ncurses2-getch_test.adb
│ ├── ncurses2-getch_test.ads
│ ├── ncurses2-getopt.adb
│ ├── ncurses2-getopt.ads
│ ├── ncurses2-m.adb
│ ├── ncurses2-m.ads
│ ├── ncurses2-menu_test.adb
│ ├── ncurses2-menu_test.ads
│ ├── ncurses2-overlap_test.adb
│ ├── ncurses2-overlap_test.ads
│ ├── ncurses2-slk_test.adb
│ ├── ncurses2-slk_test.ads
│ ├── ncurses2-test_sgr_attributes.adb
│ ├── ncurses2-test_sgr_attributes.ads
│ ├── ncurses2-trace_set.adb
│ ├── ncurses2-trace_set.ads
│ ├── ncurses2-util.adb
│ ├── ncurses2-util.ads
│ ├── ncurses2.ads
│ ├── rain.adb
│ ├── rain.ads
│ ├── sample-curses_demo-attributes.adb
│ ├── sample-curses_demo-attributes.ads
│ ├── sample-curses_demo-mouse.adb
│ ├── sample-curses_demo-mouse.ads
│ ├── sample-curses_demo.adb
│ ├── sample-curses_demo.ads
│ ├── sample-explanation.adb_p
│ ├── sample-explanation.ads
│ ├── sample-form_demo-aux.adb
│ ├── sample-form_demo-aux.ads
│ ├── sample-form_demo-handler.adb
│ ├── sample-form_demo-handler.ads
│ ├── sample-form_demo.adb
│ ├── sample-form_demo.ads
│ ├── sample-function_key_setting.adb
│ ├── sample-function_key_setting.ads
│ ├── sample-header_handler.adb
│ ├── sample-header_handler.ads
│ ├── sample-helpers.adb
│ ├── sample-helpers.ads
│ ├── sample-keyboard_handler.adb
│ ├── sample-keyboard_handler.ads
│ ├── sample-manifest.ads
│ ├── sample-menu_demo-aux.adb
│ ├── sample-menu_demo-aux.ads
│ ├── sample-menu_demo-handler.adb
│ ├── sample-menu_demo-handler.ads
│ ├── sample-menu_demo.adb
│ ├── sample-menu_demo.ads
│ ├── sample-my_field_type.adb
│ ├── sample-my_field_type.ads
│ ├── sample-text_io_demo.adb
│ ├── sample-text_io_demo.ads
│ ├── sample.adb
│ ├── sample.ads
│ ├── split-path.awk
│ ├── status.adb
│ ├── status.ads
│ ├── tour.adb
│ └── tour.ads
└── src
│ ├── Makefile.in
│ ├── c_threaded_variables.c
│ ├── c_threaded_variables.h
│ ├── c_varargs_to_ada.c
│ ├── c_varargs_to_ada.h
│ ├── library-cfg.sh
│ ├── library.gpr.in
│ ├── modules
│ ├── ncurses_compat.c
│ ├── terminal_interface-curses-aux.adb
│ ├── terminal_interface-curses-forms-field_types-alpha.adb
│ ├── terminal_interface-curses-forms-field_types-alpha.ads
│ ├── terminal_interface-curses-forms-field_types-alphanumeric.adb
│ ├── terminal_interface-curses-forms-field_types-alphanumeric.ads
│ ├── terminal_interface-curses-forms-field_types-enumeration-ada.adb
│ ├── terminal_interface-curses-forms-field_types-enumeration-ada.ads
│ ├── terminal_interface-curses-forms-field_types-enumeration.adb
│ ├── terminal_interface-curses-forms-field_types-enumeration.ads
│ ├── terminal_interface-curses-forms-field_types-intfield.adb
│ ├── terminal_interface-curses-forms-field_types-intfield.ads
│ ├── terminal_interface-curses-forms-field_types-ipv4_address.adb
│ ├── terminal_interface-curses-forms-field_types-ipv4_address.ads
│ ├── terminal_interface-curses-forms-field_types-numeric.adb
│ ├── terminal_interface-curses-forms-field_types-numeric.ads
│ ├── terminal_interface-curses-forms-field_types-regexp.adb
│ ├── terminal_interface-curses-forms-field_types-regexp.ads
│ ├── terminal_interface-curses-forms-field_types-user-choice.adb
│ ├── terminal_interface-curses-forms-field_types-user-choice.ads
│ ├── terminal_interface-curses-forms-field_types-user.adb
│ ├── terminal_interface-curses-forms-field_types-user.ads
│ ├── terminal_interface-curses-forms-field_types.adb
│ ├── terminal_interface-curses-forms-field_user_data.adb
│ ├── terminal_interface-curses-forms-form_user_data.adb
│ ├── terminal_interface-curses-forms.adb
│ ├── terminal_interface-curses-menus-item_user_data.adb
│ ├── terminal_interface-curses-menus-menu_user_data.adb
│ ├── terminal_interface-curses-menus.adb
│ ├── terminal_interface-curses-mouse.adb
│ ├── terminal_interface-curses-panels-user_data.adb
│ ├── terminal_interface-curses-panels.adb
│ ├── terminal_interface-curses-putwin.adb
│ ├── terminal_interface-curses-putwin.ads
│ ├── terminal_interface-curses-termcap.adb
│ ├── terminal_interface-curses-termcap.ads
│ ├── terminal_interface-curses-terminfo.adb
│ ├── terminal_interface-curses-terminfo.ads
│ ├── terminal_interface-curses-text_io-aux.adb
│ ├── terminal_interface-curses-text_io-aux.ads
│ ├── terminal_interface-curses-text_io-complex_io.adb
│ ├── terminal_interface-curses-text_io-complex_io.ads
│ ├── terminal_interface-curses-text_io-decimal_io.adb
│ ├── terminal_interface-curses-text_io-decimal_io.ads
│ ├── terminal_interface-curses-text_io-enumeration_io.adb
│ ├── terminal_interface-curses-text_io-enumeration_io.ads
│ ├── terminal_interface-curses-text_io-fixed_io.adb
│ ├── terminal_interface-curses-text_io-fixed_io.ads
│ ├── terminal_interface-curses-text_io-float_io.adb
│ ├── terminal_interface-curses-text_io-float_io.ads
│ ├── terminal_interface-curses-text_io-integer_io.adb
│ ├── terminal_interface-curses-text_io-integer_io.ads
│ ├── terminal_interface-curses-text_io-modular_io.adb
│ ├── terminal_interface-curses-text_io-modular_io.ads
│ ├── terminal_interface-curses-text_io.adb
│ ├── terminal_interface-curses-text_io.ads
│ ├── terminal_interface-curses-trace.adb_p
│ └── terminal_interface.ads
├── COPYING
├── INSTALL
├── MANIFEST
├── Makefile.in
├── Makefile.os2
├── NEWS
├── README
├── README.MinGW
├── README.emx
├── TO-DO
├── VERSION
├── aclocal.m4
├── announce.html.in
├── c++
├── Makefile.in
├── NEWS
├── PROBLEMS
├── README-first
├── cursesapp.cc
├── cursesapp.h
├── cursesf.cc
├── cursesf.h
├── cursesm.cc
├── cursesm.h
├── cursesmain.cc
├── cursesp.cc
├── cursesp.h
├── cursespad.cc
├── cursesw.cc
├── cursesw.h
├── cursslk.cc
├── cursslk.h
├── demo.cc
├── edit_cfg.sh
├── etip.h.in
├── headers
├── internal.h
└── modules
├── config.guess
├── config.sub
├── configure
├── configure.in
├── dist.mk
├── doc
├── hackguide.doc
├── html
│ ├── Ada95.html
│ ├── NCURSES-Programming-HOWTO.html
│ ├── ada
│ │ ├── files.htm
│ │ ├── files
│ │ │ └── T.htm
│ │ ├── funcs.htm
│ │ ├── funcs
│ │ │ ├── A.htm
│ │ │ ├── B.htm
│ │ │ ├── C.htm
│ │ │ ├── D.htm
│ │ │ ├── E.htm
│ │ │ ├── F.htm
│ │ │ ├── G.htm
│ │ │ ├── H.htm
│ │ │ ├── I.htm
│ │ │ ├── K.htm
│ │ │ ├── L.htm
│ │ │ ├── M.htm
│ │ │ ├── N.htm
│ │ │ ├── O.htm
│ │ │ ├── P.htm
│ │ │ ├── Q.htm
│ │ │ ├── R.htm
│ │ │ ├── S.htm
│ │ │ ├── T.htm
│ │ │ ├── U.htm
│ │ │ ├── V.htm
│ │ │ └── W.htm
│ │ ├── index.htm
│ │ ├── main.htm
│ │ ├── table.html
│ │ ├── terminal_interface-curses-aux__adb.htm
│ │ ├── terminal_interface-curses-aux__ads.htm
│ │ ├── terminal_interface-curses-forms-field_types-alpha__adb.htm
│ │ ├── terminal_interface-curses-forms-field_types-alpha__ads.htm
│ │ ├── terminal_interface-curses-forms-field_types-alphanumeric__adb.htm
│ │ ├── terminal_interface-curses-forms-field_types-alphanumeric__ads.htm
│ │ ├── terminal_interface-curses-forms-field_types-enumeration-ada__adb.htm
│ │ ├── terminal_interface-curses-forms-field_types-enumeration-ada__ads.htm
│ │ ├── terminal_interface-curses-forms-field_types-enumeration__adb.htm
│ │ ├── terminal_interface-curses-forms-field_types-enumeration__ads.htm
│ │ ├── terminal_interface-curses-forms-field_types-intfield__adb.htm
│ │ ├── terminal_interface-curses-forms-field_types-intfield__ads.htm
│ │ ├── terminal_interface-curses-forms-field_types-ipv4_address__adb.htm
│ │ ├── terminal_interface-curses-forms-field_types-ipv4_address__ads.htm
│ │ ├── terminal_interface-curses-forms-field_types-numeric__adb.htm
│ │ ├── terminal_interface-curses-forms-field_types-numeric__ads.htm
│ │ ├── terminal_interface-curses-forms-field_types-regexp__adb.htm
│ │ ├── terminal_interface-curses-forms-field_types-regexp__ads.htm
│ │ ├── terminal_interface-curses-forms-field_types-user-choice__adb.htm
│ │ ├── terminal_interface-curses-forms-field_types-user-choice__ads.htm
│ │ ├── terminal_interface-curses-forms-field_types-user__adb.htm
│ │ ├── terminal_interface-curses-forms-field_types-user__ads.htm
│ │ ├── terminal_interface-curses-forms-field_types__adb.htm
│ │ ├── terminal_interface-curses-forms-field_types__ads.htm
│ │ ├── terminal_interface-curses-forms-field_user_data__adb.htm
│ │ ├── terminal_interface-curses-forms-field_user_data__ads.htm
│ │ ├── terminal_interface-curses-forms-form_user_data__adb.htm
│ │ ├── terminal_interface-curses-forms-form_user_data__ads.htm
│ │ ├── terminal_interface-curses-forms__adb.htm
│ │ ├── terminal_interface-curses-forms__ads.htm
│ │ ├── terminal_interface-curses-menus-item_user_data__adb.htm
│ │ ├── terminal_interface-curses-menus-item_user_data__ads.htm
│ │ ├── terminal_interface-curses-menus-menu_user_data__adb.htm
│ │ ├── terminal_interface-curses-menus-menu_user_data__ads.htm
│ │ ├── terminal_interface-curses-menus__adb.htm
│ │ ├── terminal_interface-curses-menus__ads.htm
│ │ ├── terminal_interface-curses-mouse__adb.htm
│ │ ├── terminal_interface-curses-mouse__ads.htm
│ │ ├── terminal_interface-curses-panels-user_data__adb.htm
│ │ ├── terminal_interface-curses-panels-user_data__ads.htm
│ │ ├── terminal_interface-curses-panels__adb.htm
│ │ ├── terminal_interface-curses-panels__ads.htm
│ │ ├── terminal_interface-curses-putwin__adb.htm
│ │ ├── terminal_interface-curses-putwin__ads.htm
│ │ ├── terminal_interface-curses-termcap__adb.htm
│ │ ├── terminal_interface-curses-termcap__ads.htm
│ │ ├── terminal_interface-curses-terminfo__adb.htm
│ │ ├── terminal_interface-curses-terminfo__ads.htm
│ │ ├── terminal_interface-curses-text_io-aux__adb.htm
│ │ ├── terminal_interface-curses-text_io-aux__ads.htm
│ │ ├── terminal_interface-curses-text_io-complex_io__adb.htm
│ │ ├── terminal_interface-curses-text_io-complex_io__ads.htm
│ │ ├── terminal_interface-curses-text_io-decimal_io__adb.htm
│ │ ├── terminal_interface-curses-text_io-decimal_io__ads.htm
│ │ ├── terminal_interface-curses-text_io-enumeration_io__adb.htm
│ │ ├── terminal_interface-curses-text_io-enumeration_io__ads.htm
│ │ ├── terminal_interface-curses-text_io-fixed_io__adb.htm
│ │ ├── terminal_interface-curses-text_io-fixed_io__ads.htm
│ │ ├── terminal_interface-curses-text_io-float_io__adb.htm
│ │ ├── terminal_interface-curses-text_io-float_io__ads.htm
│ │ ├── terminal_interface-curses-text_io-integer_io__adb.htm
│ │ ├── terminal_interface-curses-text_io-integer_io__ads.htm
│ │ ├── terminal_interface-curses-text_io-modular_io__adb.htm
│ │ ├── terminal_interface-curses-text_io-modular_io__ads.htm
│ │ ├── terminal_interface-curses-text_io__adb.htm
│ │ ├── terminal_interface-curses-text_io__ads.htm
│ │ ├── terminal_interface-curses-trace__adb.htm
│ │ ├── terminal_interface-curses-trace__ads.htm
│ │ ├── terminal_interface-curses__adb.htm
│ │ ├── terminal_interface-curses__ads.htm
│ │ ├── terminal_interface-curses_constants__ads.htm
│ │ └── terminal_interface__ads.htm
│ ├── announce.html
│ ├── hackguide.html
│ ├── index.html
│ ├── man
│ │ ├── adacurses6-config.1.html
│ │ ├── captoinfo.1m.html
│ │ ├── clear.1.html
│ │ ├── curs_add_wch.3x.html
│ │ ├── curs_add_wchstr.3x.html
│ │ ├── curs_addch.3x.html
│ │ ├── curs_addchstr.3x.html
│ │ ├── curs_addstr.3x.html
│ │ ├── curs_addwstr.3x.html
│ │ ├── curs_attr.3x.html
│ │ ├── curs_beep.3x.html
│ │ ├── curs_bkgd.3x.html
│ │ ├── curs_bkgrnd.3x.html
│ │ ├── curs_border.3x.html
│ │ ├── curs_border_set.3x.html
│ │ ├── curs_clear.3x.html
│ │ ├── curs_color.3x.html
│ │ ├── curs_delch.3x.html
│ │ ├── curs_deleteln.3x.html
│ │ ├── curs_extend.3x.html
│ │ ├── curs_get_wch.3x.html
│ │ ├── curs_get_wstr.3x.html
│ │ ├── curs_getcchar.3x.html
│ │ ├── curs_getch.3x.html
│ │ ├── curs_getstr.3x.html
│ │ ├── curs_getyx.3x.html
│ │ ├── curs_in_wch.3x.html
│ │ ├── curs_in_wchstr.3x.html
│ │ ├── curs_inch.3x.html
│ │ ├── curs_inchstr.3x.html
│ │ ├── curs_initscr.3x.html
│ │ ├── curs_inopts.3x.html
│ │ ├── curs_ins_wch.3x.html
│ │ ├── curs_ins_wstr.3x.html
│ │ ├── curs_insch.3x.html
│ │ ├── curs_insstr.3x.html
│ │ ├── curs_instr.3x.html
│ │ ├── curs_inwstr.3x.html
│ │ ├── curs_kernel.3x.html
│ │ ├── curs_legacy.3x.html
│ │ ├── curs_memleaks.3x.html
│ │ ├── curs_mouse.3x.html
│ │ ├── curs_move.3x.html
│ │ ├── curs_opaque.3x.html
│ │ ├── curs_outopts.3x.html
│ │ ├── curs_overlay.3x.html
│ │ ├── curs_pad.3x.html
│ │ ├── curs_print.3x.html
│ │ ├── curs_printw.3x.html
│ │ ├── curs_refresh.3x.html
│ │ ├── curs_scanw.3x.html
│ │ ├── curs_scr_dump.3x.html
│ │ ├── curs_scroll.3x.html
│ │ ├── curs_slk.3x.html
│ │ ├── curs_sp_funcs.3x.html
│ │ ├── curs_termattrs.3x.html
│ │ ├── curs_termcap.3x.html
│ │ ├── curs_terminfo.3x.html
│ │ ├── curs_threads.3x.html
│ │ ├── curs_touch.3x.html
│ │ ├── curs_trace.3x.html
│ │ ├── curs_util.3x.html
│ │ ├── curs_variables.3x.html
│ │ ├── curs_window.3x.html
│ │ ├── default_colors.3x.html
│ │ ├── define_key.3x.html
│ │ ├── form.3x.html
│ │ ├── form_cursor.3x.html
│ │ ├── form_data.3x.html
│ │ ├── form_driver.3x.html
│ │ ├── form_field.3x.html
│ │ ├── form_field_attributes.3x.html
│ │ ├── form_field_buffer.3x.html
│ │ ├── form_field_info.3x.html
│ │ ├── form_field_just.3x.html
│ │ ├── form_field_new.3x.html
│ │ ├── form_field_opts.3x.html
│ │ ├── form_field_userptr.3x.html
│ │ ├── form_field_validation.3x.html
│ │ ├── form_fieldtype.3x.html
│ │ ├── form_hook.3x.html
│ │ ├── form_new.3x.html
│ │ ├── form_new_page.3x.html
│ │ ├── form_opts.3x.html
│ │ ├── form_page.3x.html
│ │ ├── form_post.3x.html
│ │ ├── form_requestname.3x.html
│ │ ├── form_userptr.3x.html
│ │ ├── form_variables.3x.html
│ │ ├── form_win.3x.html
│ │ ├── index.html
│ │ ├── infocmp.1m.html
│ │ ├── infotocap.1m.html
│ │ ├── key_defined.3x.html
│ │ ├── keybound.3x.html
│ │ ├── keyok.3x.html
│ │ ├── legacy_coding.3x.html
│ │ ├── menu.3x.html
│ │ ├── menu_attributes.3x.html
│ │ ├── menu_cursor.3x.html
│ │ ├── menu_driver.3x.html
│ │ ├── menu_format.3x.html
│ │ ├── menu_hook.3x.html
│ │ ├── menu_items.3x.html
│ │ ├── menu_mark.3x.html
│ │ ├── menu_new.3x.html
│ │ ├── menu_opts.3x.html
│ │ ├── menu_pattern.3x.html
│ │ ├── menu_post.3x.html
│ │ ├── menu_requestname.3x.html
│ │ ├── menu_spacing.3x.html
│ │ ├── menu_userptr.3x.html
│ │ ├── menu_win.3x.html
│ │ ├── mitem_current.3x.html
│ │ ├── mitem_name.3x.html
│ │ ├── mitem_new.3x.html
│ │ ├── mitem_opts.3x.html
│ │ ├── mitem_userptr.3x.html
│ │ ├── mitem_value.3x.html
│ │ ├── mitem_visible.3x.html
│ │ ├── ncurses.3x.html
│ │ ├── ncurses6-config.1.html
│ │ ├── new_pair.3x.html
│ │ ├── panel.3x.html
│ │ ├── resizeterm.3x.html
│ │ ├── scr_dump.5.html
│ │ ├── tabs.1.html
│ │ ├── term.5.html
│ │ ├── term.7.html
│ │ ├── term_variables.3x.html
│ │ ├── terminfo.5.html
│ │ ├── tic.1m.html
│ │ ├── toe.1m.html
│ │ ├── tput.1.html
│ │ ├── tset.1.html
│ │ ├── user_caps.5.html
│ │ └── wresize.3x.html
│ └── ncurses-intro.html
└── ncurses-intro.doc
├── form
├── Makefile.in
├── READ.ME
├── f_trace.c
├── fld_arg.c
├── fld_attr.c
├── fld_current.c
├── fld_def.c
├── fld_dup.c
├── fld_ftchoice.c
├── fld_ftlink.c
├── fld_info.c
├── fld_just.c
├── fld_link.c
├── fld_max.c
├── fld_move.c
├── fld_newftyp.c
├── fld_opts.c
├── fld_pad.c
├── fld_page.c
├── fld_stat.c
├── fld_type.c
├── fld_user.c
├── form.h
├── form.priv.h
├── frm_cursor.c
├── frm_data.c
├── frm_def.c
├── frm_driver.c
├── frm_hook.c
├── frm_opts.c
├── frm_page.c
├── frm_post.c
├── frm_req_name.c
├── frm_scale.c
├── frm_sub.c
├── frm_user.c
├── frm_win.c
├── fty_alnum.c
├── fty_alpha.c
├── fty_enum.c
├── fty_generic.c
├── fty_int.c
├── fty_ipv4.c
├── fty_num.c
├── fty_regex.c
├── headers
├── llib-lform
├── llib-lformt
├── llib-lformtw
├── llib-lformw
└── modules
├── include
├── Caps
├── Caps-ncurses
├── Caps.aix4
├── Caps.hpux11
├── Caps.keys
├── Caps.osf1r5
├── Caps.uwin
├── MKhashsize.sh
├── MKkey_defs.sh
├── MKncurses_def.sh
├── MKparametrized.sh
├── MKterm.h.awk.in
├── Makefile.in
├── capdefaults.c
├── curses.events
├── curses.h.in
├── curses.tail
├── curses.wide
├── edit_cfg.sh
├── hashed_db.h
├── headers
├── nc_access.h
├── nc_alloc.h
├── nc_mingw.h
├── nc_panel.h
├── nc_string.h
├── nc_termios.h
├── nc_tparm.h
├── nc_win32.h
├── ncurses_cfg.hin
├── ncurses_defs
├── ncurses_dll.h.in
├── ncurses_mingw.h
├── term_entry.h
├── termcap.h.in
├── tic.h
├── unctrl.h.in
└── win32_curses.h
├── install-sh
├── m
└── 0001-ncurses-6.4.patch
├── man
├── MKada_config.in
├── MKncu_config.in
├── MKterminfo.sh
├── Makefile.in
├── captoinfo.1m
├── clear.1
├── curs_add_wch.3x
├── curs_add_wchstr.3x
├── curs_addch.3x
├── curs_addchstr.3x
├── curs_addstr.3x
├── curs_addwstr.3x
├── curs_attr.3x
├── curs_beep.3x
├── curs_bkgd.3x
├── curs_bkgrnd.3x
├── curs_border.3x
├── curs_border_set.3x
├── curs_clear.3x
├── curs_color.3x
├── curs_delch.3x
├── curs_deleteln.3x
├── curs_extend.3x
├── curs_get_wch.3x
├── curs_get_wstr.3x
├── curs_getcchar.3x
├── curs_getch.3x
├── curs_getstr.3x
├── curs_getyx.3x
├── curs_in_wch.3x
├── curs_in_wchstr.3x
├── curs_inch.3x
├── curs_inchstr.3x
├── curs_initscr.3x
├── curs_inopts.3x
├── curs_ins_wch.3x
├── curs_ins_wstr.3x
├── curs_insch.3x
├── curs_insstr.3x
├── curs_instr.3x
├── curs_inwstr.3x
├── curs_kernel.3x
├── curs_legacy.3x
├── curs_memleaks.3x
├── curs_mouse.3x
├── curs_move.3x
├── curs_opaque.3x
├── curs_outopts.3x
├── curs_overlay.3x
├── curs_pad.3x
├── curs_print.3x
├── curs_printw.3x
├── curs_refresh.3x
├── curs_scanw.3x
├── curs_scr_dump.3x
├── curs_scroll.3x
├── curs_slk.3x
├── curs_sp_funcs.3x
├── curs_termattrs.3x
├── curs_termcap.3x
├── curs_terminfo.3x
├── curs_threads.3x
├── curs_touch.3x
├── curs_trace.3x
├── curs_util.3x
├── curs_variables.3x
├── curs_window.3x
├── default_colors.3x
├── define_key.3x
├── form.3x
├── form_cursor.3x
├── form_data.3x
├── form_driver.3x
├── form_field.3x
├── form_field_attributes.3x
├── form_field_buffer.3x
├── form_field_info.3x
├── form_field_just.3x
├── form_field_new.3x
├── form_field_opts.3x
├── form_field_userptr.3x
├── form_field_validation.3x
├── form_fieldtype.3x
├── form_hook.3x
├── form_new.3x
├── form_new_page.3x
├── form_opts.3x
├── form_page.3x
├── form_post.3x
├── form_requestname.3x
├── form_userptr.3x
├── form_variables.3x
├── form_win.3x
├── infocmp.1m
├── infotocap.1m
├── key_defined.3x
├── keybound.3x
├── keyok.3x
├── legacy_coding.3x
├── make_sed.sh
├── man_db.renames.in
├── manhtml.aliases
├── manhtml.externs
├── manlinks.sed
├── menu.3x
├── menu_attributes.3x
├── menu_cursor.3x
├── menu_driver.3x
├── menu_format.3x
├── menu_hook.3x
├── menu_items.3x
├── menu_mark.3x
├── menu_new.3x
├── menu_opts.3x
├── menu_pattern.3x
├── menu_post.3x
├── menu_requestname.3x
├── menu_spacing.3x
├── menu_userptr.3x
├── menu_win.3x
├── mitem_current.3x
├── mitem_name.3x
├── mitem_new.3x
├── mitem_opts.3x
├── mitem_userptr.3x
├── mitem_value.3x
├── mitem_visible.3x
├── ncurses.3x
├── new_pair.3x
├── panel.3x
├── resizeterm.3x
├── scr_dump.5
├── tabs.1
├── term.5
├── term.7
├── term_variables.3x
├── terminfo.head
├── terminfo.tail
├── tic.1m
├── toe.1m
├── tput.1
├── tset.1
├── user_caps.5
└── wresize.3x
├── menu
├── Makefile.in
├── READ.ME
├── eti.h
├── headers
├── llib-lmenu
├── llib-lmenut
├── llib-lmenutw
├── llib-lmenuw
├── m_attribs.c
├── m_cursor.c
├── m_driver.c
├── m_format.c
├── m_global.c
├── m_hook.c
├── m_item_cur.c
├── m_item_nam.c
├── m_item_new.c
├── m_item_opt.c
├── m_item_top.c
├── m_item_use.c
├── m_item_val.c
├── m_item_vis.c
├── m_items.c
├── m_new.c
├── m_opts.c
├── m_pad.c
├── m_pattern.c
├── m_post.c
├── m_req_name.c
├── m_scale.c
├── m_spacing.c
├── m_sub.c
├── m_trace.c
├── m_userptr.c
├── m_win.c
├── menu.h
├── menu.priv.h
├── mf_common.h
└── modules
├── misc
├── Makefile.in
├── chkdef.cmd
├── cleantic.cmd
├── cmpdef.cmd
├── csort
├── emx.src
├── form.def
├── form.ref
├── gen-pkgconfig.in
├── gen_edit.sh
├── magic
├── makedef.cmd
├── makellib
├── menu.def
├── menu.ref
├── ncu2openbsd
├── ncurses-config.in
├── ncurses.def
├── ncurses.ref
├── ncurses.supp
├── panel.def
├── panel.ref
├── run_tic.in
├── shlib
├── tabset
│ ├── std
│ ├── stdcrt
│ ├── vt100
│ └── vt300
├── tdlint
└── terminfo.src
├── mk-0th.awk
├── mk-1st.awk
├── mk-2nd.awk
├── mk-hdr.awk
├── ncurses
├── Makefile.in
├── README
├── README.IZ
├── SigAction.h
├── base
│ ├── MKkeyname.awk
│ ├── MKlib_gen.sh
│ ├── MKunctrl.awk
│ ├── README
│ ├── define_key.c
│ ├── key_defined.c
│ ├── keybound.c
│ ├── keyok.c
│ ├── legacy_coding.c
│ ├── lib_addch.c
│ ├── lib_addstr.c
│ ├── lib_beep.c
│ ├── lib_bkgd.c
│ ├── lib_box.c
│ ├── lib_chgat.c
│ ├── lib_clear.c
│ ├── lib_clearok.c
│ ├── lib_clrbot.c
│ ├── lib_clreol.c
│ ├── lib_color.c
│ ├── lib_colorset.c
│ ├── lib_delch.c
│ ├── lib_delwin.c
│ ├── lib_dft_fgbg.c
│ ├── lib_driver.c
│ ├── lib_echo.c
│ ├── lib_endwin.c
│ ├── lib_erase.c
│ ├── lib_flash.c
│ ├── lib_freeall.c
│ ├── lib_getch.c
│ ├── lib_getstr.c
│ ├── lib_hline.c
│ ├── lib_immedok.c
│ ├── lib_inchstr.c
│ ├── lib_initscr.c
│ ├── lib_insch.c
│ ├── lib_insdel.c
│ ├── lib_insnstr.c
│ ├── lib_instr.c
│ ├── lib_isendwin.c
│ ├── lib_leaveok.c
│ ├── lib_mouse.c
│ ├── lib_move.c
│ ├── lib_mvwin.c
│ ├── lib_newterm.c
│ ├── lib_newwin.c
│ ├── lib_nl.c
│ ├── lib_overlay.c
│ ├── lib_pad.c
│ ├── lib_printw.c
│ ├── lib_redrawln.c
│ ├── lib_refresh.c
│ ├── lib_restart.c
│ ├── lib_scanw.c
│ ├── lib_screen.c
│ ├── lib_scroll.c
│ ├── lib_scrollok.c
│ ├── lib_scrreg.c
│ ├── lib_set_term.c
│ ├── lib_slk.c
│ ├── lib_slkatr_set.c
│ ├── lib_slkatrof.c
│ ├── lib_slkatron.c
│ ├── lib_slkatrset.c
│ ├── lib_slkattr.c
│ ├── lib_slkclear.c
│ ├── lib_slkcolor.c
│ ├── lib_slkinit.c
│ ├── lib_slklab.c
│ ├── lib_slkrefr.c
│ ├── lib_slkset.c
│ ├── lib_slktouch.c
│ ├── lib_touch.c
│ ├── lib_ungetch.c
│ ├── lib_vline.c
│ ├── lib_wattroff.c
│ ├── lib_wattron.c
│ ├── lib_winch.c
│ ├── lib_window.c
│ ├── nc_panel.c
│ ├── new_pair.c
│ ├── resizeterm.c
│ ├── safe_sprintf.c
│ ├── sigaction.c
│ ├── tries.c
│ ├── use_window.c
│ ├── version.c
│ ├── vsscanf.c
│ └── wresize.c
├── build.priv.h
├── curses.priv.h
├── fifo_defs.h
├── llib-lncurses
├── llib-lncursest
├── llib-lncursestw
├── llib-lncursesw
├── llib-ltic
├── llib-ltict
├── llib-ltictw
├── llib-lticw
├── llib-ltinfo
├── llib-ltinfot
├── llib-ltinfotw
├── llib-ltinfow
├── modules
├── new_pair.h
├── report_hashing.c
├── report_offsets.c
├── term.priv.h
├── tinfo
│ ├── MKcaptab.awk
│ ├── MKcaptab.sh
│ ├── MKcodes.awk
│ ├── MKfallback.sh
│ ├── MKkeys_list.sh
│ ├── MKnames.awk
│ ├── MKuserdefs.sh
│ ├── README
│ ├── access.c
│ ├── add_tries.c
│ ├── alloc_entry.c
│ ├── alloc_ttype.c
│ ├── captoinfo.c
│ ├── comp_error.c
│ ├── comp_expand.c
│ ├── comp_hash.c
│ ├── comp_parse.c
│ ├── comp_scan.c
│ ├── db_iterator.c
│ ├── doalloc.c
│ ├── entries.c
│ ├── free_ttype.c
│ ├── getenv_num.c
│ ├── hashed_db.c
│ ├── home_terminfo.c
│ ├── init_keytry.c
│ ├── lib_acs.c
│ ├── lib_baudrate.c
│ ├── lib_cur_term.c
│ ├── lib_data.c
│ ├── lib_has_cap.c
│ ├── lib_kernel.c
│ ├── lib_longname.c
│ ├── lib_napms.c
│ ├── lib_options.c
│ ├── lib_print.c
│ ├── lib_raw.c
│ ├── lib_setup.c
│ ├── lib_termcap.c
│ ├── lib_termname.c
│ ├── lib_tgoto.c
│ ├── lib_ti.c
│ ├── lib_tparm.c
│ ├── lib_tputs.c
│ ├── lib_ttyflags.c
│ ├── lib_win32con.c
│ ├── lib_win32util.c
│ ├── make_hash.c
│ ├── make_keys.c
│ ├── name_match.c
│ ├── obsolete.c
│ ├── parse_entry.c
│ ├── read_entry.c
│ ├── read_termcap.c
│ ├── strings.c
│ ├── tinfo_driver.c
│ ├── trim_sgr0.c
│ ├── use_screen.c
│ └── write_entry.c
├── trace
│ ├── README
│ ├── lib_trace.c
│ ├── lib_traceatr.c
│ ├── lib_tracebits.c
│ ├── lib_tracechr.c
│ ├── lib_tracedmp.c
│ ├── lib_tracemse.c
│ ├── trace_buf.c
│ ├── trace_tries.c
│ ├── trace_xnames.c
│ ├── varargs.c
│ └── visbuf.c
├── tty
│ ├── MKexpanded.sh
│ ├── hardscroll.c
│ ├── hashmap.c
│ ├── lib_mvcur.c
│ ├── lib_tstp.c
│ ├── lib_twait.c
│ ├── lib_vidattr.c
│ └── tty_update.c
├── wcwidth.h
├── widechar
│ ├── charable.c
│ ├── lib_add_wch.c
│ ├── lib_box_set.c
│ ├── lib_cchar.c
│ ├── lib_erasewchar.c
│ ├── lib_get_wch.c
│ ├── lib_get_wstr.c
│ ├── lib_hline_set.c
│ ├── lib_in_wch.c
│ ├── lib_in_wchnstr.c
│ ├── lib_ins_wch.c
│ ├── lib_inwstr.c
│ ├── lib_key_name.c
│ ├── lib_pecho_wchar.c
│ ├── lib_slk_wset.c
│ ├── lib_unget_wch.c
│ ├── lib_vid_attr.c
│ ├── lib_vline_set.c
│ ├── lib_wacs.c
│ ├── lib_wunctrl.c
│ └── widechars.c
└── win32con
│ ├── gettimeofday.c
│ ├── wcwidth.c
│ ├── win32_driver.c
│ └── win_driver.c
├── package
├── debian-mingw
│ ├── changelog
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── mingw32-ncurses6.lintian-overrides
│ ├── rules
│ ├── source
│ │ └── format
│ └── watch
├── debian-mingw64
│ ├── changelog
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── mingw64-ncurses6.lintian-overrides
│ ├── rules
│ ├── source
│ │ └── format
│ └── watch
├── debian
│ ├── changelog
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── ncurses6.lintian-overrides
│ ├── ncurses6.triggers
│ ├── ncursest6.lintian-overrides
│ ├── ncursest6.triggers
│ ├── rules
│ ├── source
│ │ └── format
│ └── watch
├── mingw-ncurses.nsi
├── mingw-ncurses.spec
├── ncurses.map
├── ncurses.spec
├── ncurses.sym
├── ncursest.map
├── ncursest.spec
├── ncursest.sym
├── ncursestw.map
├── ncursestw.sym
├── ncursesw.map
└── ncursesw.sym
├── panel
├── Makefile.in
├── headers
├── llib-lpanel
├── llib-lpanelt
├── llib-lpaneltw
├── llib-lpanelw
├── modules
├── p_above.c
├── p_below.c
├── p_bottom.c
├── p_delete.c
├── p_hidden.c
├── p_hide.c
├── p_move.c
├── p_new.c
├── p_replace.c
├── p_show.c
├── p_top.c
├── p_update.c
├── p_user.c
├── p_win.c
├── panel.c
├── panel.h
└── panel.priv.h
├── progs
├── MKtermsort.sh
├── Makefile.in
├── capconvert
├── clear.c
├── clear.sh
├── clear_cmd.c
├── clear_cmd.h
├── dump_entry.c
├── dump_entry.h
├── infocmp.c
├── modules
├── progs.priv.h
├── reset_cmd.c
├── reset_cmd.h
├── tabs.c
├── tic.c
├── toe.c
├── tparm_type.c
├── tparm_type.h
├── tput.c
├── transform.c
├── tset.c
├── tty_settings.c
└── tty_settings.h
└── test
├── Makefile.in
├── README
├── aclocal.m4
├── back_ground.c
├── background.c
├── blue.c
├── bs.6
├── bs.c
├── bulgarian-utf8-tabs.txt
├── bulgarian-utf8.txt
├── cardfile.c
├── cardfile.dat
├── chgat.c
├── clip_printw.c
├── color_content.c
├── color_name.h
├── color_set.c
├── combine.c
├── configure
├── configure.in
├── demo_altkeys.c
├── demo_defkey.c
├── demo_forms.c
├── demo_forms.txt
├── demo_keyok.c
├── demo_menus.c
├── demo_new_pair.c
├── demo_panels.c
├── demo_tabs.c
├── demo_termcap.c
├── demo_terminfo.c
├── ditto.c
├── dots.c
├── dots_curses.c
├── dots_mvcur.c
├── dots_termcap.c
├── dots_xcurses.c
├── dump_window.c
├── dump_window.h
├── dup_field.c
├── echochar.c
├── edit_field.c
├── edit_field.h
├── escherknot.xbm
├── extended_color.c
├── filter.c
├── firework.c
├── firstlast.c
├── foldkeys.c
├── form_driver_w.c
├── gdc.6
├── gdc.c
├── hanoi.c
├── hashtest.c
├── inch_wide.c
├── inchs.c
├── ins_wide.c
├── insdelln.c
├── inserts.c
├── key_names.c
├── keynames.c
├── knight.c
├── linedata.h
├── linux-color.dat
├── list_keys.c
├── listused.sh
├── lrtest.c
├── make-tar.sh
├── mensetmanus.xbm
├── mini.xterm_48x48.xpm
├── mk-test.awk
├── modules
├── move_field.c
├── movewindow.c
├── ncurses.c
├── ncurses_tst.hin
├── newdemo.c
├── package
├── debian-mingw
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── docs
│ ├── rules
│ ├── source
│ │ └── format
│ └── watch
├── debian-mingw64
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── docs
│ ├── rules
│ ├── source
│ │ └── format
│ └── watch
├── debian
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── docs
│ ├── rules
│ ├── source
│ │ └── format
│ └── watch
├── mingw-ncurses-examples.spec
└── ncurses-examples.spec
├── padview.c
├── pair_content.c
├── parse_rgb.h
├── picsmap.c
├── picsmap.h
├── popup_msg.c
├── popup_msg.h
├── programs
├── railroad.c
├── rain.c
├── redraw.c
├── savescreen.c
├── savescreen.sh
├── sp_tinfo.c
├── tclock.c
├── terminal.xbm
├── test.priv.h
├── test_add_wchstr.c
├── test_addchstr.c
├── test_addstr.c
├── test_addwstr.c
├── test_arrays.c
├── test_delwin.c
├── test_get_wstr.c
├── test_getstr.c
├── test_instr.c
├── test_inwstr.c
├── test_mouse.c
├── test_opaque.c
├── test_setupterm.c
├── test_sgr.c
├── test_termattrs.c
├── test_tparm.c
├── test_unget_wch.c
├── test_vid_puts.c
├── test_vidputs.c
├── testaddch.c
├── testcurs.c
├── testscanw.c
├── tput-colorcube
├── tput-initc
├── tracemunch
├── view.c
├── widechars-utf8-tabs.txt
├── widechars-utf8.txt
├── widechars.h
├── worm.c
├── xmas.c
├── xterm-16color.dat
├── xterm-256color.dat
├── xterm-88color.dat
└── xterm-color_48x48.xpm
/AUTHORS:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | -- Copyright 2020,2021 Thomas E. Dickey --
3 | -- Copyright 2006,2017 Free Software Foundation, Inc. --
4 | -- --
5 | -- Permission is hereby granted, free of charge, to any person obtaining a --
6 | -- copy of this software and associated documentation files (the --
7 | -- "Software"), to deal in the Software without restriction, including --
8 | -- without limitation the rights to use, copy, modify, merge, publish, --
9 | -- distribute, distribute with modifications, sublicense, and/or sell copies --
10 | -- of the Software, and to permit persons to whom the Software is furnished --
11 | -- to do so, subject to the following conditions: --
12 | -- --
13 | -- The above copyright notice and this permission notice shall be included --
14 | -- in all copies or substantial portions of the Software. --
15 | -- --
16 | -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
17 | -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
18 | -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
19 | -- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
20 | -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
21 | -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
22 | -- USE OR OTHER DEALINGS IN THE SOFTWARE. --
23 | -- --
24 | -- Except as contained in this notice, the name(s) of the above copyright --
25 | -- holders shall not be used in advertising or otherwise to promote the --
26 | -- sale, use or other dealings in this Software without prior written --
27 | -- authorization. --
28 | -------------------------------------------------------------------------------
29 | -- $Id: AUTHORS,v 1.5 2021/06/17 21:20:30 tom Exp $
30 | -------------------------------------------------------------------------------
31 | These are the principal authors/contributors of ncurses since 1.9.9e,
32 | in decreasing order of their contribution:
33 |
34 | TD Thomas E. Dickey
35 | JPF Juergen Pfeifer
36 | ESR Eric S Raymond
37 | AVL Alexander V Lukyanov
38 | PB Philippe Blain
39 | SV Sven Verdoolaege
40 | NB Nicolas Boulenguez
41 |
--------------------------------------------------------------------------------
/Ada95/README:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | -- Copyright 2020,2021 Thomas E. Dickey --
3 | -- Copyright 1998-2002,2003 Free Software Foundation, Inc. --
4 | -- --
5 | -- Permission is hereby granted, free of charge, to any person obtaining a --
6 | -- copy of this software and associated documentation files (the --
7 | -- "Software"), to deal in the Software without restriction, including --
8 | -- without limitation the rights to use, copy, modify, merge, publish, --
9 | -- distribute, distribute with modifications, sublicense, and/or sell copies --
10 | -- of the Software, and to permit persons to whom the Software is furnished --
11 | -- to do so, subject to the following conditions: --
12 | -- --
13 | -- The above copyright notice and this permission notice shall be included --
14 | -- in all copies or substantial portions of the Software. --
15 | -- --
16 | -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
17 | -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
18 | -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
19 | -- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
20 | -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
21 | -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
22 | -- USE OR OTHER DEALINGS IN THE SOFTWARE. --
23 | -- --
24 | -- Except as contained in this notice, the name(s) of the above copyright --
25 | -- holders shall not be used in advertising or otherwise to promote the --
26 | -- sale, use or other dealings in this Software without prior written --
27 | -- authorization. --
28 | -------------------------------------------------------------------------------
29 |
30 | -- Author: Juergen Pfeifer, 1996
31 |
32 | The documentation is provided in HTML format in the ./html
33 | subdirectory. The main document is named index.html
34 |
35 |
--------------------------------------------------------------------------------
/Ada95/gen/html.m4:
--------------------------------------------------------------------------------
1 | dnl***************************************************************************
2 | dnl Copyright 2019,2020 Thomas E. Dickey *
3 | dnl Copyright 2000-2006,2007 Free Software Foundation, Inc. *
4 | dnl *
5 | dnl Permission is hereby granted, free of charge, to any person obtaining a *
6 | dnl copy of this software and associated documentation files (the *
7 | dnl "Software"), to deal in the Software without restriction, including *
8 | dnl without limitation the rights to use, copy, modify, merge, publish, *
9 | dnl distribute, distribute with modifications, sublicense, and/or sell *
10 | dnl copies of the Software, and to permit persons to whom the Software is *
11 | dnl furnished to do so, subject to the following conditions: *
12 | dnl *
13 | dnl The above copyright notice and this permission notice shall be included *
14 | dnl in all copies or substantial portions of the Software. *
15 | dnl *
16 | dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | dnl IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | dnl DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | dnl OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | dnl THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | dnl *
24 | dnl Except as contained in this notice, the name(s) of the above copyright *
25 | dnl holders shall not be used in advertising or otherwise to promote the *
26 | dnl sale, use or other dealings in this Software without prior written *
27 | dnl authorization. *
28 | dnl***************************************************************************
29 | dnl
30 | dnl $Id: html.m4,v 1.5 2020/02/02 23:34:34 tom Exp $
31 | define(`ANCHORIDX',`0')dnl
32 | define(`MANPAGE',`define(`MANPG',$1)dnl
33 | |=====================================================================
34 | -- | Man page MANPG
35 | -- |=====================================================================')dnl
36 | define(`ANCHOR',`define(`ANCHORIDX',incr(ANCHORIDX))dnl
37 | `#'1A NAME="AFU`_'ANCHORIDX"`#'2dnl
38 | define(`CFUNAME',`$1')define(`AFUNAME',`$2')dnl
39 | |#1/A#2')dnl
40 | define(`AKA',``AKA': CFUNAME')dnl
41 | define(`ALIAS',``AKA': $1')dnl
42 |
--------------------------------------------------------------------------------
/Ada95/gen/normal.m4:
--------------------------------------------------------------------------------
1 | dnl***************************************************************************
2 | dnl Copyright 2020 Thomas E. Dickey *
3 | dnl Copyright 1998,2006 Free Software Foundation, Inc. *
4 | dnl *
5 | dnl Permission is hereby granted, free of charge, to any person obtaining a *
6 | dnl copy of this software and associated documentation files (the *
7 | dnl "Software"), to deal in the Software without restriction, including *
8 | dnl without limitation the rights to use, copy, modify, merge, publish, *
9 | dnl distribute, distribute with modifications, sublicense, and/or sell *
10 | dnl copies of the Software, and to permit persons to whom the Software is *
11 | dnl furnished to do so, subject to the following conditions: *
12 | dnl *
13 | dnl The above copyright notice and this permission notice shall be included *
14 | dnl in all copies or substantial portions of the Software. *
15 | dnl *
16 | dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | dnl IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | dnl DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | dnl OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | dnl THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | dnl *
24 | dnl Except as contained in this notice, the name(s) of the above copyright *
25 | dnl holders shall not be used in advertising or otherwise to promote the *
26 | dnl sale, use or other dealings in this Software without prior written *
27 | dnl authorization. *
28 | dnl***************************************************************************
29 | dnl
30 | dnl $Id: normal.m4,v 1.3 2020/02/02 23:34:34 tom Exp $
31 | define(`MANPAGE',`define(`MANPG',$1)dnl
32 | |=====================================================================
33 | -- | Man page MANPG
34 | -- |=====================================================================')dnl
35 | define(`ANCHOR',`define(`CFUNAME',`$1')define(`AFUNAME',`$2')'dnl
36 | |)dnl
37 | define(`AKA',``AKA': CFUNAME')dnl
38 | define(`ALIAS',``AKA': $1')dnl
39 |
--------------------------------------------------------------------------------
/Ada95/gen/table.m4:
--------------------------------------------------------------------------------
1 | dnl***************************************************************************
2 | dnl Copyright 2020 Thomas E. Dickey *
3 | dnl Copyright 2000,2006 Free Software Foundation, Inc. *
4 | dnl *
5 | dnl Permission is hereby granted, free of charge, to any person obtaining a *
6 | dnl copy of this software and associated documentation files (the *
7 | dnl "Software"), to deal in the Software without restriction, including *
8 | dnl without limitation the rights to use, copy, modify, merge, publish, *
9 | dnl distribute, distribute with modifications, sublicense, and/or sell *
10 | dnl copies of the Software, and to permit persons to whom the Software is *
11 | dnl furnished to do so, subject to the following conditions: *
12 | dnl *
13 | dnl The above copyright notice and this permission notice shall be included *
14 | dnl in all copies or substantial portions of the Software. *
15 | dnl *
16 | dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | dnl IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | dnl DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | dnl OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | dnl THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | dnl *
24 | dnl Except as contained in this notice, the name(s) of the above copyright *
25 | dnl holders shall not be used in advertising or otherwise to promote the *
26 | dnl sale, use or other dealings in this Software without prior written *
27 | dnl authorization. *
28 | dnl***************************************************************************
29 | dnl
30 | dnl $Id: table.m4,v 1.3 2020/02/02 23:34:34 tom Exp $
31 | define(`ANCHORIDX',`0')dnl
32 | define(`MANPAGE',`define(`MANPG',$1)')dnl
33 | divert(-1)dnl
34 | define(`ANCHOR',`divert(0)define(`ANCHORIDX',incr(ANCHORIDX))dnl
35 |
$1 | $2 | MANPG |
36 | divert(-1)')
37 |
--------------------------------------------------------------------------------
/Ada95/package/AdaCurses-doc.spec:
--------------------------------------------------------------------------------
1 | Summary: AdaCurses - Ada95 binding documentation for ncurses
2 | %define AppProgram AdaCurses
3 | %define AppVersion MAJOR.MINOR
4 | %define AppRelease YYYYMMDD
5 | %define AppPackage %{AppProgram}-doc
6 | # $Id: AdaCurses-doc.spec,v 1.7 2019/11/23 21:15:53 tom Exp $
7 | Name: %{AppPackage}
8 | Version: %{AppVersion}
9 | Release: %{AppRelease}
10 | License: MIT
11 | Group: Applications/Development
12 | URL: ftp://ftp.invisible-island.net/%{AppProgram}
13 | Source0: %{AppProgram}-%{AppRelease}.tgz
14 | Packager: Thomas Dickey
15 |
16 | %description
17 | This is the Ada95 binding documentation from the ncurses MAJOR.MINOR
18 | distribution, for patch-date YYYYMMDD.
19 | %prep
20 |
21 | %define debug_package %{nil}
22 |
23 | %setup -q -n %{AppProgram}-%{AppRelease}
24 |
25 | %build
26 |
27 | INSTALL_PROGRAM='${INSTALL}' \
28 | %configure \
29 | --target %{_target_platform} \
30 | --prefix=%{_prefix} \
31 | --datadir=%{_datadir} \
32 | --with-ada-sharedlib
33 |
34 | %install
35 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
36 |
37 | (cd doc && make install.html DESTDIR=$RPM_BUILD_ROOT )
38 |
39 | %clean
40 | if rm -rf $RPM_BUILD_ROOT; then
41 | echo OK
42 | else
43 | find $RPM_BUILD_ROOT -type f | grep -F -v /.nfs && exit 1
44 | fi
45 | exit 0
46 |
47 | %files
48 | %defattr(-,root,root)
49 | %{_datadir}/doc/%{AppProgram}
50 |
51 | %changelog
52 | # each patch should add its ChangeLog entries here
53 |
54 | * Sat Nov 16 2019 Thomas Dickey
55 | - modify clean-rule to work around Fedora NFS bugs.
56 |
57 | * Sat Sep 07 2019 Thomas Dickey
58 | - use AppProgram to replace "AdaCurses" globally
59 |
60 | * Sat Mar 26 2011 Thomas Dickey
61 | - initial version
62 |
--------------------------------------------------------------------------------
/Ada95/package/debian/compat:
--------------------------------------------------------------------------------
1 | 12
2 |
--------------------------------------------------------------------------------
/Ada95/package/debian/control:
--------------------------------------------------------------------------------
1 | Source: adacurses
2 | Maintainer: Thomas E. Dickey
3 | Section: misc
4 | Priority: optional
5 | Build-Depends: debhelper (>= 5),
6 | gnat,
7 | gprbuild
8 | Homepage: https://invisible-island.net/adacurses/
9 | Standards-Version: 4.6.1.0
10 |
11 | Package: adacurses
12 | Architecture: any
13 | Depends: ${shlibs:Depends}, ${misc:Depends}
14 | Description: Ada95 binding for ncurses
15 | This package installs as "adacurses" to avoid conflict with other packages.
16 | This is the Ada95 binding from the ncurses distribution.
17 | .
18 | In addition to a library, this package installs sample programs in
19 | "bin/AdaCurses" to avoid conflict with other packages.
20 |
--------------------------------------------------------------------------------
/Ada95/package/debian/docs:
--------------------------------------------------------------------------------
1 | README
2 |
--------------------------------------------------------------------------------
/Ada95/package/debian/rules:
--------------------------------------------------------------------------------
1 | #!/usr/bin/make -f
2 | # MAde with the aid of dh_make, by Craig Small
3 | # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 | # Some lines taken from debmake, by Cristoph Lameter.
5 |
6 | # Uncomment this to turn on verbose mode.
7 | #export DH_VERBOSE=1
8 |
9 | # These are used for cross-compiling and for saving the configure script
10 | # from having to guess our platform (since we know it already)
11 | DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 | DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
13 |
14 | TARGET_DIR = $(CURDIR)/debian/adacurses
15 | SAMPLE_DIR = $(TARGET_DIR)/usr/libexec/AdaCurses
16 |
17 | CFLAGS = $(shell dpkg-buildflags --get CFLAGS) $(CC_NORMAL)
18 | CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
19 | LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
20 |
21 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22 | CFLAGS += -O0
23 | else
24 | CFLAGS += -O2
25 | endif
26 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
27 | INSTALL_PROGRAM += -s
28 | endif
29 |
30 |
31 | configure: configure-stamp
32 | configure-stamp:
33 | dh_testdir
34 |
35 | CFLAGS="$(CFLAGS)" \
36 | CPPFLAGS="$(CPPFLAGS)" \
37 | LDFLAGS="$(LDFLAGS)" ./configure \
38 | --host=$(DEB_HOST_GNU_TYPE) \
39 | --build=$(DEB_BUILD_GNU_TYPE) \
40 | --prefix=/usr \
41 | --disable-rpath-link \
42 | --with-shared \
43 | --with-ada-sharedlib \
44 | --without-pkg-config
45 |
46 | touch configure-stamp
47 |
48 | build: build-stamp
49 | build-stamp: configure-stamp
50 | dh_testdir
51 |
52 | $(MAKE)
53 |
54 | touch build-stamp
55 |
56 | clean:
57 | dh_testdir
58 | dh_testroot
59 |
60 | [ ! -f makefile ] || $(MAKE) distclean
61 |
62 | rm -f configure-stamp build-stamp install-stamp
63 |
64 | dh_clean
65 |
66 | install: install-stamp
67 | install-stamp: build-stamp
68 | dh_testdir
69 | dh_testroot
70 | dh_prep
71 | dh_installdirs
72 |
73 | $(MAKE) install DESTDIR=$(TARGET_DIR)
74 |
75 | # FIXME: it would be nice to make these into separate packages
76 | ( cd samples && $(MAKE) install.examples DESTDIR=$(TARGET_DIR) BINDIR=$(SAMPLE_DIR) )
77 | ( cd doc && $(MAKE) install.html DESTDIR=$(TARGET_DIR) )
78 |
79 | touch install-stamp
80 |
81 | # Build architecture-independent files here.
82 | binary-indep: build install
83 | # No binary-indep target.
84 |
85 | # Build architecture-dependent files here.
86 | binary-arch: build install
87 | dh_testdir
88 | dh_testroot
89 | dh_installdocs
90 | dh_installexamples
91 | dh_installchangelogs NEWS
92 | dh_strip
93 | dh_compress
94 | dh_fixperms
95 | dh_installdeb
96 | dh_makeshlibs
97 | dh_shlibdeps
98 | dh_gencontrol
99 | dh_md5sums
100 | dh_builddeb
101 |
102 | binary: binary-indep binary-arch
103 | .PHONY: build clean binary-indep binary-arch binary install install-stamp
104 |
--------------------------------------------------------------------------------
/Ada95/package/debian/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (native)
2 |
--------------------------------------------------------------------------------
/Ada95/package/debian/watch:
--------------------------------------------------------------------------------
1 | version=3
2 |
3 | opts=passive ftp://ftp.invisible-island.net/AdaCurses/AdaCurses-([\d.]+)\.tgz \
4 | debian uupdate
5 |
--------------------------------------------------------------------------------
/Ada95/samples/README:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | -- Copyright 2020 Thomas E. Dickey --
3 | -- Copyright 1998,2006 Free Software Foundation, Inc. --
4 | -- --
5 | -- Permission is hereby granted, free of charge, to any person obtaining a --
6 | -- copy of this software and associated documentation files (the --
7 | -- "Software"), to deal in the Software without restriction, including --
8 | -- without limitation the rights to use, copy, modify, merge, publish, --
9 | -- distribute, distribute with modifications, sublicense, and/or sell copies --
10 | -- of the Software, and to permit persons to whom the Software is furnished --
11 | -- to do so, subject to the following conditions: --
12 | -- --
13 | -- The above copyright notice and this permission notice shall be included --
14 | -- in all copies or substantial portions of the Software. --
15 | -- --
16 | -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
17 | -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
18 | -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
19 | -- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
20 | -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
21 | -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
22 | -- USE OR OTHER DEALINGS IN THE SOFTWARE. --
23 | -- --
24 | -- Except as contained in this notice, the name(s) of the above copyright --
25 | -- holders shall not be used in advertising or otherwise to promote the --
26 | -- sale, use or other dealings in this Software without prior written --
27 | -- authorization. --
28 | -------------------------------------------------------------------------------
29 | -- $Id: README,v 1.3 2020/02/02 23:34:34 tom Exp $
30 | -------------------------------------------------------------------------------
31 |
32 | The intention of the demo at this point in time is not to demonstrate all
33 | the features of (n)curses and its subsystems, but to give some sample
34 | sources how to use the binding at all.
35 |
36 | Ideally in the future we can combine both goals.
37 |
--------------------------------------------------------------------------------
/Ada95/samples/split-path.awk:
--------------------------------------------------------------------------------
1 | ##############################################################################
2 | # Copyright 2020,2022 Thomas E. Dickey #
3 | # #
4 | # Permission is hereby granted, free of charge, to any person obtaining a #
5 | # copy of this software and associated documentation files (the "Software"), #
6 | # to deal in the Software without restriction, including without limitation #
7 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
8 | # with modifications, sublicense, and/or sell copies of the Software, and to #
9 | # permit persons to whom the Software is furnished to do so, subject to the #
10 | # following conditions: #
11 | # #
12 | # The above copyright notice and this permission notice shall be included in #
13 | # all copies or substantial portions of the Software. #
14 | # #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
18 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
20 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
21 | # DEALINGS IN THE SOFTWARE. #
22 | # #
23 | # Except as contained in this notice, the name(s) of the above copyright #
24 | # holders shall not be used in advertising or otherwise to promote the sale, #
25 | # use or other dealings in this Software without prior written #
26 | # authorization. #
27 | ##############################################################################
28 | #
29 | # Author: Thomas E. Dickey
30 | #
31 | # $Id: split-path.awk,v 1.4 2022/11/26 23:46:20 tom Exp $
32 | BEGIN { cols = 72; }
33 | /[$]THIS_DATADIR/ {
34 | if (substr(this_datadir, length(this_datadir)) != "/")
35 | this_datadir = this_datadir "/";
36 | gsub("[$]THIS_DATADIR", "\"" this_datadir "\"");
37 | if ( length ($0) > cols ) {
38 | indent = index($0, "\"") - 1;
39 | broken = index($0, "&");
40 | if (broken > 0 && broken < indent)
41 | indent = broken - 1;
42 | leader = sprintf ("%*s& ", indent, " ");
43 | buffer = $0;
44 | first = 1;
45 | while ( length(buffer) > cols ) {
46 | printf("%.*s\"\n", cols, buffer);
47 | buffer = leader "\"" substr(buffer, cols + 1);
48 | }
49 | if ( buffer != "" && buffer != leader "\"\"" )
50 | printf("%.*s\n", cols, buffer);
51 | next;
52 | }
53 | }
54 | {
55 | print;
56 | }
57 |
--------------------------------------------------------------------------------
/Ada95/samples/tour.ads:
--------------------------------------------------------------------------------
1 | ------------------------------------------------------------------------------
2 | -- --
3 | -- GNAT ncurses Binding Samples --
4 | -- --
5 | -- Tour --
6 | -- --
7 | -- S P E C --
8 | -- --
9 | ------------------------------------------------------------------------------
10 | -- Copyright 2020 Thomas E. Dickey --
11 | -- Copyright 1998-2002,2003 Free Software Foundation, Inc. --
12 | -- --
13 | -- Permission is hereby granted, free of charge, to any person obtaining a --
14 | -- copy of this software and associated documentation files (the --
15 | -- "Software"), to deal in the Software without restriction, including --
16 | -- without limitation the rights to use, copy, modify, merge, publish, --
17 | -- distribute, distribute with modifications, sublicense, and/or sell --
18 | -- copies of the Software, and to permit persons to whom the Software is --
19 | -- furnished to do so, subject to the following conditions: --
20 | -- --
21 | -- The above copyright notice and this permission notice shall be included --
22 | -- in all copies or substantial portions of the Software. --
23 | -- --
24 | -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
25 | -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
26 | -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --
27 | -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
28 | -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
29 | -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR --
30 | -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
31 | -- --
32 | -- Except as contained in this notice, the name(s) of the above copyright --
33 | -- holders shall not be used in advertising or otherwise to promote the --
34 | -- sale, use or other dealings in this Software without prior written --
35 | -- authorization. --
36 | ------------------------------------------------------------------------------
37 | -- Author: Juergen Pfeifer, 1996
38 | -- Version Control
39 | -- $Revision: 1.11 $
40 | -- Binding Version 01.00
41 | ------------------------------------------------------------------------------
42 | procedure Tour;
43 |
--------------------------------------------------------------------------------
/Ada95/src/c_threaded_variables.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020,2022 Thomas E. Dickey *
3 | * Copyright 2014 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Nicolas Boulenguez, 2011 *
32 | ****************************************************************************/
33 |
34 | #include "c_threaded_variables.h"
35 |
36 | #define WRAP(type, name) \
37 | type \
38 | name ## _as_function (void) \
39 | { \
40 | return name; \
41 | }
42 | /* *INDENT-OFF* */
43 | WRAP(WINDOW *, stdscr)
44 | WRAP(WINDOW *, curscr)
45 |
46 | WRAP(int, LINES)
47 | WRAP(int, COLS)
48 | WRAP(int, TABSIZE)
49 | WRAP(int, COLORS)
50 | WRAP(int, COLOR_PAIRS)
51 |
52 | chtype
53 | acs_map_as_function(char inx)
54 | {
55 | return acs_map[(unsigned char) inx];
56 | }
57 | /* *INDENT-ON* */
58 |
--------------------------------------------------------------------------------
/Ada95/src/c_threaded_variables.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 2014,2015 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /* $Id: c_threaded_variables.h,v 1.4 2020/02/02 23:34:34 tom Exp $ */
31 |
32 | #ifndef __C_THREADED_VARIABLES_H
33 | #define __C_THREADED_VARIABLES_H
34 |
35 | #include
36 |
37 | #if HAVE_INTTYPES_H
38 | # include
39 | #else
40 | # if HAVE_STDINT_H
41 | # include
42 | # endif
43 | #endif
44 |
45 | #include
46 |
47 | extern WINDOW *stdscr_as_function(void);
48 | extern WINDOW *curscr_as_function(void);
49 |
50 | extern int LINES_as_function(void);
51 | extern int LINES_as_function(void);
52 | extern int COLS_as_function(void);
53 | extern int TABSIZE_as_function(void);
54 | extern int COLORS_as_function(void);
55 | extern int COLOR_PAIRS_as_function(void);
56 |
57 | extern chtype acs_map_as_function(char /* index */ );
58 |
59 | #endif /* __C_THREADED_VARIABLES_H */
60 |
--------------------------------------------------------------------------------
/COPYING:
--------------------------------------------------------------------------------
1 | Copyright 2018-2022,2023 Thomas E. Dickey
2 | Copyright 1998-2017,2018 Free Software Foundation, Inc.
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a
5 | copy of this software and associated documentation files (the
6 | "Software"), to deal in the Software without restriction, including
7 | without limitation the rights to use, copy, modify, merge, publish,
8 | distribute, distribute with modifications, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included
13 | in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 | IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
19 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
21 | THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
23 | Except as contained in this notice, the name(s) of the above copyright
24 | holders shall not be used in advertising or otherwise to promote the
25 | sale, use or other dealings in this Software without prior written
26 | authorization.
27 |
28 | -- vile:txtmode fc=72
29 | -- $Id: COPYING,v 1.12 2023/01/07 17:55:53 tom Exp $
30 |
--------------------------------------------------------------------------------
/VERSION:
--------------------------------------------------------------------------------
1 | 5:0:10 6.4 20230311
2 |
--------------------------------------------------------------------------------
/c++/PROBLEMS:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | -- Copyright 2020 Thomas E. Dickey --
3 | -- Copyright 1998,2006 Free Software Foundation, Inc. --
4 | -- --
5 | -- Permission is hereby granted, free of charge, to any person obtaining a --
6 | -- copy of this software and associated documentation files (the --
7 | -- "Software"), to deal in the Software without restriction, including --
8 | -- without limitation the rights to use, copy, modify, merge, publish, --
9 | -- distribute, distribute with modifications, sublicense, and/or sell copies --
10 | -- of the Software, and to permit persons to whom the Software is furnished --
11 | -- to do so, subject to the following conditions: --
12 | -- --
13 | -- The above copyright notice and this permission notice shall be included --
14 | -- in all copies or substantial portions of the Software. --
15 | -- --
16 | -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
17 | -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
18 | -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
19 | -- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
20 | -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
21 | -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
22 | -- USE OR OTHER DEALINGS IN THE SOFTWARE. --
23 | -- --
24 | -- Except as contained in this notice, the name(s) of the above copyright --
25 | -- holders shall not be used in advertising or otherwise to promote the --
26 | -- sale, use or other dealings in this Software without prior written --
27 | -- authorization. --
28 | -------------------------------------------------------------------------------
29 | -- $Id: PROBLEMS,v 1.4 2020/02/02 23:34:34 tom Exp $
30 | -------------------------------------------------------------------------------
31 | This is a list of open problems. This mainly lists known missing pieces
32 | and design flaws.
33 |
34 | 1. Testing!!!
35 | 2. Better demo program
36 |
--------------------------------------------------------------------------------
/c++/headers:
--------------------------------------------------------------------------------
1 | # C++ headers
2 | # $Id: headers,v 1.4 2020/02/02 23:34:34 tom Exp $
3 | ##############################################################################
4 | # Copyright 2020 Thomas E. Dickey #
5 | # Copyright 1998,2006 Free Software Foundation, Inc. #
6 | # #
7 | # Permission is hereby granted, free of charge, to any person obtaining a #
8 | # copy of this software and associated documentation files (the "Software"), #
9 | # to deal in the Software without restriction, including without limitation #
10 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
11 | # with modifications, sublicense, and/or sell copies of the Software, and to #
12 | # permit persons to whom the Software is furnished to do so, subject to the #
13 | # following conditions: #
14 | # #
15 | # The above copyright notice and this permission notice shall be included in #
16 | # all copies or substantial portions of the Software. #
17 | # #
18 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
19 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
20 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
21 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
22 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
23 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
24 | # DEALINGS IN THE SOFTWARE. #
25 | # #
26 | # Except as contained in this notice, the name(s) of the above copyright #
27 | # holders shall not be used in advertising or otherwise to promote the sale, #
28 | # use or other dealings in this Software without prior written #
29 | # authorization. #
30 | ##############################################################################
31 | #
32 | # Author: Thomas E. Dickey 1997
33 | #
34 | $(srcdir)/cursesapp.h
35 | $(srcdir)/cursesf.h
36 | $(srcdir)/cursesm.h
37 | $(srcdir)/cursesp.h
38 | $(srcdir)/cursesw.h
39 | $(srcdir)/cursslk.h
40 | etip.h
41 | # vile:makemode
42 |
--------------------------------------------------------------------------------
/c++/modules:
--------------------------------------------------------------------------------
1 | # Program modules
2 | # $Id: modules,v 1.12 2020/02/02 23:34:34 tom Exp $
3 | ##############################################################################
4 | # Copyright 2020 Thomas E. Dickey #
5 | # Copyright 1998-2006,2013 Free Software Foundation, Inc. #
6 | # #
7 | # Permission is hereby granted, free of charge, to any person obtaining a #
8 | # copy of this software and associated documentation files (the "Software"), #
9 | # to deal in the Software without restriction, including without limitation #
10 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
11 | # with modifications, sublicense, and/or sell copies of the Software, and to #
12 | # permit persons to whom the Software is furnished to do so, subject to the #
13 | # following conditions: #
14 | # #
15 | # The above copyright notice and this permission notice shall be included in #
16 | # all copies or substantial portions of the Software. #
17 | # #
18 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
19 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
20 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
21 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
22 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
23 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
24 | # DEALINGS IN THE SOFTWARE. #
25 | # #
26 | # Except as contained in this notice, the name(s) of the above copyright #
27 | # holders shall not be used in advertising or otherwise to promote the sale, #
28 | # use or other dealings in this Software without prior written #
29 | # authorization. #
30 | ##############################################################################
31 | #
32 | # Author: Thomas E. Dickey 1995-on
33 | #
34 |
35 | @ base
36 | cursesf c++ $(srcdir) $(internal_h) $(cursesf_h) $(cursesapp_h)
37 | cursesm c++ $(srcdir) $(internal_h) $(cursesm_h) $(cursesapp_h)
38 | cursesw c++ $(srcdir) $(internal_h) $(cursesw_h)
39 | cursespad c++ $(srcdir) $(internal_h) $(cursesw_h)
40 | cursesp c++ $(srcdir) $(internal_h) $(cursesp_h)
41 | cursslk c++ $(srcdir) $(internal_h) $(cursesapp_h)
42 | cursesapp c++ $(srcdir) $(internal_h) $(cursesapp_h)
43 | cursesmain c++ $(srcdir) $(internal_h) $(cursesapp_h) $(INCDIR)/nc_alloc.h
44 |
45 | # vile:makemode
46 |
--------------------------------------------------------------------------------
/doc/html/ada/files.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
14 |
15 |
16 | Files
17 | [T]
18 |
19 |
--------------------------------------------------------------------------------
/doc/html/ada/funcs.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
14 |
15 |
16 | Functions/Procedures
17 | [A]
18 | [B]
19 | [C]
20 | [D]
21 | [E]
22 | [F]
23 | [G]
24 | [H]
25 | [I]
26 | [K]
27 | [L]
28 | [M]
29 | [N]
30 | [O]
31 | [P]
32 | [Q]
33 | [R]
34 | [S]
35 | [T]
36 | [U]
37 | [V]
38 | [W]
39 |
40 |
--------------------------------------------------------------------------------
/doc/html/ada/funcs/A.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | A
5 |
6 |
7 |
8 | Functions - A
9 | [index]
10 |
30 |
--------------------------------------------------------------------------------
/doc/html/ada/funcs/B.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | B
5 |
6 |
7 |
8 | Functions - B
9 | [index]
10 |
26 |
--------------------------------------------------------------------------------
/doc/html/ada/funcs/E.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | E
5 |
6 |
7 |
8 | Functions - E
9 | [index]
10 |
23 |
--------------------------------------------------------------------------------
/doc/html/ada/funcs/H.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | H
5 |
6 |
7 |
8 | Functions - H
9 | [index]
10 |
27 |
--------------------------------------------------------------------------------
/doc/html/ada/funcs/K.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | K
5 |
6 |
7 |
8 | Functions - K
9 | [index]
10 |
19 |
--------------------------------------------------------------------------------
/doc/html/ada/funcs/L.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | L
5 |
6 |
7 |
8 | Functions - L
9 | [index]
10 |
26 |
--------------------------------------------------------------------------------
/doc/html/ada/funcs/O.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | O
5 |
6 |
7 |
8 | Functions - O
9 | [index]
10 |
17 |
--------------------------------------------------------------------------------
/doc/html/ada/funcs/Q.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Q
5 |
6 |
7 |
8 | Functions - Q
9 | [index]
10 |
13 |
--------------------------------------------------------------------------------
/doc/html/ada/funcs/U.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | U
5 |
6 |
7 |
8 | Functions - U
9 | [index]
10 |
28 |
--------------------------------------------------------------------------------
/doc/html/ada/funcs/V.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | V
5 |
6 |
7 |
8 | Functions - V
9 | [index]
10 |
16 |
--------------------------------------------------------------------------------
/doc/html/ada/index.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Source Browser
5 |
6 |
7 |
42 |
43 |
--------------------------------------------------------------------------------
/form/READ.ME:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | -- Copyright 2020,2021 Thomas E. Dickey --
3 | -- Copyright 1998-2003,2006 Free Software Foundation, Inc. --
4 | -- --
5 | -- Permission is hereby granted, free of charge, to any person obtaining a --
6 | -- copy of this software and associated documentation files (the --
7 | -- "Software"), to deal in the Software without restriction, including --
8 | -- without limitation the rights to use, copy, modify, merge, publish, --
9 | -- distribute, distribute with modifications, sublicense, and/or sell copies --
10 | -- of the Software, and to permit persons to whom the Software is furnished --
11 | -- to do so, subject to the following conditions: --
12 | -- --
13 | -- The above copyright notice and this permission notice shall be included --
14 | -- in all copies or substantial portions of the Software. --
15 | -- --
16 | -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
17 | -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
18 | -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
19 | -- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
20 | -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
21 | -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
22 | -- USE OR OTHER DEALINGS IN THE SOFTWARE. --
23 | -- --
24 | -- Except as contained in this notice, the name(s) of the above copyright --
25 | -- holders shall not be used in advertising or otherwise to promote the --
26 | -- sale, use or other dealings in this Software without prior written --
27 | -- authorization. --
28 | -------------------------------------------------------------------------------
29 | -- $Id: READ.ME,v 0.9 2021/06/17 21:20:30 tom Exp $
30 | -------------------------------------------------------------------------------
31 |
32 | This is a clone of the form library that is available with typical
33 | System V curses implementations (ETI).
34 |
35 | It is modelled after the documentation that comes for this library with
36 | a 386 based SVR4 implementation (ESIX).
37 |
38 | The development environment was and is an ELF based Linux system.
39 |
40 | For things that still need doing, see the TO-DO file in the top-level
41 | directory.
42 |
43 | Juergen Pfeifer
44 |
--------------------------------------------------------------------------------
/form/headers:
--------------------------------------------------------------------------------
1 | ##############################################################################
2 | # Copyright 2020 Thomas E. Dickey #
3 | # Copyright 1998,2006 Free Software Foundation, Inc. #
4 | # #
5 | # Permission is hereby granted, free of charge, to any person obtaining a #
6 | # copy of this software and associated documentation files (the "Software"), #
7 | # to deal in the Software without restriction, including without limitation #
8 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
9 | # with modifications, sublicense, and/or sell copies of the Software, and to #
10 | # permit persons to whom the Software is furnished to do so, subject to the #
11 | # following conditions: #
12 | # #
13 | # The above copyright notice and this permission notice shall be included in #
14 | # all copies or substantial portions of the Software. #
15 | # #
16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
17 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
19 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
20 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
21 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
22 | # DEALINGS IN THE SOFTWARE. #
23 | # #
24 | # Except as contained in this notice, the name(s) of the above copyright #
25 | # holders shall not be used in advertising or otherwise to promote the sale, #
26 | # use or other dealings in this Software without prior written #
27 | # authorization. #
28 | ##############################################################################
29 | #
30 | # Author: Thomas E. Dickey 1996
31 | #
32 | $(srcdir)/form.h
33 | # vile:makemode
34 |
--------------------------------------------------------------------------------
/include/MKhashsize.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ##############################################################################
3 | # Copyright 2019,2020 Thomas E. Dickey #
4 | # Copyright 1998,2006 Free Software Foundation, Inc. #
5 | # #
6 | # Permission is hereby granted, free of charge, to any person obtaining a #
7 | # copy of this software and associated documentation files (the "Software"), #
8 | # to deal in the Software without restriction, including without limitation #
9 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
10 | # with modifications, sublicense, and/or sell copies of the Software, and to #
11 | # permit persons to whom the Software is furnished to do so, subject to the #
12 | # following conditions: #
13 | # #
14 | # The above copyright notice and this permission notice shall be included in #
15 | # all copies or substantial portions of the Software. #
16 | # #
17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
20 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
22 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
23 | # DEALINGS IN THE SOFTWARE. #
24 | # #
25 | # Except as contained in this notice, the name(s) of the above copyright #
26 | # holders shall not be used in advertising or otherwise to promote the sale, #
27 | # use or other dealings in this Software without prior written #
28 | # authorization. #
29 | ##############################################################################
30 | # $Id: MKhashsize.sh,v 1.9 2020/02/02 23:34:34 tom Exp $
31 | #
32 | # MKhashsize.sh --- generate size include for hash functions
33 | #
34 | echo "/*"
35 | echo " * hashsize.h -- hash and token table constants"
36 | echo " */"
37 |
38 | test $# = 0 && set Caps
39 | TABSIZE=`cat "$@" | grep -v '^[ #]' | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | grep -v "^userdef" | grep -v "^used_by" | wc -l`
40 |
41 | echo ""
42 | echo "#define CAPTABSIZE ${TABSIZE}"
43 | echo "#define HASHTABSIZE (${TABSIZE} * 2)"
44 |
--------------------------------------------------------------------------------
/include/curses.events:
--------------------------------------------------------------------------------
1 | /* $Id*/
2 | /*
3 | * vile:cmode:
4 | * This file is part of ncurses, designed to be appended after curses.h.in
5 | * (see that file for the relevant copyright).
6 | */
7 |
8 | /*
9 | * This is an extension to support events...
10 | */
11 | #ifdef NCURSES_WGETCH_EVENTS
12 | #if !defined(__BEOS__) || defined(__HAIKU__)
13 | /* Fix _nc_timed_wait() on BEOS... */
14 | # define NCURSES_EVENT_VERSION 1
15 | #endif /* !defined(__BEOS__) */
16 |
17 | /*
18 | * Bits to set in _nc_event.data.flags
19 | */
20 | # define _NC_EVENT_TIMEOUT_MSEC 1
21 | # define _NC_EVENT_FILE 2
22 | # define _NC_EVENT_FILE_READABLE 2
23 | # if 0 /* Not supported yet... */
24 | # define _NC_EVENT_FILE_WRITABLE 4
25 | # define _NC_EVENT_FILE_EXCEPTION 8
26 | # endif
27 |
28 | typedef struct
29 | {
30 | int type;
31 | union
32 | {
33 | long timeout_msec; /* _NC_EVENT_TIMEOUT_MSEC */
34 | struct
35 | {
36 | unsigned int flags;
37 | int fd;
38 | unsigned int result;
39 | } fev; /* _NC_EVENT_FILE */
40 | } data;
41 | } _nc_event;
42 |
43 | typedef struct
44 | {
45 | int count;
46 | int result_flags; /* _NC_EVENT_TIMEOUT_MSEC or _NC_EVENT_FILE_READABLE */
47 | _nc_event *events[1];
48 | } _nc_eventlist;
49 |
50 | extern NCURSES_EXPORT(int) wgetch_events (WINDOW *, _nc_eventlist *) GCC_DEPRECATED(experimental option); /* experimental */
51 | extern NCURSES_EXPORT(int) wgetnstr_events (WINDOW *,char *,int,_nc_eventlist *) GCC_DEPRECATED(experimental option); /* experimental */
52 |
53 | #define KEY_EVENT 0633 /* We were interrupted by an event */
54 |
55 | #endif /* NCURSES_WGETCH_EVENTS */
56 |
--------------------------------------------------------------------------------
/include/headers:
--------------------------------------------------------------------------------
1 | # $Id: headers,v 1.15 2020/08/29 18:51:13 tom Exp $
2 | ##############################################################################
3 | # Copyright 2020 Thomas E. Dickey #
4 | # Copyright 1998-2012,2013 Free Software Foundation, Inc. #
5 | # #
6 | # Permission is hereby granted, free of charge, to any person obtaining a #
7 | # copy of this software and associated documentation files (the "Software"), #
8 | # to deal in the Software without restriction, including without limitation #
9 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
10 | # with modifications, sublicense, and/or sell copies of the Software, and to #
11 | # permit persons to whom the Software is furnished to do so, subject to the #
12 | # following conditions: #
13 | # #
14 | # The above copyright notice and this permission notice shall be included in #
15 | # all copies or substantial portions of the Software. #
16 | # #
17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
20 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
22 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
23 | # DEALINGS IN THE SOFTWARE. #
24 | # #
25 | # Except as contained in this notice, the name(s) of the above copyright #
26 | # holders shall not be used in advertising or otherwise to promote the sale, #
27 | # use or other dealings in this Software without prior written #
28 | # authorization. #
29 | ##############################################################################
30 | #
31 | # Author: Thomas E. Dickey 1996-on
32 | #
33 | curses.h
34 | unctrl.h
35 | ncurses_dll.h
36 |
37 | # Support for termcap (and tic, etc.), which can be a separate library
38 | @ termlib
39 | term.h
40 | termcap.h
41 |
42 | # Headers used only for tic, other programs using internal interfaces
43 | @ ticlib
44 | $(srcdir)/tic.h
45 | $(srcdir)/term_entry.h
46 | $(srcdir)/nc_tparm.h
47 |
48 | # Porting
49 | @ port_win32con
50 | $(srcdir)/ncurses_mingw.h
51 | $(srcdir)/nc_mingw.h
52 | @ port_win32
53 | $(srcdir)/win32_curses.h
54 |
55 | # vile:makemode
56 |
--------------------------------------------------------------------------------
/m/0001-ncurses-6.4.patch:
--------------------------------------------------------------------------------
1 | From d95c6f1429c30562ca4604482b1379776d594490 Mon Sep 17 00:00:00 2001
2 | From: "Thomas E. Dickey"
3 | Date: Sat, 31 Dec 2022 23:49:40 +0000
4 | Subject: [PATCH] ncurses 6.4
5 |
6 | ---
7 | ncurses/tinfo/MKkeys_list.sh | 0
8 | progs/MKtermsort.sh | 0
9 | test/savescreen.sh | 0
10 | test/tput-colorcube | 0
11 | test/tput-initc | 0
12 | 5 files changed, 0 insertions(+), 0 deletions(-)
13 | mode change 100644 => 100755 ncurses/tinfo/MKkeys_list.sh
14 | mode change 100644 => 100755 progs/MKtermsort.sh
15 | mode change 100644 => 100755 test/savescreen.sh
16 | mode change 100644 => 100755 test/tput-colorcube
17 | mode change 100644 => 100755 test/tput-initc
18 |
19 | diff --git a/ncurses/tinfo/MKkeys_list.sh b/ncurses/tinfo/MKkeys_list.sh
20 | old mode 100644
21 | new mode 100755
22 | diff --git a/progs/MKtermsort.sh b/progs/MKtermsort.sh
23 | old mode 100644
24 | new mode 100755
25 | diff --git a/test/savescreen.sh b/test/savescreen.sh
26 | old mode 100644
27 | new mode 100755
28 | diff --git a/test/tput-colorcube b/test/tput-colorcube
29 | old mode 100644
30 | new mode 100755
31 | diff --git a/test/tput-initc b/test/tput-initc
32 | old mode 100644
33 | new mode 100755
34 | --
35 | 2.30.2
36 |
37 |
--------------------------------------------------------------------------------
/man/manhtml.externs:
--------------------------------------------------------------------------------
1 | # $Id: manhtml.externs,v 1.15 2021/12/26 00:02:52 tom Exp $
2 | # Items in this list will not be linked by man2html
3 | #***************************************************************************
4 | # Copyright 2019-2020,2021 Thomas E. Dickey *
5 | # Copyright 2013,2017 Free Software Foundation, Inc. *
6 | # *
7 | # Permission is hereby granted, free of charge, to any person obtaining a *
8 | # copy of this software and associated documentation files (the *
9 | # "Software"), to deal in the Software without restriction, including *
10 | # without limitation the rights to use, copy, modify, merge, publish, *
11 | # distribute, distribute with modifications, sublicense, and/or sell *
12 | # copies of the Software, and to permit persons to whom the Software is *
13 | # furnished to do so, subject to the following conditions: *
14 | # *
15 | # The above copyright notice and this permission notice shall be included *
16 | # in all copies or substantial portions of the Software. *
17 | # *
18 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
19 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
20 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
21 | # IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
22 | # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
23 | # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
24 | # THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
25 | # *
26 | # Except as contained in this notice, the name(s) of the above copyright *
27 | # holders shall not be used in advertising or otherwise to promote the *
28 | # sale, use or other dealings in this Software without prior written *
29 | # authorization. *
30 | #***************************************************************************
31 | ADACURSES(1)
32 | COLOR_PAIR(1)
33 | COLOR_PAIR(2)
34 | COLOR_PAIR(3)
35 | atoi(3)
36 | conflict(1)
37 | cron(1)
38 | csh(1)
39 | ded(1)
40 | emacs(1)
41 | environ(7)
42 | errno(3)
43 | file(1)
44 | getty(1)
45 | jove(1)
46 | lynx(1)
47 | nvi(1)
48 | mutt(1)
49 | od(1)
50 | printf(3)
51 | profile(5)
52 | putc(3)
53 | putchar(3)
54 | putwc(3)
55 | read(2)
56 | readline(3)
57 | resize(1)
58 | scanf(3)
59 | screen(1)
60 | setlocale(3)
61 | sh(1)
62 | sscanf(3)
63 | stdio(3)
64 | stty(1)
65 | system(3)
66 | termios(3)
67 | tmux(1)
68 | tty(4)
69 | ttys(5)
70 | vi(1)
71 | vprintf(3)
72 | vscanf(3)
73 | wcwidth(3)
74 | write(2)
75 | xterm(1)
76 |
--------------------------------------------------------------------------------
/menu/READ.ME:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | -- Copyright 2020,2021 Thomas E. Dickey --
3 | -- Copyright 1998-2003,2006 Free Software Foundation, Inc. --
4 | -- --
5 | -- Permission is hereby granted, free of charge, to any person obtaining a --
6 | -- copy of this software and associated documentation files (the --
7 | -- "Software"), to deal in the Software without restriction, including --
8 | -- without limitation the rights to use, copy, modify, merge, publish, --
9 | -- distribute, distribute with modifications, sublicense, and/or sell copies --
10 | -- of the Software, and to permit persons to whom the Software is furnished --
11 | -- to do so, subject to the following conditions: --
12 | -- --
13 | -- The above copyright notice and this permission notice shall be included --
14 | -- in all copies or substantial portions of the Software. --
15 | -- --
16 | -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
17 | -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
18 | -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
19 | -- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
20 | -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
21 | -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
22 | -- USE OR OTHER DEALINGS IN THE SOFTWARE. --
23 | -- --
24 | -- Except as contained in this notice, the name(s) of the above copyright --
25 | -- holders shall not be used in advertising or otherwise to promote the --
26 | -- sale, use or other dealings in this Software without prior written --
27 | -- authorization. --
28 | -------------------------------------------------------------------------------
29 | -- $Id: READ.ME,v 1.11 2021/06/17 21:20:30 tom Exp $
30 | -------------------------------------------------------------------------------
31 |
32 | This is a clone of the menu library that is available with typical
33 | System V curses implementations (ETI).
34 |
35 | It is modelled after the documentation that comes for this library with
36 | a 386 based SVR4 implementation (ESIX).
37 |
38 | The development environment was and is an ELF based Linux system.
39 |
40 | For things that still need doing, see the TO-DO file in the top-level
41 | directory.
42 |
43 | Juergen Pfeifer
44 |
--------------------------------------------------------------------------------
/menu/eti.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998-2002,2003 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Juergen Pfeifer, 1995,1997 *
32 | ****************************************************************************/
33 |
34 | /* $Id: eti.h,v 1.9 2020/02/02 23:34:34 tom Exp $ */
35 |
36 | #ifndef NCURSES_ETI_H_incl
37 | #define NCURSES_ETI_H_incl 1
38 |
39 | #define E_OK (0)
40 | #define E_SYSTEM_ERROR (-1)
41 | #define E_BAD_ARGUMENT (-2)
42 | #define E_POSTED (-3)
43 | #define E_CONNECTED (-4)
44 | #define E_BAD_STATE (-5)
45 | #define E_NO_ROOM (-6)
46 | #define E_NOT_POSTED (-7)
47 | #define E_UNKNOWN_COMMAND (-8)
48 | #define E_NO_MATCH (-9)
49 | #define E_NOT_SELECTABLE (-10)
50 | #define E_NOT_CONNECTED (-11)
51 | #define E_REQUEST_DENIED (-12)
52 | #define E_INVALID_FIELD (-13)
53 | #define E_CURRENT (-14)
54 |
55 | #endif
56 |
--------------------------------------------------------------------------------
/menu/headers:
--------------------------------------------------------------------------------
1 | ##############################################################################
2 | # Copyright 2020 Thomas E. Dickey #
3 | # Copyright 1998,2006 Free Software Foundation, Inc. #
4 | # #
5 | # Permission is hereby granted, free of charge, to any person obtaining a #
6 | # copy of this software and associated documentation files (the "Software"), #
7 | # to deal in the Software without restriction, including without limitation #
8 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
9 | # with modifications, sublicense, and/or sell copies of the Software, and to #
10 | # permit persons to whom the Software is furnished to do so, subject to the #
11 | # following conditions: #
12 | # #
13 | # The above copyright notice and this permission notice shall be included in #
14 | # all copies or substantial portions of the Software. #
15 | # #
16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
17 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
19 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
20 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
21 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
22 | # DEALINGS IN THE SOFTWARE. #
23 | # #
24 | # Except as contained in this notice, the name(s) of the above copyright #
25 | # holders shall not be used in advertising or otherwise to promote the sale, #
26 | # use or other dealings in this Software without prior written #
27 | # authorization. #
28 | ##############################################################################
29 | #
30 | # Author: Thomas E. Dickey 1996
31 | #
32 | $(srcdir)/eti.h
33 | $(srcdir)/menu.h
34 | # vile:makemode
35 |
--------------------------------------------------------------------------------
/misc/cleantic.cmd:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998,2006 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /*
31 | * $Id: cleantic.cmd,v 1.5 2020/02/02 23:34:34 tom Exp $
32 | *
33 | * Author: Juan Jose Garcia Ripoll .
34 | * Webpage: http://www.arrakis.es/~worm/
35 | */
36 | parse arg dir
37 |
38 | pause
39 | dir = translate(dir,'\','/');
40 | letters = '0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z'
41 |
42 | if dir = '' then
43 | dir = '.'
44 | 'echo Cleaning 'dir
45 | 'for %%1 in ('letters') do @if not exist 'dir'\%%1\* (echo Cleaning ...\%%1 & rd %%1 2>NUL)'
46 |
--------------------------------------------------------------------------------
/misc/csort:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: csort,v 1.4 2021/09/04 15:55:29 tom Exp $
3 | ##############################################################################
4 | # Copyright 2020,2021 Thomas E. Dickey #
5 | # Copyright 2002 Free Software Foundation, Inc. #
6 | # #
7 | # Permission is hereby granted, free of charge, to any person obtaining a #
8 | # copy of this software and associated documentation files (the "Software"), #
9 | # to deal in the Software without restriction, including without limitation #
10 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
11 | # with modifications, sublicense, and/or sell copies of the Software, and to #
12 | # permit persons to whom the Software is furnished to do so, subject to the #
13 | # following conditions: #
14 | # #
15 | # The above copyright notice and this permission notice shall be included in #
16 | # all copies or substantial portions of the Software. #
17 | # #
18 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
19 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
20 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
21 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
22 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
23 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
24 | # DEALINGS IN THE SOFTWARE. #
25 | # #
26 | # Except as contained in this notice, the name(s) of the above copyright #
27 | # holders shall not be used in advertising or otherwise to promote the sale, #
28 | # use or other dealings in this Software without prior written #
29 | # authorization. #
30 | ##############################################################################
31 | #
32 | # override anything that might cause 'sort' to do the wrong thing...
33 | LANG=C; export LANG
34 | LANGUAGE=C; export LANGUAGE
35 | LC_ALL=C; export LC_ALL
36 | LC_CTYPE=C; export LC_CTYPE
37 | sort "$@"
38 |
--------------------------------------------------------------------------------
/misc/form.ref:
--------------------------------------------------------------------------------
1 | LIBRARY FORM2 INITINSTANCE
2 | DESCRIPTION 'NCurses 1.9.9e-1 for OS/2 - forms library'
3 | EXPORTS
4 | ;
5 | ; SHARED VARIABLES
6 | ;
7 | "TYPE_ALPHA" @1 ;NONAME
8 | "TYPE_ALNUM" @2 ;NONAME
9 | "TYPE_ENUM" @3 ;NONAME
10 | "TYPE_INTEGER" @4 ;NONAME
11 | "TYPE_NUMERIC" @5 ;NONAME
12 | "TYPE_REGEXP" @6 ;NONAME
13 |
14 | "_nc_Default_Form" @10 ;NONAME
15 | "_nc_Default_Field" @11 ;NONAME
16 |
17 | ;
18 | ; FIELD FUNCTIONS
19 | ;
20 | "new_fieldtype" @20 ;NONAME
21 | "link_fieldtype" @21 ;NONAME
22 |
23 | "free_fieldtype" @22 ;NONAME
24 | "set_fieldtype_arg" @23 ;NONAME
25 | "set_fieldtype_choice" @24 ;NONAME
26 |
27 | "new_field" @30 ;NONAME
28 | "dup_field" @31 ;NONAME
29 | "link_field" @32 ;NONAME
30 |
31 | "free_field" @33 ;NONAME
32 | "field_info" @34 ;NONAME
33 | "dynamic_field_info" @35 ;NONAME
34 | "set_max_field" @36 ;NONAME
35 | "move_field" @37 ;NONAME
36 | "set_field_type" @38 ;NONAME
37 | "set_new_page" @39 ;NONAME
38 | "set_field_just" @40 ;NONAME
39 | "field_just" @41 ;NONAME
40 | "set_field_fore" @42 ;NONAME
41 | "set_field_back" @43 ;NONAME
42 | "set_field_pad" @44 ;NONAME
43 | "field_pad" @45 ;NONAME
44 | "set_field_buffer" @46 ;NONAME
45 | "set_field_status" @47 ;NONAME
46 | "set_field_userptr" @48 ;NONAME
47 | "set_field_opts" @49 ;NONAME
48 | "field_opts_on" @50 ;NONAME
49 | "field_opts_off" @51 ;NONAME
50 |
51 | "field_fore" @52 ;NONAME
52 | "field_back" @53 ;NONAME
53 |
54 | "new_page" @54 ;NONAME
55 | "field_status" @55 ;NONAME
56 | "field_arg" @56 ;NONAME
57 | "field_userptr" @57 ;NONAME
58 | "field_type" @58 ;NONAME
59 | "field_buffer" @59 ;NONAME
60 | "field_opts" @60 ;NONAME
61 |
62 | ;
63 | ; FORM FUNCTIONS
64 | ;
65 | "new_form" @100 ;NONAME
66 |
67 | "form_fields" @101 ;NONAME
68 | "current_field" @102 ;NONAME
69 |
70 | "form_win" @103 ;NONAME
71 | "form_sub" @104 ;NONAME
72 |
73 | "form_init" @105 ;NONAME
74 | "form_term" @106 ;NONAME
75 | "field_init" @107 ;NONAME
76 | "field_term" @108 ;NONAME
77 |
78 | "free_form" @109 ;NONAME
79 | "set_form_fields" @110 ;NONAME
80 | "field_count" @111 ;NONAME
81 | "set_form_win" @112 ;NONAME
82 | "set_form_sub" @113 ;NONAME
83 | "set_current_field" @114 ;NONAME
84 | "field_index" @115 ;NONAME
85 | "set_form_page" @116 ;NONAME
86 | "form_page" @117 ;NONAME
87 | "scale_form" @118 ;NONAME
88 | "set_form_init" @119 ;NONAME
89 | "set_form_term" @120 ;NONAME
90 | "set_field_init" @121 ;NONAME
91 | "set_field_term" @122 ;NONAME
92 | "post_form" @123 ;NONAME
93 | "unpost_form" @124 ;NONAME
94 | "pos_form_cursor" @125 ;NONAME
95 | "form_driver" @126 ;NONAME
96 | "set_form_userptr" @127 ;NONAME
97 | "set_form_opts" @128 ;NONAME
98 | "form_opts_on" @129 ;NONAME
99 | "form_opts_off" @130 ;NONAME
100 |
101 | "form_userptr" @131 ;NONAME
102 |
103 | "form_opts" @132 ;NONAME
104 |
105 | "data_ahead" @133 ;NONAME
106 | "data_behind" @134 ;NONAME
107 |
--------------------------------------------------------------------------------
/misc/menu.def:
--------------------------------------------------------------------------------
1 | LIBRARY menu5 INITINSTANCE TERMINSTANCE
2 | DESCRIPTION "NCurses-5-1-20000704, module menu"
3 | CODE LOADONCALL
4 | DATA LOADONCALL NONSHARED MULTIPLE
5 | EXPORTS
6 | "_nc_Calculate_Item_Length_and_Width" @11 NONAME
7 | "_nc_Connect_Items" @38 NONAME
8 | "_nc_Default_Item" @63 NONAME
9 | "_nc_Default_Menu" @64 NONAME
10 | "_nc_Disconnect_Items" @65 NONAME
11 | "_nc_Draw_Menu" @66 NONAME
12 | "_nc_Link_Items" @67 NONAME
13 | "_nc_Match_Next_Character_In_Item_Name" @68 NONAME
14 | "_nc_New_TopRow_and_CurrentItem" @69 NONAME
15 | "_nc_Post_Item" @70 NONAME
16 | "_nc_Show_Menu" @71 NONAME
17 | "_nc_menu_cursor_pos" @72 NONAME
18 | "current_item" @2 NONAME
19 | "free_item" @23 NONAME
20 | "free_menu" @24 NONAME
21 | "item_count" @25 NONAME
22 | "item_description" @14 NONAME
23 | "item_index" @26 NONAME
24 | "item_init" @7 NONAME
25 | "item_name" @15 NONAME
26 | "item_opts" @5 NONAME
27 | "item_opts_off" @27 NONAME
28 | "item_opts_on" @28 NONAME
29 | "item_term" @8 NONAME
30 | "item_userptr" @18 NONAME
31 | "item_value" @60 NONAME
32 | "item_visible" @61 NONAME
33 | "menu_back" @20 NONAME
34 | "menu_driver" @29 NONAME
35 | "menu_fore" @21 NONAME
36 | "menu_format" @62 NONAME
37 | "menu_grey" @22 NONAME
38 | "menu_init" @9 NONAME
39 | "menu_items" @1 NONAME
40 | "menu_mark" @16 NONAME
41 | "menu_opts" @6 NONAME
42 | "menu_opts_off" @30 NONAME
43 | "menu_opts_on" @31 NONAME
44 | "menu_pad" @32 NONAME
45 | "menu_pattern" @17 NONAME
46 | "menu_request_by_name" @73 NONAME
47 | "menu_request_name" @74 NONAME
48 | "menu_spacing" @75 NONAME
49 | "menu_sub" @12 NONAME
50 | "menu_term" @10 NONAME
51 | "menu_userptr" @19 NONAME
52 | "menu_win" @13 NONAME
53 | "new_item" @3 NONAME
54 | "new_menu" @4 NONAME
55 | "pos_menu_cursor" @33 NONAME
56 | "post_menu" @34 NONAME
57 | "scale_menu" @35 NONAME
58 | "set_current_item" @36 NONAME
59 | "set_item_init" @37 NONAME
60 | "set_item_opts" @39 NONAME
61 | "set_item_term" @40 NONAME
62 | "set_item_userptr" @41 NONAME
63 | "set_item_value" @42 NONAME
64 | "set_menu_back" @43 NONAME
65 | "set_menu_fore" @44 NONAME
66 | "set_menu_format" @45 NONAME
67 | "set_menu_grey" @46 NONAME
68 | "set_menu_init" @47 NONAME
69 | "set_menu_items" @48 NONAME
70 | "set_menu_mark" @49 NONAME
71 | "set_menu_opts" @50 NONAME
72 | "set_menu_pad" @51 NONAME
73 | "set_menu_pattern" @52 NONAME
74 | "set_menu_spacing" @76 NONAME
75 | "set_menu_sub" @53 NONAME
76 | "set_menu_term" @54 NONAME
77 | "set_menu_userptr" @55 NONAME
78 | "set_menu_win" @56 NONAME
79 | "set_top_row" @57 NONAME
80 | "top_row" @58 NONAME
81 | "unpost_menu" @59 NONAME
82 |
--------------------------------------------------------------------------------
/misc/menu.ref:
--------------------------------------------------------------------------------
1 | LIBRARY MENU2 INITINSTANCE
2 | DESCRIPTION 'NCurses 1.9.9e-1 for OS/2 - menu library'
3 | EXPORTS
4 | "menu_items" @1 ;NONAME
5 | "current_item" @2 ;NONAME
6 | "new_item" @3 ;NONAME
7 |
8 | "new_menu" @4 ;NONAME
9 |
10 | "item_opts" @5 ;NONAME
11 | "menu_opts" @6 ;NONAME
12 |
13 | "item_init" @7 ;NONAME
14 | "item_term" @8 ;NONAME
15 | "menu_init" @9 ;NONAME
16 | "menu_term" @10 ;NONAME
17 |
18 | "menu_sub" @12 ;NONAME
19 | "menu_win" @13 ;NONAME
20 |
21 | "item_description" @14 ;NONAME
22 | "item_name" @15 ;NONAME
23 | "menu_mark" @16 ;NONAME
24 | "menu_pattern" @17 ;NONAME
25 |
26 | "item_userptr" @18 ;NONAME
27 | "menu_userptr" @19 ;NONAME
28 |
29 | "menu_back" @20 ;NONAME
30 | "menu_fore" @21 ;NONAME
31 | "menu_grey" @22 ;NONAME
32 |
33 | "free_item" @23 ;NONAME
34 | "free_menu" @24 ;NONAME
35 | "item_count" @25 ;NONAME
36 | "item_index" @26 ;NONAME
37 | "item_opts_off" @27 ;NONAME
38 | "item_opts_on" @28 ;NONAME
39 | "menu_driver" @29 ;NONAME
40 | "menu_opts_off" @30 ;NONAME
41 | "menu_opts_on" @31 ;NONAME
42 | "menu_pad" @32 ;NONAME
43 | "pos_menu_cursor" @33 ;NONAME
44 | "post_menu" @34 ;NONAME
45 | "scale_menu" @35 ;NONAME
46 | "set_current_item" @36 ;NONAME
47 | "set_item_init" @37 ;NONAME
48 | "set_item_opts" @39 ;NONAME
49 | "set_item_term" @40 ;NONAME
50 | "set_item_userptr" @41 ;NONAME
51 | "set_item_value" @42 ;NONAME
52 | "set_menu_back" @43 ;NONAME
53 | "set_menu_fore" @44 ;NONAME
54 | "set_menu_format" @45 ;NONAME
55 | "set_menu_grey" @46 ;NONAME
56 | "set_menu_init" @47 ;NONAME
57 | "set_menu_items" @48 ;NONAME
58 | "set_menu_mark" @49 ;NONAME
59 | "set_menu_opts" @50 ;NONAME
60 | "set_menu_pad" @51 ;NONAME
61 | "set_menu_pattern" @52 ;NONAME
62 | "set_menu_sub" @53 ;NONAME
63 | "set_menu_term" @54 ;NONAME
64 | "set_menu_userptr" @55 ;NONAME
65 | "set_menu_win" @56 ;NONAME
66 | "set_top_row" @57 ;NONAME
67 | "top_row" @58 ;NONAME
68 | "unpost_menu" @59 ;NONAME
69 |
70 | "item_value" @60 ;NONAME
71 | "item_visible" @61 ;NONAME
72 |
73 | "menu_format" @62 ;NONAME
74 |
--------------------------------------------------------------------------------
/misc/panel.def:
--------------------------------------------------------------------------------
1 | LIBRARY panel5 INITINSTANCE TERMINSTANCE
2 | DESCRIPTION "NCurses-5-1-20000704, module panel"
3 | CODE LOADONCALL
4 | DATA LOADONCALL NONSHARED MULTIPLE
5 | EXPORTS
6 | "bottom_panel" @7 NONAME
7 | "del_panel" @5 NONAME
8 | "hide_panel" @3 NONAME
9 | "move_panel" @13 NONAME
10 | "new_panel" @8 NONAME
11 | "panel_above" @9 NONAME
12 | "panel_below" @10 NONAME
13 | "panel_hidden" @15 NONAME
14 | "panel_userptr" @12 NONAME
15 | "panel_window" @1 NONAME
16 | "replace_panel" @14 NONAME
17 | "set_panel_userptr" @11 NONAME
18 | "show_panel" @4 NONAME
19 | "top_panel" @6 NONAME
20 | "update_panels" @2 NONAME
21 |
--------------------------------------------------------------------------------
/misc/panel.ref:
--------------------------------------------------------------------------------
1 | LIBRARY panel2 INITINSTANCE
2 | DESCRIPTION 'NCurses 1.9.9e-1 for OS/2 - panel library'
3 | EXPORTS
4 | "panel_window" @1
5 | "update_panels" @2
6 | "hide_panel" @3
7 | "show_panel" @4
8 | "del_panel" @5
9 | "top_panel" @6
10 | "bottom_panel" @7
11 | "new_panel" @8
12 | "panel_above" @9
13 | "panel_below" @10
14 | "set_panel_userptr" @11
15 | "panel_userptr" @12
16 | "move_panel" @13
17 | "replace_panel" @14
18 | "panel_hidden" @15
19 |
--------------------------------------------------------------------------------
/misc/tabset/std:
--------------------------------------------------------------------------------
1 |
3
1 1 1 1 1 1 1 1 1 1 1 1 1
2 |
--------------------------------------------------------------------------------
/misc/tabset/stdcrt:
--------------------------------------------------------------------------------
1 |
3
1 1 1 1 1 1 1 1 1
--------------------------------------------------------------------------------
/misc/tabset/vt100:
--------------------------------------------------------------------------------
1 |
2 | [3g
3 | H H H H H H H H H H H H H H H H
4 |
--------------------------------------------------------------------------------
/misc/tabset/vt300:
--------------------------------------------------------------------------------
1 |
2 | [3g
3 | P2$t9/17/25/33/41/49/57/65/73/81/89/97/105/113/121/129\
4 |
--------------------------------------------------------------------------------
/ncurses/base/README:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | -- Copyright 2020 Thomas E. Dickey --
3 | -- Copyright 1998,2006 Free Software Foundation, Inc. --
4 | -- --
5 | -- Permission is hereby granted, free of charge, to any person obtaining a --
6 | -- copy of this software and associated documentation files (the --
7 | -- "Software"), to deal in the Software without restriction, including --
8 | -- without limitation the rights to use, copy, modify, merge, publish, --
9 | -- distribute, distribute with modifications, sublicense, and/or sell copies --
10 | -- of the Software, and to permit persons to whom the Software is furnished --
11 | -- to do so, subject to the following conditions: --
12 | -- --
13 | -- The above copyright notice and this permission notice shall be included --
14 | -- in all copies or substantial portions of the Software. --
15 | -- --
16 | -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
17 | -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
18 | -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
19 | -- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
20 | -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
21 | -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
22 | -- USE OR OTHER DEALINGS IN THE SOFTWARE. --
23 | -- --
24 | -- Except as contained in this notice, the name(s) of the above copyright --
25 | -- holders shall not be used in advertising or otherwise to promote the --
26 | -- sale, use or other dealings in this Software without prior written --
27 | -- authorization. --
28 | -------------------------------------------------------------------------------
29 | -- $Id: README,v 1.3 2020/02/02 23:34:34 tom Exp $
30 | -------------------------------------------------------------------------------
31 |
32 | The functions in this directory are the generic (not device-specific) modules
33 | of ncurses.
34 |
35 | As a rule, these modules should not depend directly on term.h references and
36 | associated terminfo function and variables.
37 |
--------------------------------------------------------------------------------
/ncurses/base/lib_clear.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998-2000,2009 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Zeyd M. Ben-Halim 1992,1995 *
32 | * and: Eric S. Raymond *
33 | ****************************************************************************/
34 |
35 | /*
36 | ** lib_clear.c
37 | **
38 | ** The routine wclear().
39 | **
40 | */
41 |
42 | #include
43 |
44 | MODULE_ID("$Id: lib_clear.c,v 1.9 2020/02/02 23:34:34 tom Exp $")
45 |
46 | NCURSES_EXPORT(int)
47 | wclear(WINDOW *win)
48 | {
49 | int code = ERR;
50 |
51 | T((T_CALLED("wclear(%p)"), (void *) win));
52 |
53 | if ((code = werase(win)) != ERR)
54 | win->_clear = TRUE;
55 |
56 | returnCode(code);
57 | }
58 |
--------------------------------------------------------------------------------
/ncurses/base/lib_clearok.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998-2000,2009 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Zeyd M. Ben-Halim 1992,1995 *
32 | * and: Eric S. Raymond *
33 | ****************************************************************************/
34 |
35 | /*
36 | ** lib_clearok.c
37 | **
38 | ** The routine clearok.
39 | **
40 | */
41 |
42 | #include
43 |
44 | MODULE_ID("$Id: lib_clearok.c,v 1.6 2020/02/02 23:34:34 tom Exp $")
45 |
46 | NCURSES_EXPORT(int)
47 | clearok(WINDOW *win, bool flag)
48 | {
49 | T((T_CALLED("clearok(%p,%d)"), (void *) win, flag));
50 |
51 | if (win) {
52 | win->_clear = flag;
53 | returnCode(OK);
54 | } else
55 | returnCode(ERR);
56 | }
57 |
--------------------------------------------------------------------------------
/ncurses/base/lib_immedok.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998-2000,2009 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Zeyd M. Ben-Halim 1992,1995 *
32 | * and: Eric S. Raymond *
33 | ****************************************************************************/
34 |
35 | /*
36 | ** lib_immedok.c
37 | **
38 | ** The routine immedok.
39 | **
40 | */
41 |
42 | #include
43 |
44 | MODULE_ID("$Id: lib_immedok.c,v 1.6 2020/02/02 23:34:34 tom Exp $")
45 |
46 | NCURSES_EXPORT(void)
47 | immedok(WINDOW *win, bool flag)
48 | {
49 | T((T_CALLED("immedok(%p,%d)"), (void *) win, flag));
50 |
51 | if (win)
52 | win->_immed = flag;
53 |
54 | returnVoid;
55 | }
56 |
--------------------------------------------------------------------------------
/ncurses/base/lib_leaveok.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998-2000,2009 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Zeyd M. Ben-Halim 1992,1995 *
32 | * and: Eric S. Raymond *
33 | ****************************************************************************/
34 |
35 | /*
36 | ** lib_leaveok.c
37 | **
38 | ** The routine leaveok.
39 | **
40 | */
41 |
42 | #include
43 |
44 | MODULE_ID("$Id: lib_leaveok.c,v 1.7 2020/02/02 23:34:34 tom Exp $")
45 |
46 | NCURSES_EXPORT(int)
47 | leaveok(WINDOW *win, bool flag)
48 | {
49 | T((T_CALLED("leaveok(%p,%d)"), (void *) win, flag));
50 |
51 | if (win) {
52 | win->_leaveok = flag;
53 | returnCode(OK);
54 | } else
55 | returnCode(ERR);
56 | }
57 |
--------------------------------------------------------------------------------
/ncurses/base/lib_scrollok.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998-2000,2009 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Zeyd M. Ben-Halim 1992,1995 *
32 | * and: Eric S. Raymond *
33 | ****************************************************************************/
34 |
35 | /*
36 | ** lib_scrollok.c
37 | **
38 | ** The routine scrollok.
39 | **
40 | */
41 |
42 | #include
43 |
44 | MODULE_ID("$Id: lib_scrollok.c,v 1.6 2020/02/02 23:34:34 tom Exp $")
45 |
46 | NCURSES_EXPORT(int)
47 | scrollok(WINDOW *win, bool flag)
48 | {
49 | T((T_CALLED("scrollok(%p,%d)"), (void *) win, flag));
50 |
51 | if (win) {
52 | win->_scroll = flag;
53 | returnCode(OK);
54 | } else
55 | returnCode(ERR);
56 | }
57 |
--------------------------------------------------------------------------------
/ncurses/base/lib_winch.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998-2009,2010 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Thomas E. Dickey 1998 *
32 | ****************************************************************************/
33 |
34 | /*
35 | ** lib_winch.c
36 | **
37 | ** The routine winch().
38 | **
39 | */
40 |
41 | #include
42 |
43 | MODULE_ID("$Id: lib_winch.c,v 1.9 2020/02/02 23:34:34 tom Exp $")
44 |
45 | NCURSES_EXPORT(chtype)
46 | winch(WINDOW *win)
47 | {
48 | T((T_CALLED("winch(%p)"), (void *) win));
49 | if (win != 0) {
50 | returnChtype((chtype) CharOf(win->_line[win->_cury].text[win->_curx])
51 | | AttrOf(win->_line[win->_cury].text[win->_curx]));
52 | } else {
53 | returnChtype(0);
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/ncurses/base/nc_panel.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998-2000,2009 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Thomas E. Dickey 1997 *
32 | ****************************************************************************/
33 |
34 | #include
35 |
36 | MODULE_ID("$Id: nc_panel.c,v 1.6 2020/02/02 23:34:34 tom Exp $")
37 |
38 | NCURSES_EXPORT(struct panelhook *)
39 | NCURSES_SP_NAME(_nc_panelhook) (NCURSES_SP_DCL0)
40 | {
41 | return (SP_PARM
42 | ? &(SP_PARM->_panelHook)
43 | : (CURRENT_SCREEN
44 | ? &(CURRENT_SCREEN->_panelHook)
45 | : 0));
46 | }
47 |
48 | #if NCURSES_SP_FUNCS
49 | NCURSES_EXPORT(struct panelhook *)
50 | _nc_panelhook(void)
51 | {
52 | return NCURSES_SP_NAME(_nc_panelhook) (CURRENT_SCREEN);
53 | }
54 | #endif
55 |
--------------------------------------------------------------------------------
/ncurses/base/use_window.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2018,2020 Thomas E. Dickey *
3 | * Copyright 2007-2009,2016 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Thomas E. Dickey 2007 *
32 | ****************************************************************************/
33 |
34 | #include
35 |
36 | MODULE_ID("$Id: use_window.c,v 1.13 2020/02/02 23:34:34 tom Exp $")
37 |
38 | NCURSES_EXPORT(int)
39 | use_window(WINDOW *win, NCURSES_WINDOW_CB func, void *data)
40 | {
41 | int code = OK;
42 | TR_FUNC_BFR(1);
43 |
44 | T((T_CALLED("use_window(%p,%s,%p)"),
45 | (void *) win,
46 | TR_FUNC_ARG(0, func),
47 | data));
48 |
49 | _nc_lock_global(curses);
50 | code = func(win, data);
51 | _nc_unlock_global(curses);
52 |
53 | returnCode(code);
54 | }
55 |
--------------------------------------------------------------------------------
/ncurses/base/version.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1999-2004,2005 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Thomas E. Dickey 1999 *
32 | ****************************************************************************/
33 |
34 | #include
35 |
36 | MODULE_ID("$Id: version.c,v 1.7 2020/02/02 23:34:34 tom Exp $")
37 |
38 | NCURSES_EXPORT(const char *)
39 | curses_version(void)
40 | {
41 | T((T_CALLED("curses_version()")));
42 | returnCPtr("ncurses " NCURSES_VERSION_STRING);
43 | }
44 |
--------------------------------------------------------------------------------
/ncurses/tinfo/MKkeys_list.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: MKkeys_list.sh,v 1.8 2022/02/05 20:40:20 tom Exp $
3 | ##############################################################################
4 | # Copyright 2019-2020,2022 Thomas E. Dickey #
5 | # Copyright 2001-2003,2017 Free Software Foundation, Inc. #
6 | # #
7 | # Permission is hereby granted, free of charge, to any person obtaining a #
8 | # copy of this software and associated documentation files (the "Software"), #
9 | # to deal in the Software without restriction, including without limitation #
10 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
11 | # with modifications, sublicense, and/or sell copies of the Software, and to #
12 | # permit persons to whom the Software is furnished to do so, subject to the #
13 | # following conditions: #
14 | # #
15 | # The above copyright notice and this permission notice shall be included in #
16 | # all copies or substantial portions of the Software. #
17 | # #
18 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
19 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
20 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
21 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
22 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
23 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
24 | # DEALINGS IN THE SOFTWARE. #
25 | # #
26 | # Except as contained in this notice, the name(s) of the above copyright #
27 | # holders shall not be used in advertising or otherwise to promote the sale, #
28 | # use or other dealings in this Software without prior written #
29 | # authorization. #
30 | ##############################################################################
31 | #
32 | # MKkey_defs.sh -- generate list of function-keys for terminfo database
33 | #
34 | # Author: Thomas E. Dickey 2001
35 | #
36 | # Extract function-key names from the Caps file
37 | #
38 | : ${AWK-awk}
39 | if test $# != 0
40 | then
41 | DATA="$*"
42 | else
43 | DATA=../../include/Caps
44 | fi
45 |
46 | data=data$$
47 | trap 'rm -f $data; exit 1' 1 2 3 15
48 | trap 'rm -f $data' 0
49 | cat $DATA | sed -e 's/[ ][ ]*/ /g' >$data
50 |
51 | cat <
31 |
32 | MODULE_ID("$Id: lib_termname.c,v 1.13 2020/02/02 23:34:34 tom Exp $")
33 |
34 | NCURSES_EXPORT(char *)
35 | NCURSES_SP_NAME(termname) (NCURSES_SP_DCL0)
36 | {
37 | char *name = 0;
38 |
39 | T((T_CALLED("termname(%p)"), (void *) SP_PARM));
40 |
41 | #if NCURSES_SP_FUNCS
42 | if (TerminalOf(SP_PARM) != 0) {
43 | name = TerminalOf(SP_PARM)->_termname;
44 | }
45 | #else
46 | if (cur_term != 0)
47 | name = cur_term->_termname;
48 | #endif
49 |
50 | returnPtr(name);
51 | }
52 |
53 | #if NCURSES_SP_FUNCS
54 | NCURSES_EXPORT(char *)
55 | termname(void)
56 | {
57 | return NCURSES_SP_NAME(termname) (CURRENT_SCREEN);
58 | }
59 | #endif
60 |
--------------------------------------------------------------------------------
/ncurses/trace/README:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | -- Copyright 2020 Thomas E. Dickey --
3 | -- Copyright 1998,2006 Free Software Foundation, Inc. --
4 | -- --
5 | -- Permission is hereby granted, free of charge, to any person obtaining a --
6 | -- copy of this software and associated documentation files (the --
7 | -- "Software"), to deal in the Software without restriction, including --
8 | -- without limitation the rights to use, copy, modify, merge, publish, --
9 | -- distribute, distribute with modifications, sublicense, and/or sell copies --
10 | -- of the Software, and to permit persons to whom the Software is furnished --
11 | -- to do so, subject to the following conditions: --
12 | -- --
13 | -- The above copyright notice and this permission notice shall be included --
14 | -- in all copies or substantial portions of the Software. --
15 | -- --
16 | -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
17 | -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
18 | -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
19 | -- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
20 | -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
21 | -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
22 | -- USE OR OTHER DEALINGS IN THE SOFTWARE. --
23 | -- --
24 | -- Except as contained in this notice, the name(s) of the above copyright --
25 | -- holders shall not be used in advertising or otherwise to promote the --
26 | -- sale, use or other dealings in this Software without prior written --
27 | -- authorization. --
28 | -------------------------------------------------------------------------------
29 | -- $Id: README,v 1.3 2020/02/02 23:34:34 tom Exp $
30 | -------------------------------------------------------------------------------
31 |
32 | The files in this directory (trace) support both the terminfo and ncurses
33 | libraries. Most of the functions are linked in only when the libraries
34 | are compiled with TRACE defined.
35 |
--------------------------------------------------------------------------------
/ncurses/widechar/lib_key_name.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 2007-2008,2017 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /*
31 | ** lib_key_name.c
32 | **
33 | ** The routine key_name().
34 | **
35 | */
36 |
37 | #include
38 |
39 | MODULE_ID("$Id: lib_key_name.c,v 1.5 2020/02/02 23:34:34 tom Exp $")
40 |
41 | #define MyData _nc_globals.key_name
42 |
43 | NCURSES_EXPORT(NCURSES_CONST char *)
44 | key_name(wchar_t c)
45 | {
46 | cchar_t my_cchar;
47 | wchar_t *my_wchars;
48 | size_t len;
49 |
50 | memset(&my_cchar, 0, sizeof(my_cchar));
51 | my_cchar.chars[0] = c;
52 | my_cchar.chars[1] = L'\0';
53 |
54 | my_wchars = wunctrl(&my_cchar);
55 | len = wcstombs(MyData, my_wchars, sizeof(MyData) - 1);
56 | if (isEILSEQ(len) || (len == 0)) {
57 | return 0;
58 | }
59 |
60 | MyData[len] = '\0';
61 | return MyData;
62 | }
63 |
--------------------------------------------------------------------------------
/ncurses/widechar/lib_pecho_wchar.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020,2021 Thomas E. Dickey *
3 | * Copyright 2004,2009 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Thomas E. Dickey *
32 | ****************************************************************************/
33 |
34 | #include
35 |
36 | MODULE_ID("$Id: lib_pecho_wchar.c,v 1.4 2021/10/23 17:07:56 tom Exp $")
37 |
38 | NCURSES_EXPORT(int)
39 | pecho_wchar(WINDOW *pad, const cchar_t *wch)
40 | {
41 | T((T_CALLED("pecho_wchar(%p, %s)"), (void *) pad, _tracech_t(wch)));
42 |
43 | if (pad == 0)
44 | returnCode(ERR);
45 |
46 | if (!IS_PAD(pad))
47 | returnCode(wecho_wchar(pad, wch));
48 |
49 | wadd_wch(pad, wch);
50 | prefresh(pad, pad->_pad._pad_y,
51 | pad->_pad._pad_x,
52 | pad->_pad._pad_top,
53 | pad->_pad._pad_left,
54 | pad->_pad._pad_bottom,
55 | pad->_pad._pad_right);
56 |
57 | returnCode(OK);
58 | }
59 |
--------------------------------------------------------------------------------
/ncurses/win32con/gettimeofday.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020,2023 Thomas E. Dickey *
3 | * Copyright 2008-2010,2014 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | #ifdef WINVER
31 | # undef WINVER
32 | #endif
33 | #define WINVER 0x0501
34 |
35 | #include
36 |
37 | #include
38 |
39 | MODULE_ID("$Id: gettimeofday.c,v 1.7 2023/02/25 20:05:36 tom Exp $")
40 |
41 | #if HAVE_GETTIMEOFDAY == 2
42 | #define JAN1970 116444736000000000LL /* the value for 01/01/1970 00:00 */
43 |
44 | NCURSES_EXPORT(int)
45 | gettimeofday(struct timeval *tv, void *tz GCC_UNUSED)
46 | {
47 | union {
48 | FILETIME ft;
49 | long long since1601; /* time since 1 Jan 1601 in 100ns units */
50 | } data;
51 |
52 | GetSystemTimeAsFileTime(&data.ft);
53 | tv->tv_usec = (long) ((data.since1601 / 10LL) % 1000000LL);
54 | tv->tv_sec = (long) ((data.since1601 - JAN1970) / 10000000LL);
55 | return (0);
56 | }
57 | #endif // HAVE_GETTIMEOFDAY == 2
58 |
--------------------------------------------------------------------------------
/ncurses/win32con/wcwidth.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 2010 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 | #include
30 |
31 | MODULE_ID("$Id: wcwidth.c,v 1.4 2020/07/11 21:02:10 tom Exp $")
32 |
33 | #if USE_WIDEC_SUPPORT
34 | #define mk_wcwidth(ucs) _nc_wcwidth(ucs)
35 | #define mk_wcswidth(pwcs, n) _nc_wcswidth(pwcs, n)
36 | #define mk_wcwidth_cjk(ucs) _nc_wcwidth_cjk(ucs)
37 | #define mk_wcswidth_cjk(pwcs, n) _nc_wcswidth_cjk(pwcs, n)
38 |
39 | NCURSES_EXPORT(int) mk_wcwidth(wchar_t);
40 | NCURSES_EXPORT(int) mk_wcswidth(const wchar_t *, size_t);
41 | NCURSES_EXPORT(int) mk_wcwidth_cjk(wchar_t);
42 | NCURSES_EXPORT(int) mk_wcswidth_cjk(const wchar_t *, size_t);
43 |
44 | #include
45 | #else
46 | void _nc_empty_wcwidth(void);
47 | void
48 | _nc_empty_wcwidth(void)
49 | {
50 | }
51 | #endif
52 |
--------------------------------------------------------------------------------
/package/debian-mingw/changelog:
--------------------------------------------------------------------------------
1 | ncurses6 (6.4+20230311) unstable; urgency=low
2 |
3 | * latest weekly patch
4 |
5 | -- Thomas E. Dickey Sun, 05 Mar 2023 13:16:04 -0500
6 |
7 | ncurses6 (5.9+20131005) unstable; urgency=low
8 |
9 | * initial release
10 |
11 | -- Thomas E. Dickey Sat, 05 Oct 2013 13:35:29 -0400
12 |
--------------------------------------------------------------------------------
/package/debian-mingw/compat:
--------------------------------------------------------------------------------
1 | 12
2 |
--------------------------------------------------------------------------------
/package/debian-mingw/control:
--------------------------------------------------------------------------------
1 | Source: ncurses6
2 | Section: libdevel
3 | Priority: optional
4 | Maintainer: Thomas E. Dickey
5 | Homepage: https://invisible-island.net/ncurses/
6 | Build-Depends: debhelper (>= 7),
7 | gcc-mingw-w64-i686,
8 | g++-mingw-w64-i686,
9 | binutils-mingw-w64-i686
10 | Standards-Version: 4.6.1.0
11 |
12 | Package: mingw32-ncurses6
13 | Architecture: any
14 | Depends: ${misc:Depends}
15 | Description: shared libraries for terminal handling
16 | The ncurses library routines are a terminal-independent method of
17 | updating character screens with reasonable optimization.
18 | .
19 | This package is used for testing ABI 6 with the MinGW 32-bit port.
20 |
--------------------------------------------------------------------------------
/package/debian-mingw/mingw32-ncurses6.lintian-overrides:
--------------------------------------------------------------------------------
1 | mingw32-ncurses6: latest-debian-changelog-entry-changed-to-native
2 |
3 | mingw32-ncurses6: non-standard-dir-in-usr
4 | mingw32-ncurses6: file-in-unusual-dir
5 |
6 | mingw32-ncurses6: binary-without-manpage
7 | mingw32-ncurses6: executable-not-elf-or-script
8 |
--------------------------------------------------------------------------------
/package/debian-mingw/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (native)
2 |
--------------------------------------------------------------------------------
/package/debian-mingw/watch:
--------------------------------------------------------------------------------
1 | version=3
2 |
3 | opts=passive ftp://ftp.invisible-island.net/ncurses/current/ncurses\.tar.gz \
4 | debian uupdate
5 |
--------------------------------------------------------------------------------
/package/debian-mingw64/changelog:
--------------------------------------------------------------------------------
1 | ncurses6 (6.4+20230311) unstable; urgency=low
2 |
3 | * latest weekly patch
4 |
5 | -- Thomas E. Dickey Sun, 05 Mar 2023 13:16:04 -0500
6 |
7 | ncurses6 (5.9+20131005) unstable; urgency=low
8 |
9 | * initial release
10 |
11 | -- Thomas E. Dickey Sat, 05 Oct 2013 13:35:29 -0400
12 |
--------------------------------------------------------------------------------
/package/debian-mingw64/compat:
--------------------------------------------------------------------------------
1 | 12
2 |
--------------------------------------------------------------------------------
/package/debian-mingw64/control:
--------------------------------------------------------------------------------
1 | Source: ncurses6
2 | Section: libdevel
3 | Priority: optional
4 | Maintainer: Thomas E. Dickey
5 | Homepage: https://invisible-island.net/ncurses/
6 | Build-Depends: debhelper (>= 7),
7 | gcc-mingw-w64-x86-64,
8 | g++-mingw-w64-x86-64,
9 | binutils-mingw-w64-x86-64
10 | Standards-Version: 4.6.1.0
11 |
12 | Package: mingw64-ncurses6
13 | Architecture: any
14 | Depends: ${misc:Depends}
15 | Description: shared libraries for terminal handling
16 | The ncurses library routines are a terminal-independent method of
17 | updating character screens with reasonable optimization.
18 | .
19 | This package is used for testing ABI 6 with the MinGW 64-bit port.
20 |
--------------------------------------------------------------------------------
/package/debian-mingw64/mingw64-ncurses6.lintian-overrides:
--------------------------------------------------------------------------------
1 | mingw64-ncurses6: latest-debian-changelog-entry-changed-to-native
2 |
3 | mingw64-ncurses6: non-standard-dir-in-usr
4 | mingw64-ncurses6: file-in-unusual-dir
5 |
6 | mingw64-ncurses6: binary-without-manpage
7 | mingw64-ncurses6: executable-not-elf-or-script
8 |
--------------------------------------------------------------------------------
/package/debian-mingw64/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (native)
2 |
--------------------------------------------------------------------------------
/package/debian-mingw64/watch:
--------------------------------------------------------------------------------
1 | version=3
2 |
3 | opts=passive ftp://ftp.invisible-island.net/ncurses/current/ncurses\.tar.gz \
4 | debian uupdate
5 |
--------------------------------------------------------------------------------
/package/debian/changelog:
--------------------------------------------------------------------------------
1 | ncurses6 (6.4+20230311) unstable; urgency=low
2 |
3 | * latest weekly patch
4 |
5 | -- Thomas E. Dickey Sun, 05 Mar 2023 13:16:04 -0500
6 |
7 | ncurses6 (5.9+20120608) unstable; urgency=low
8 |
9 | * initial release
10 |
11 | -- Thomas E. Dickey Fri, 08 Jun 2012 07:54:29 -0400
12 |
--------------------------------------------------------------------------------
/package/debian/compat:
--------------------------------------------------------------------------------
1 | 12
2 |
--------------------------------------------------------------------------------
/package/debian/control:
--------------------------------------------------------------------------------
1 | Source: ncurses6
2 | Section: libdevel
3 | Priority: optional
4 | Maintainer: Thomas E. Dickey
5 | Homepage: https://invisible-island.net/ncurses/
6 | Build-Depends: debhelper (>= 8.1.3)
7 | Standards-Version: 4.6.1.0
8 |
9 | Package: ncurses6
10 | Architecture: any
11 | Depends: ${misc:Depends}, libc6 (>= 2.4)
12 | Description: shared libraries for terminal handling
13 | The ncurses library routines are a terminal-independent method of
14 | updating character screens with reasonable optimization.
15 | .
16 | This package is used for testing ABI 6.
17 |
18 | Package: ncursest6
19 | Architecture: any
20 | Depends: ${misc:Depends}, libc6 (>= 2.4)
21 | Description: shared libraries for terminal handling
22 | The ncurses library routines are a terminal-independent method of
23 | updating character screens with reasonable optimization.
24 | .
25 | This package is used for testing ABI 6 with pthreads.
26 |
27 | Package: ncurses6-doc
28 | Section: doc
29 | Architecture: all
30 | Depends: groff-base
31 | Description: shared libraries for terminal handling
32 | The ncurses library routines are a terminal-independent method of
33 | updating character screens with reasonable optimization.
34 | .
35 | This package is used for testing ncurses6 document packaging.
36 |
37 | Package: ncurses6-doc-html
38 | Section: doc
39 | Architecture: all
40 | Description: shared libraries for terminal handling
41 | The ncurses library routines are a terminal-independent method of
42 | updating character screens with reasonable optimization.
43 | .
44 | This package is used for testing ncurses6 document packaging.
45 |
--------------------------------------------------------------------------------
/package/debian/ncurses6.lintian-overrides:
--------------------------------------------------------------------------------
1 | # This is intentional.
2 | ncurses6: package-name-doesnt-match-sonames libformw6-6 libmenuw6-6 libncurses++w6-6 libncursesw6-6 libpanelw6-6 libticw6-6 libtinfow6-6
3 |
4 | # This worked around a bug in Debian's build-scripts.
5 | #ncurses6: latest-debian-changelog-entry-changed-to-native
6 |
7 | ncurses6: hardening-no-fortify-functions usr/lib/libncurses++w6.so.6.1
8 | #ncurses6: hardening-no-fortify-functions usr/lib/libformw6.so.6.1
9 | ncurses6: hardening-no-fortify-functions usr/lib/libmenuw6.so.6.1
10 |
11 | # This is intentional.
12 | ncurses6: binary-without-manpage
13 | ncurses6: non-dev-pkg-with-shlib-symlink
14 | ncurses6: embedded-library ncurses usr/lib/libtinfow6.so.6.1
15 | #ncurses6: postinst-must-call-ldconfig usr/lib/libtinfow6.so.6.1
16 |
17 | # vile: confmode
18 |
--------------------------------------------------------------------------------
/package/debian/ncurses6.triggers:
--------------------------------------------------------------------------------
1 | activate-noawait ldconfig
2 |
--------------------------------------------------------------------------------
/package/debian/ncursest6.lintian-overrides:
--------------------------------------------------------------------------------
1 | # This is intentional.
2 | ncursest6: package-name-doesnt-match-sonames libformtw6-6 libmenutw6-6 libncurses++tw6-6 libncursestw6-6 libpaneltw6-6 libtictw6-6 libtinfotw6-6
3 |
4 | # This worked around a bug in Debian's build-scripts.
5 | #ncursest6: latest-debian-changelog-entry-changed-to-native
6 |
7 | ncursest6: hardening-no-fortify-functions usr/lib/libncurses++tw6.so.6.1
8 | #ncursest6: hardening-no-fortify-functions usr/lib/libformtw6.so.6.1
9 | ncursest6: hardening-no-fortify-functions usr/lib/libmenutw6.so.6.1
10 |
11 | # This is intentional.
12 | ncursest6: binary-without-manpage
13 | ncursest6: non-dev-pkg-with-shlib-symlink
14 | ncursest6: embedded-library ncurses usr/lib/libtinfotw6.so.6.1
15 | #ncursest6: postinst-must-call-ldconfig usr/lib/libtinfotw6.so.6.1
16 |
17 | # vile: confmode
18 |
--------------------------------------------------------------------------------
/package/debian/ncursest6.triggers:
--------------------------------------------------------------------------------
1 | activate-noawait ldconfig
2 |
--------------------------------------------------------------------------------
/package/debian/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (native)
2 |
--------------------------------------------------------------------------------
/package/debian/watch:
--------------------------------------------------------------------------------
1 | version=3
2 |
3 | opts=passive ftp://ftp.invisible-island.net/ncurses/current/ncurses\.tar.gz \
4 | debian uupdate
5 |
--------------------------------------------------------------------------------
/panel/headers:
--------------------------------------------------------------------------------
1 | ##############################################################################
2 | # Copyright 2020 Thomas E. Dickey #
3 | # Copyright 1998,2006 Free Software Foundation, Inc. #
4 | # #
5 | # Permission is hereby granted, free of charge, to any person obtaining a #
6 | # copy of this software and associated documentation files (the "Software"), #
7 | # to deal in the Software without restriction, including without limitation #
8 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
9 | # with modifications, sublicense, and/or sell copies of the Software, and to #
10 | # permit persons to whom the Software is furnished to do so, subject to the #
11 | # following conditions: #
12 | # #
13 | # The above copyright notice and this permission notice shall be included in #
14 | # all copies or substantial portions of the Software. #
15 | # #
16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
17 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
19 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
20 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
21 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
22 | # DEALINGS IN THE SOFTWARE. #
23 | # #
24 | # Except as contained in this notice, the name(s) of the above copyright #
25 | # holders shall not be used in advertising or otherwise to promote the sale, #
26 | # use or other dealings in this Software without prior written #
27 | # authorization. #
28 | ##############################################################################
29 | #
30 | # Author: Thomas E. Dickey 1996
31 | #
32 | $(srcdir)/panel.h
33 | # vile:makemode
34 |
--------------------------------------------------------------------------------
/panel/modules:
--------------------------------------------------------------------------------
1 | # $Id: modules,v 1.11 2020/02/02 23:34:34 tom Exp $
2 | ##############################################################################
3 | # Copyright 2020 Thomas E. Dickey #
4 | # Copyright 1998-2006,2010 Free Software Foundation, Inc. #
5 | # #
6 | # Permission is hereby granted, free of charge, to any person obtaining a #
7 | # copy of this software and associated documentation files (the "Software"), #
8 | # to deal in the Software without restriction, including without limitation #
9 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
10 | # with modifications, sublicense, and/or sell copies of the Software, and to #
11 | # permit persons to whom the Software is furnished to do so, subject to the #
12 | # following conditions: #
13 | # #
14 | # The above copyright notice and this permission notice shall be included in #
15 | # all copies or substantial portions of the Software. #
16 | # #
17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
20 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
22 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
23 | # DEALINGS IN THE SOFTWARE. #
24 | # #
25 | # Except as contained in this notice, the name(s) of the above copyright #
26 | # holders shall not be used in advertising or otherwise to promote the sale, #
27 | # use or other dealings in this Software without prior written #
28 | # authorization. #
29 | ##############################################################################
30 | #
31 | # Author: Thomas E. Dickey 1995-on
32 | #
33 |
34 | @ base
35 | # Library objects
36 | panel lib $(srcdir) $(HEADER_DEPS)
37 | p_above lib $(srcdir) $(HEADER_DEPS)
38 | p_below lib $(srcdir) $(HEADER_DEPS)
39 | p_bottom lib $(srcdir) $(HEADER_DEPS)
40 | p_delete lib $(srcdir) $(HEADER_DEPS)
41 | p_hide lib $(srcdir) $(HEADER_DEPS)
42 | p_hidden lib $(srcdir) $(HEADER_DEPS)
43 | p_move lib $(srcdir) $(HEADER_DEPS)
44 | p_new lib $(srcdir) $(HEADER_DEPS)
45 | p_replace lib $(srcdir) $(HEADER_DEPS)
46 | p_show lib $(srcdir) $(HEADER_DEPS)
47 | p_top lib $(srcdir) $(HEADER_DEPS)
48 | p_update lib $(srcdir) $(HEADER_DEPS)
49 | p_user lib $(srcdir) $(HEADER_DEPS)
50 | p_win lib $(srcdir) $(HEADER_DEPS)
51 |
52 | # vile:makemode
53 |
--------------------------------------------------------------------------------
/panel/p_hidden.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998-2009,2010 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Zeyd M. Ben-Halim 1995 *
32 | * and: Eric S. Raymond *
33 | * and: Juergen Pfeifer 1997-1999,2008 *
34 | ****************************************************************************/
35 |
36 | /* p_hidden.c
37 | * Test whether or not panel is hidden
38 | */
39 | #include "panel.priv.h"
40 |
41 | MODULE_ID("$Id: p_hidden.c,v 1.11 2020/05/24 01:40:20 anonymous.maarten Exp $")
42 |
43 | PANEL_EXPORT(int)
44 | panel_hidden(const PANEL * pan)
45 | {
46 | int rc = ERR;
47 |
48 | T((T_CALLED("panel_hidden(%p)"), (const void *)pan));
49 | if (pan)
50 | {
51 | GetHook(pan);
52 | rc = (IS_LINKED(pan) ? FALSE : TRUE);
53 | }
54 | returnCode(rc);
55 | }
56 |
--------------------------------------------------------------------------------
/panel/p_top.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998-2005,2010 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Zeyd M. Ben-Halim 1995 *
32 | * and: Eric S. Raymond *
33 | ****************************************************************************/
34 |
35 | /* p_top.c
36 | * Place a panel on top of the stack.
37 | */
38 | #include "panel.priv.h"
39 |
40 | MODULE_ID("$Id: p_top.c,v 1.8 2020/05/24 01:40:20 anonymous.maarten Exp $")
41 |
42 | PANEL_EXPORT(int)
43 | top_panel(PANEL * pan)
44 | {
45 | T((T_CALLED("top_panel(%p)"), (void *)pan));
46 | returnCode(show_panel(pan));
47 | }
48 |
--------------------------------------------------------------------------------
/panel/p_win.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 1998-2005,2010 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Zeyd M. Ben-Halim 1995 *
32 | * and: Eric S. Raymond *
33 | ****************************************************************************/
34 |
35 | /* p_win.c
36 | * Return a panels window.
37 | */
38 | #include "panel.priv.h"
39 |
40 | MODULE_ID("$Id: p_win.c,v 1.8 2020/05/24 01:40:20 anonymous.maarten Exp $")
41 |
42 | PANEL_EXPORT(WINDOW *)
43 | panel_window(const PANEL * pan)
44 | {
45 | T((T_CALLED("panel_window(%p)"), (const void *)pan));
46 | returnWin(pan ? pan->win : (WINDOW *)0);
47 | }
48 |
--------------------------------------------------------------------------------
/progs/clear.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ##############################################################################
3 | # Copyright 2020 Thomas E. Dickey #
4 | # Copyright 1998,2006 Free Software Foundation, Inc. #
5 | # #
6 | # Permission is hereby granted, free of charge, to any person obtaining a #
7 | # copy of this software and associated documentation files (the "Software"), #
8 | # to deal in the Software without restriction, including without limitation #
9 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
10 | # with modifications, sublicense, and/or sell copies of the Software, and to #
11 | # permit persons to whom the Software is furnished to do so, subject to the #
12 | # following conditions: #
13 | # #
14 | # The above copyright notice and this permission notice shall be included in #
15 | # all copies or substantial portions of the Software. #
16 | # #
17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
20 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
22 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
23 | # DEALINGS IN THE SOFTWARE. #
24 | # #
25 | # Except as contained in this notice, the name(s) of the above copyright #
26 | # holders shall not be used in advertising or otherwise to promote the sale, #
27 | # use or other dealings in this Software without prior written #
28 | # authorization. #
29 | ##############################################################################
30 | exec tput clear
31 |
--------------------------------------------------------------------------------
/progs/clear_cmd.c:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2018,2020 Thomas E. Dickey *
3 | * Copyright 2016,2017 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Thomas E. Dickey *
32 | ****************************************************************************/
33 |
34 | /*
35 | * clear.c -- clears the terminal's screen
36 | */
37 |
38 | #define USE_LIBTINFO
39 | #include
40 |
41 | MODULE_ID("$Id: clear_cmd.c,v 1.5 2020/02/02 23:34:34 tom Exp $")
42 |
43 | static int
44 | putch(int c)
45 | {
46 | return putchar(c);
47 | }
48 |
49 | int
50 | clear_cmd(bool legacy)
51 | {
52 | int retval = tputs(clear_screen, lines > 0 ? lines : 1, putch);
53 | if (!legacy) {
54 | /* Clear the scrollback buffer if possible. */
55 | char *E3 = tigetstr("E3");
56 | if (E3)
57 | (void) tputs(E3, lines > 0 ? lines : 1, putch);
58 | }
59 | return retval;
60 | }
61 |
--------------------------------------------------------------------------------
/progs/clear_cmd.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 2016,2017 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Thomas E. Dickey *
32 | ****************************************************************************/
33 |
34 | /*
35 | * $Id: clear_cmd.h,v 1.3 2020/02/02 23:34:34 tom Exp $
36 | *
37 | * Utility functions for clearing terminal.
38 | */
39 | #ifndef CLEAR_CMD_H
40 | #define CLEAR_CMD_H 1
41 |
42 | #include
43 | extern int clear_cmd(bool);
44 |
45 | #endif /* CLEAR_CMD_H */
46 |
--------------------------------------------------------------------------------
/progs/tparm_type.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 2014 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Thomas E. Dickey *
32 | ****************************************************************************/
33 |
34 | /*
35 | * $Id: tparm_type.h,v 1.3 2020/10/24 17:11:33 tom Exp $
36 | *
37 | * determine expected/actual number of parameters to setup for tparm
38 | */
39 | #ifndef TPARM_TYPE_H
40 | #define TPARM_TYPE_H 1
41 |
42 | #define USE_LIBTINFO
43 | #include
44 |
45 | typedef enum {
46 | Other = -1
47 | ,Numbers = 0
48 | ,Num_Str
49 | ,Num_Str_Str
50 | } TParams;
51 |
52 | extern TParams tparm_type(const char *name);
53 | extern TParams guess_tparm_type(int nparam, char **p_is_s);
54 |
55 | #endif /* TPARM_TYPE_H */
56 |
--------------------------------------------------------------------------------
/progs/tty_settings.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 2016,2017 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 |
30 | /****************************************************************************
31 | * Author: Thomas E Dickey *
32 | ****************************************************************************/
33 |
34 | /*
35 | * $Id: tty_settings.h,v 1.3 2020/02/02 23:34:34 tom Exp $
36 | *
37 | * Utility functions for saving/restoring terminal settings.
38 | */
39 | #ifndef TTY_SETTINGS_H
40 | #define TTY_SETTINGS_H 1
41 | /* *INDENT-OFF* */
42 |
43 | #include
44 |
45 | extern int save_tty_settings(TTY * /* tty_settings */, bool /* need_tty */ );
46 | extern void restore_tty_settings(void);
47 | extern void update_tty_settings(TTY * /* old_settings */, TTY * /* new_settings */ );
48 |
49 | /* *INDENT-ON* */
50 |
51 | #endif /* TTY_SETTINGS_H */
52 |
--------------------------------------------------------------------------------
/test/bulgarian-utf8-tabs.txt:
--------------------------------------------------------------------------------
1 | Показване на помощна информация -- 1
2 | Създаване на дялове -- 2
3 | Избор на дял и форматиране -- 3
4 | Записване в избрания дял -- 4
5 | Инсталиране на LILO -- 5
6 | Изход от програмата -- 6
7 |
--------------------------------------------------------------------------------
/test/bulgarian-utf8.txt:
--------------------------------------------------------------------------------
1 | Показване на помощна информация -- 1
2 | Създаване на дялове -- 2
3 | Избор на дял и форматиране -- 3
4 | Записване в избрания дял -- 4
5 | Инсталиране на LILO -- 5
6 | Изход от програмата -- 6
7 |
--------------------------------------------------------------------------------
/test/cardfile.dat:
--------------------------------------------------------------------------------
1 | title 1
2 | Some text for title1
3 | and some more text
4 | title 2
5 | The quicker brown fox ran all over the lazy dog.
6 | put a card before the first two
7 | This is an example of a simple cardfile.
8 | show a fourth card
9 | The fourth card
10 | has a large amount of data,
11 | more than the other cards.
12 | At least, that is what I thought it should do, since I want to see how well
13 | the forms package handles justification.
14 |
--------------------------------------------------------------------------------
/test/demo_forms.txt:
--------------------------------------------------------------------------------
1 | # $Id: demo_forms.txt,v 1.3 2013/06/08 14:10:15 tom Exp $
2 | First Name:John
3 | .
4 | Middle Name:Don
5 | .
6 | MI:D
7 | .
8 | Last Name:Smith
9 | .
10 | Comments:Hello
11 | World!
12 | .
13 | Host Name:localhost@localdomain
14 | .
15 | IP Address:192.168.1.100
16 | .
17 | Four digits:1234
18 | .
19 | Numeric:32768
20 | .
21 |
--------------------------------------------------------------------------------
/test/dump_window.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2018,2020 Thomas E. Dickey *
3 | * *
4 | * Permission is hereby granted, free of charge, to any person obtaining a *
5 | * copy of this software and associated documentation files (the *
6 | * "Software"), to deal in the Software without restriction, including *
7 | * without limitation the rights to use, copy, modify, merge, publish, *
8 | * distribute, distribute with modifications, sublicense, and/or sell *
9 | * copies of the Software, and to permit persons to whom the Software is *
10 | * furnished to do so, subject to the following conditions: *
11 | * *
12 | * The above copyright notice and this permission notice shall be included *
13 | * in all copies or substantial portions of the Software. *
14 | * *
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
16 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
18 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
19 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
20 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
21 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
22 | * *
23 | * Except as contained in this notice, the name(s) of the above copyright *
24 | * holders shall not be used in advertising or otherwise to promote the *
25 | * sale, use or other dealings in this Software without prior written *
26 | * authorization. *
27 | ****************************************************************************/
28 | /*
29 | * $Id: dump_window.h,v 1.2 2020/02/02 23:34:34 tom Exp $
30 | */
31 | #ifndef DUMP_WINDOW_H_incl
32 | #define DUMP_WINDOW_H_incl 1
33 |
34 | #include
35 |
36 | extern int open_dump(const char *fn);
37 | extern void close_dump(void);
38 | extern void dump_window(WINDOW *w);
39 |
40 | #endif /* DUMP_WINDOW_H_incl */
41 |
--------------------------------------------------------------------------------
/test/edit_field.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2020 Thomas E. Dickey *
3 | * Copyright 2003-2013,2017 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 | /*
30 | * $Id: edit_field.h,v 1.11 2020/02/02 23:34:34 tom Exp $
31 | *
32 | * Interface of edit_field.c
33 | */
34 |
35 | #ifndef EDIT_FORM_H_incl
36 | #define EDIT_FORM_H_incl 1
37 |
38 | #include
39 |
40 | #define EDIT_FIELD(c) (MAX_FORM_COMMAND + c)
41 |
42 | #define MY_HELP EDIT_FIELD('h')
43 | #define MY_QUIT EDIT_FIELD('q')
44 | #define MY_EDT_MODE EDIT_FIELD('e')
45 | #define MY_INS_MODE EDIT_FIELD('t')
46 |
47 | typedef struct {
48 | chtype background;
49 | int row_count;
50 | int *row_lengths;
51 | } FieldAttrs;
52 |
53 | extern FieldAttrs *field_attrs(FIELD *field);
54 | extern void init_edit_field(FIELD *field, char *value);
55 | extern void help_edit_field(void);
56 | extern int edit_field(FORM *form, int *result);
57 | extern void free_edit_field(FIELD *field);
58 |
59 | #endif /* EDIT_FORM_H_incl */
60 |
--------------------------------------------------------------------------------
/test/linux-color.dat:
--------------------------------------------------------------------------------
1 | ##############################################################################
2 | # Copyright 2020 Thomas E. Dickey #
3 | # Copyright 2004,2006 Free Software Foundation, Inc. #
4 | # #
5 | # Permission is hereby granted, free of charge, to any person obtaining a #
6 | # copy of this software and associated documentation files (the "Software"), #
7 | # to deal in the Software without restriction, including without limitation #
8 | # the rights to use, copy, modify, merge, publish, distribute, distribute #
9 | # with modifications, sublicense, and/or sell copies of the Software, and to #
10 | # permit persons to whom the Software is furnished to do so, subject to the #
11 | # following conditions: #
12 | # #
13 | # The above copyright notice and this permission notice shall be included in #
14 | # all copies or substantial portions of the Software. #
15 | # #
16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
17 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
19 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
20 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
21 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
22 | # DEALINGS IN THE SOFTWARE. #
23 | # #
24 | # Except as contained in this notice, the name(s) of the above copyright #
25 | # holders shall not be used in advertising or otherwise to promote the sale, #
26 | # use or other dealings in this Software without prior written #
27 | # authorization. #
28 | ##############################################################################
29 | # $Id: linux-color.dat,v 1.3 2020/02/08 21:38:22 tom Exp $
30 | # These values are derived from linux/drivers/char/vt.c (default_red[],
31 | # default_grn[] and default_blu[]), commented
32 | /* the default colour table, for VGA+ colour systems */
33 | scale:255
34 | 0: 0 0 0
35 | 1: 170 0 0
36 | 2: 0 170 0
37 | 3: 170 85 0
38 | 4: 0 0 170
39 | 5: 170 0 170
40 | 6: 0 170 170
41 | 7: 170 170 170
42 | 8: 85 85 85
43 | 9: 255 85 85
44 | 10: 85 255 85
45 | 11: 255 255 85
46 | 12: 85 85 255
47 | 13: 255 85 255
48 | 14: 85 255 255
49 | 15: 255 255 255
50 |
--------------------------------------------------------------------------------
/test/package/debian-mingw/compat:
--------------------------------------------------------------------------------
1 | 12
2 |
--------------------------------------------------------------------------------
/test/package/debian-mingw/control:
--------------------------------------------------------------------------------
1 | Source: ncurses-examples
2 | Maintainer: Thomas E. Dickey
3 | Section: misc
4 | Priority: optional
5 | Standards-Version: 4.6.1.0
6 | Build-Depends: debhelper (>= 5)
7 | Homepage: https://invisible-island.net/ncurses/ncurses-examples.html
8 |
9 | Package: mingw32-ncurses-examples
10 | Architecture: any
11 | Depends: ${shlibs:Depends}, ${misc:Depends}
12 | Description: example/test programs from ncurses
13 | These are the example/test programs from the ncurses distribution.
14 | .
15 | This package is used for testing ABI 6 with the MinGW 32-bit port.
16 | .
17 | This package installs in "bin/ncurses-examples" to avoid conflict with other
18 | packages.
19 |
--------------------------------------------------------------------------------
/test/package/debian-mingw/docs:
--------------------------------------------------------------------------------
1 | README
2 |
--------------------------------------------------------------------------------
/test/package/debian-mingw/rules:
--------------------------------------------------------------------------------
1 | #!/usr/bin/make -f
2 | # Made with the aid of dh_make, by Craig Small
3 | # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 | # Some lines taken from debmake, by Cristoph Lameter.
5 |
6 | # Uncomment this to turn on verbose mode.
7 | #export DH_VERBOSE=1
8 |
9 | # These are used for cross-compiling and for saving the configure script
10 | # from having to guess our platform (since we know it already)
11 | DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 | DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
13 |
14 | CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
15 | CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
16 |
17 | NCURSES_PKG = ncurses-examples
18 |
19 | TARGET = i686-w64-mingw32
20 | MINGW_BIN = /usr/bin
21 | MINGW_TOP = /usr/$(TARGET)
22 | MINGW_TMP = $(CURDIR)/debian/mingw32-ncurses-examples
23 |
24 | CFLAGS = $(CC_NORMAL)
25 |
26 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
27 | CFLAGS += -O0
28 | else
29 | CFLAGS += -O2
30 | endif
31 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
32 | INSTALL_PROGRAM += -s
33 | endif
34 |
35 |
36 | configure: configure-stamp
37 | configure-stamp:
38 | dh_testdir
39 |
40 | CFLAGS="$(CFLAGS)" ./configure \
41 | --host=$(TARGET) \
42 | --target=$(TARGET) \
43 | --prefix=$(MINGW_TOP) \
44 | --bindir=\$${prefix}/bin/$(NCURSES_PKG) \
45 | --datadir=\$${prefix}/share/$(NCURSES_PKG) \
46 | --with-screen=ncursesw6 \
47 | --with-pkg-config-libdir=/usr/$(TARGET)/lib/pkgconfig
48 |
49 | touch configure-stamp
50 |
51 | build: build-stamp
52 | build-stamp: configure-stamp
53 | dh_testdir
54 |
55 | $(MAKE)
56 |
57 | touch build-stamp
58 |
59 | clean:
60 | dh_testdir
61 | dh_testroot
62 |
63 | [ ! -f makefile ] || $(MAKE) distclean
64 |
65 | rm -f configure-stamp build-stamp install-stamp
66 |
67 | dh_clean
68 |
69 | install: install-stamp
70 | install-stamp: build-stamp
71 | dh_testdir
72 | dh_testroot
73 | dh_prep
74 | dh_installdirs
75 |
76 | $(MAKE) install DESTDIR=$(MINGW_TMP)
77 |
78 | touch install-stamp
79 |
80 | # Build architecture-independent files here.
81 | binary-indep: build install
82 | # No binary-indep target.
83 |
84 | # Build architecture-dependent files here.
85 | binary-arch: build install
86 | dh_testdir
87 | dh_testroot
88 | dh_installdocs
89 | dh_installexamples
90 | dh_installchangelogs NEWS
91 | dh_strip
92 | dh_compress
93 | dh_fixperms
94 | dh_installdeb
95 | dh_shlibdeps
96 | dh_gencontrol
97 | dh_md5sums
98 | dh_builddeb
99 |
100 | binary: binary-indep binary-arch
101 | .PHONY: build clean binary-indep binary-arch binary install install-stamp
102 |
--------------------------------------------------------------------------------
/test/package/debian-mingw/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (native)
2 |
--------------------------------------------------------------------------------
/test/package/debian-mingw/watch:
--------------------------------------------------------------------------------
1 | version=3
2 |
3 | opts=passive ftp://ftp.invisible-island.net/ncurses-examples/ncurses-examples-([\d.]+)\.tgz \
4 | debian uupdate
5 |
--------------------------------------------------------------------------------
/test/package/debian-mingw64/compat:
--------------------------------------------------------------------------------
1 | 12
2 |
--------------------------------------------------------------------------------
/test/package/debian-mingw64/control:
--------------------------------------------------------------------------------
1 | Source: ncurses-examples
2 | Maintainer: Thomas E. Dickey
3 | Section: misc
4 | Priority: optional
5 | Standards-Version: 4.6.1.0
6 | Build-Depends: debhelper (>= 5)
7 | Homepage: https://invisible-island.net/ncurses/ncurses-examples.html
8 |
9 | Package: mingw64-ncurses-examples
10 | Architecture: any
11 | Depends: ${shlibs:Depends}, ${misc:Depends}
12 | Description: example/test programs from ncurses
13 | These are the example/test programs from the ncurses distribution.
14 | .
15 | This package is used for testing ABI 6 with the MinGW 64-bit port.
16 | .
17 | This package installs in "bin/ncurses-examples" to avoid conflict with other
18 | packages.
19 |
--------------------------------------------------------------------------------
/test/package/debian-mingw64/docs:
--------------------------------------------------------------------------------
1 | README
2 |
--------------------------------------------------------------------------------
/test/package/debian-mingw64/rules:
--------------------------------------------------------------------------------
1 | #!/usr/bin/make -f
2 | # Made with the aid of dh_make, by Craig Small
3 | # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 | # Some lines taken from debmake, by Cristoph Lameter.
5 |
6 | # Uncomment this to turn on verbose mode.
7 | #export DH_VERBOSE=1
8 |
9 | # These are used for cross-compiling and for saving the configure script
10 | # from having to guess our platform (since we know it already)
11 | DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 | DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
13 |
14 | CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
15 | CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
16 |
17 | NCURSES_PKG = ncurses-examples
18 |
19 | TARGET = x86_64-w64-mingw32
20 | MINGW_BIN = /usr/bin
21 | MINGW_TOP = /usr/$(TARGET)
22 | MINGW_TMP = $(CURDIR)/debian/mingw64-ncurses-examples
23 |
24 | CFLAGS = $(CC_NORMAL)
25 |
26 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
27 | CFLAGS += -O0
28 | else
29 | CFLAGS += -O2
30 | endif
31 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
32 | INSTALL_PROGRAM += -s
33 | endif
34 |
35 |
36 | configure: configure-stamp
37 | configure-stamp:
38 | dh_testdir
39 |
40 | CFLAGS="$(CFLAGS)" ./configure \
41 | --host=$(TARGET) \
42 | --target=$(TARGET) \
43 | --prefix=$(MINGW_TOP) \
44 | --bindir=\$${prefix}/bin/$(NCURSES_PKG) \
45 | --datadir=\$${prefix}/share/$(NCURSES_PKG) \
46 | --with-screen=ncursesw6 \
47 | --with-pkg-config-libdir=/usr/$(TARGET)/lib/pkgconfig
48 |
49 | touch configure-stamp
50 |
51 | build: build-stamp
52 | build-stamp: configure-stamp
53 | dh_testdir
54 |
55 | $(MAKE)
56 |
57 | touch build-stamp
58 |
59 | clean:
60 | dh_testdir
61 | dh_testroot
62 |
63 | [ ! -f makefile ] || $(MAKE) distclean
64 |
65 | rm -f configure-stamp build-stamp install-stamp
66 |
67 | dh_clean
68 |
69 | install: install-stamp
70 | install-stamp: build-stamp
71 | dh_testdir
72 | dh_testroot
73 | dh_prep
74 | dh_installdirs
75 |
76 | $(MAKE) install DESTDIR=$(MINGW_TMP)
77 |
78 | touch install-stamp
79 |
80 | # Build architecture-independent files here.
81 | binary-indep: build install
82 | # No binary-indep target.
83 |
84 | # Build architecture-dependent files here.
85 | binary-arch: build install
86 | dh_testdir
87 | dh_testroot
88 | dh_installdocs
89 | dh_installexamples
90 | dh_installchangelogs NEWS
91 | dh_strip
92 | dh_compress
93 | dh_fixperms
94 | dh_installdeb
95 | dh_shlibdeps
96 | dh_gencontrol
97 | dh_md5sums
98 | dh_builddeb
99 |
100 | binary: binary-indep binary-arch
101 | .PHONY: build clean binary-indep binary-arch binary install install-stamp
102 |
--------------------------------------------------------------------------------
/test/package/debian-mingw64/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (native)
2 |
--------------------------------------------------------------------------------
/test/package/debian-mingw64/watch:
--------------------------------------------------------------------------------
1 | version=3
2 |
3 | opts=passive ftp://ftp.invisible-island.net/ncurses-examples/ncurses-examples-([\d.]+)\.tgz \
4 | debian uupdate
5 |
--------------------------------------------------------------------------------
/test/package/debian/compat:
--------------------------------------------------------------------------------
1 | 12
2 |
--------------------------------------------------------------------------------
/test/package/debian/control:
--------------------------------------------------------------------------------
1 | Source: ncurses-examples
2 | Maintainer: Thomas E. Dickey
3 | Section: misc
4 | Priority: optional
5 | Standards-Version: 4.6.1.0
6 | Build-Depends: debhelper (>= 5)
7 | Homepage: https://invisible-island.net/ncurses/ncurses-examples.html
8 |
9 | Package: ncurses-examples
10 | Architecture: any
11 | Depends: ${shlibs:Depends}, ${misc:Depends}
12 | Description: example/test programs from ncurses
13 | These are the example/test programs from the ncurses distribution.
14 | .
15 | This package installs in "bin/ncurses-examples" to avoid conflict with other
16 | packages.
17 |
18 | Package: ncursest-examples
19 | Architecture: any
20 | Depends: ${shlibs:Depends}, ${misc:Depends}
21 | Description: example/test programs from ncurses
22 | These are the example/test programs from the ncurses distribution, using
23 | the thread configuration.
24 | .
25 | This package installs in "bin/ncursest-examples" to avoid conflict with other
26 | packages.
27 |
--------------------------------------------------------------------------------
/test/package/debian/docs:
--------------------------------------------------------------------------------
1 | README
2 |
--------------------------------------------------------------------------------
/test/package/debian/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (native)
2 |
--------------------------------------------------------------------------------
/test/package/debian/watch:
--------------------------------------------------------------------------------
1 | version=3
2 |
3 | opts=passive ftp://ftp.invisible-island.net/ncurses-examples/ncurses-examples-([\d.]+)\.tgz \
4 | debian uupdate
5 |
--------------------------------------------------------------------------------
/test/popup_msg.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright 2018,2020 Thomas E. Dickey *
3 | * Copyright 2017 Free Software Foundation, Inc. *
4 | * *
5 | * Permission is hereby granted, free of charge, to any person obtaining a *
6 | * copy of this software and associated documentation files (the *
7 | * "Software"), to deal in the Software without restriction, including *
8 | * without limitation the rights to use, copy, modify, merge, publish, *
9 | * distribute, distribute with modifications, sublicense, and/or sell *
10 | * copies of the Software, and to permit persons to whom the Software is *
11 | * furnished to do so, subject to the following conditions: *
12 | * *
13 | * The above copyright notice and this permission notice shall be included *
14 | * in all copies or substantial portions of the Software. *
15 | * *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 | * *
24 | * Except as contained in this notice, the name(s) of the above copyright *
25 | * holders shall not be used in advertising or otherwise to promote the *
26 | * sale, use or other dealings in this Software without prior written *
27 | * authorization. *
28 | ****************************************************************************/
29 | /*
30 | * $Id: popup_msg.h,v 1.5 2020/02/02 23:34:34 tom Exp $
31 | *
32 | * Utility functions for a popup-message or help-screen.
33 | */
34 |
35 | #ifndef POPUP_MSG_H_incl
36 | #define POPUP_MSG_H_incl 1
37 |
38 | #include
39 |
40 | extern void popup_msg(WINDOW *parent, const char *const *msg);
41 | extern void popup_msg2(WINDOW *parent, char **msg);
42 |
43 | #endif /* POPUP_MSG_H_incl */
44 |
--------------------------------------------------------------------------------
/test/widechars-utf8-tabs.txt:
--------------------------------------------------------------------------------
1 | APPLE -- It's an APPLE.
2 | DOG -- No, that's not my DOG.
3 | ORANGE -- Yeah, that's JUICY.
4 | CHICKEN -- Normally not a PET.
5 | CAT -- No, never put a DOG and a CAT together!
6 | FISH -- Cats like FISH.
7 | LEMON -- You KNOW how it TASTES.
8 | ----+----1----+----2----+----3----+----4
9 | APPLE -- It's an APPLE.
10 | APPLE -- It's an APPLE.
11 | APPLE -- It's an APPLE.
12 | APPLE -- It's an APPLE.
13 | APPLE -- It's an APPLE.
14 | APPLE -- It's an APPLE.
15 | ----+----1----+----2----+----3----+----4
16 |
--------------------------------------------------------------------------------
/test/widechars-utf8.txt:
--------------------------------------------------------------------------------
1 | APPLE -- It's an APPLE.
2 | DOG -- No, that's not my DOG.
3 | ORANGE -- Yeah, that's JUICY.
4 | CHICKEN -- Normally not a PET.
5 | CAT -- No, never put a DOG and a CAT together!
6 | FISH -- Cats like FISH.
7 | LEMON -- You KNOW how it TASTES.
8 |
--------------------------------------------------------------------------------
/test/xterm-color_48x48.xpm:
--------------------------------------------------------------------------------
1 | /* XPM */
2 | static char * xterm_color_48x48_xpm[] = {
3 | "48 48 10 1",
4 | ". c None",
5 | " c #555500",
6 | "+ c #000000",
7 | "@ c #FFFFFF",
8 | "# c #FF0000",
9 | "$ c #070700",
10 | "% c #0B0B00",
11 | "& c #FF8400",
12 | "* c #49FF00",
13 | "= c #60B7FF",
14 | "................................................",
15 | "......++++++++++++++++++++++++++++++++++........",
16 | ".....+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@++......",
17 | ".....+@@@++++++++++++++++++++++++++++@@@+@+.....",
18 | ".....+@@++++++++++++++++++++++++++++++@@+@@+....",
19 | ".....+@++++++++++++++++++++++++++++++++@+@@@+...",
20 | ".....+@++###++++###++++++++++++++++++++@+@@@@+..",
21 | ".....+@+++##++++##+++++++++++++++++++++@+@@@@+..",
22 | ".....+@++++##++##++++++++++++++++++++++@+@@@@+..",
23 | ".....+@++++##++##++++++++++++++++++++++@+@@@@+..",
24 | ".....+@+++++####+++++++++++++++++++++++@+@@@@+..",
25 | ".....+@+++++####+++++++++++++++++++++++@+@@@@+..",
26 | ".....+@++++++##++++++++++++++++++++++++@+@@@@+..",
27 | ".....+@+++++####+++++++++++++++++++++++@+@@@@+..",
28 | ".....+@+++++####+++++++++++++++++++++++@+@@@@+..",
29 | ".....+@++++##++##++++++++++++++++++++++@+@@@@+..",
30 | ".....+@++++##++##++++++++++++++++++++++@+@@@@+..",
31 | ".....+@+++##++++##+++++++++++++++++++++@+@@@@+..",
32 | ".....+@++###++++###++++++++++++++++++++@+@@@@+..",
33 | ".....+@++++++++++++++++++++++++++++++++@+@@@@+..",
34 | ".....+@$+++++++++++++++++++++++++++++++@+@@@@+..",
35 | ".....+@%@@@@@@@+&&&&&++****+++==+++==++@+@@@@+..",
36 | ".....+@++++@++++&++++++*+++*++==+++==++@+@@@@+..",
37 | ".....+@++++@++++&++++++*+++*++=+=+=+=++@+@@@@+..",
38 | ".....+@++++@++++&&&&+++****+++=+=+=+=++@+@@@@+..",
39 | ".....+@++++@++++&++++++*+*++++=++=++=++@+@@@+...",
40 | ".....+@++++@++++&++++++*++*+++=++=++=++@+@@@+...",
41 | ".....+@++++@++++&&&&&++*+++*++=+++++=++@+@@+....",
42 | ".....+@++++++++++++++++++++++++++++++++@+@@+....",
43 | ".....+@++++++++++++++++++++++++++++++++@+@+.....",
44 | ".....+@@++++++++++++++++++++++++++++++@@+@+.....",
45 | ".....+@@@++++++++++++++++++++++++++++@@@++......",
46 | ".....+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@++......",
47 | "......++++++++++++++++++++++++++++++++++........",
48 | "................................................",
49 | "................................................",
50 | "......++++++++++++++++++++++++++++++++++++......",
51 | ".....+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@++......",
52 | ".....+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@@++......",
53 | "....+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+@+......",
54 | "....+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@@+@+......",
55 | "...+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+@@+......",
56 | "...+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@@+@@+......",
57 | "..+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+@@+.......",
58 | "..+@++@++++++++++++++++++++++++++@++@+@+........",
59 | ".+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+@+.........",
60 | ".+++++++++++++++++++++++++++++++++++++..........",
61 | "................................................"};
62 |
--------------------------------------------------------------------------------