Skip to main content
edited body
Source Link
jlliagre
  • 62.5k
  • 11
  • 124
  • 162

Why hardcode compatabilitycompatibility for a specific terminal type when you've already got a database mapping the functionality to specific code sequences for lots of different terminals? (the terminfo database is usually in /usr/share and is included in most ncurses distributions). Any resource on curses should explain the way these functions are labelled.

Note that terminfo files are usually compiled (using tic) so you might have to dig a bit to find the terminfo source files.

See also http://tldp.org/HOWTO/Text-Terminal-HOWTO.html#toc16 (there's a link in their to one repository of terminfo.src files)

Why hardcode compatability for a specific terminal type when you've already got a database mapping the functionality to specific code sequences for lots of different terminals? (the terminfo database is usually in /usr/share and is included in most ncurses distributions). Any resource on curses should explain the way these functions are labelled.

Note that terminfo files are usually compiled (using tic) so you might have to dig a bit to find the terminfo source files.

See also http://tldp.org/HOWTO/Text-Terminal-HOWTO.html#toc16 (there's a link in their to one repository of terminfo.src files)

Why hardcode compatibility for a specific terminal type when you've already got a database mapping the functionality to specific code sequences for lots of different terminals? (the terminfo database is usually in /usr/share and is included in most ncurses distributions). Any resource on curses should explain the way these functions are labelled.

Note that terminfo files are usually compiled (using tic) so you might have to dig a bit to find the terminfo source files.

See also http://tldp.org/HOWTO/Text-Terminal-HOWTO.html#toc16 (there's a link in their to one repository of terminfo.src files)

Source Link
symcbean
  • 6.4k
  • 4
  • 32
  • 48

Why hardcode compatability for a specific terminal type when you've already got a database mapping the functionality to specific code sequences for lots of different terminals? (the terminfo database is usually in /usr/share and is included in most ncurses distributions). Any resource on curses should explain the way these functions are labelled.

Note that terminfo files are usually compiled (using tic) so you might have to dig a bit to find the terminfo source files.

See also http://tldp.org/HOWTO/Text-Terminal-HOWTO.html#toc16 (there's a link in their to one repository of terminfo.src files)