
{"id":1490,"date":"2010-05-14T23:08:17","date_gmt":"2010-05-14T17:38:17","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=1490"},"modified":"2010-05-14T23:08:17","modified_gmt":"2010-05-14T17:38:17","slug":"terminfo-is-a-database-of-terminal-capabilities","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/05\/14\/terminfo-is-a-database-of-terminal-capabilities\/","title":{"rendered":"terminfo is a database of terminal capabilities"},"content":{"rendered":"<pre>\n$cd \/lib\/terminfo\/\n$ls\na  c  d  E  h  l  m  p  r  s  v  w  x\n$pwd\n\/lib\/terminfo\n$cd l\/\n$infocmp linux\n$infocmp linux\n#       Reconstructed via infocmp from file: \/lib\/terminfo\/l\/linux\nlinux|linux console,\n        am, bce, ccc, eo, mir, msgr, xenl, xon,\n        colors#8, it#8, ncv#18, pairs#64,\n<\/pre>\n<p>\nTerminfo (formerly Termcap) is a database of terminal capabilities and more. For every (well almost) model of terminal it tells application programs what the terminal is capable of doing. It tells what escape sequences (or control characters) to send to the terminal in order to do things such as move the cursor to a new location, erase part of the screen, scroll the screen, change modes, change appearance (colors, brightness, blinking, underlining, reverse video etc.). After about 1980, many terminals supported over a hundred different commands (some of which take numeric parameters).\n<\/p>\n<p>Copyright 1998-2010 by David S. Lawyer. dave@lafn.org<\/p>\n<pre>\ngrepping through ncurses sources.\n$grep terminfo  infocmp.c\n * terminfo entries, completely determine the actions of the program.\nstatic ENTRY *entries;          \/* terminfo entries *\/\n\n$grep ENTRY dump_entry.h\n#ifndef DUMP_ENTRY_H\n#define DUMP_ENTRY_H 1\n#endif \/* DUMP_ENTRY_H *\/\n$\n\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$cd \/lib\/terminfo\/ $ls a c d E h l m p r s v w x $pwd \/lib\/terminfo $cd l\/ $infocmp linux $infocmp linux # Reconstructed via infocmp from file: \/lib\/terminfo\/l\/linux linux|linux console, am, bce, ccc, eo, mir, msgr, xenl, xon, colors#8, it#8, ncv#18, pairs#64, Terminfo (formerly Termcap) is a database of terminal capabilities and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/05\/14\/terminfo-is-a-database-of-terminal-capabilities\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;terminfo is a database of terminal capabilities&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[1054],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/1490"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=1490"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/1490\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=1490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=1490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=1490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}