{"id":81463,"date":"2020-05-13T13:42:49","date_gmt":"2020-05-13T11:42:49","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/vyshla-notcurses-v1-4-1-biblioteka-dlya-sovremennyh-tekstovyh-interfejsov"},"modified":"2020-05-13T13:42:49","modified_gmt":"2020-05-13T11:42:49","slug":"vyshla-notcurses-v1-4-1-biblioteka-dlya-sovremennyh-tekstovyh-interfejsov","status":"publish","type":"post","link":"https:\/\/prohoster.info\/cs\/blog\/news\/vyshla-notcurses-v1-4-1-biblioteka-dlya-sovremennyh-tekstovyh-interfejsov","title":{"rendered":"Vy\u0161la notcurses v1.4.1\u00a0\u2014 knihovna pro modern\u00ed textov\u00e9 rozhran\u00ed","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><a rel=\"nofollow\" href=\"https:\/\/www.linux.org.ru\/images\/19139\/original.jpg\" itemprop=\"contentURL\"><br \/>\n      <img decoding=\"async\" alt=\"Vy\u0161la notcurses v1.4.1\u00a0\u2014 knihovna pro modern\u00ed textov\u00e9 rozhran\u00ed\" src=\"\/wp-content\/uploads\/2020\/05\/973d5cc67751ccd145585d50ec2cba73.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p>    <\/a><\/p>\n<p>Vy\u0161la nov\u00e1 verze knihovny notcurses v1.4.x \u201ep\u0159\u00edb\u011bh pokra\u010duje! wu-tang! wu-tang!\u201c<\/p>\n<p><noindex><noindex><\/p>\n<p>Notcurses je knihovna TUI pro modern\u00ed termin\u00e1lov\u00e9 emul\u00e1tory. Doslovn\u011b p\u0159elo\u017eeno \u2013 \u017e\u00e1dn\u00e9 kletby (not curses). Je naps\u00e1na v C, s pou\u017eit\u00edm C++-safe hlavi\u010dek. Dostupn\u00e9 jsou ob\u00e1lky pro <a rel=\"nofollow\" href=\"https:\/\/crates.io\/crates\/notcurses\">Rust<\/a>, <a rel=\"nofollow\" href=\"https:\/\/github.com\/dankamongmen\/notcurses\/issues\/212\">C++<\/a> a <a rel=\"nofollow\" href=\"https:\/\/pypi.org\/project\/notcurses\">CouchDB<\/a>.<\/p>\n<p><\/noindex><\/noindex><\/p>\n<p>Co to je: knihovna, kter\u00e1 usnad\u0148uje slo\u017eit\u00e9 TUI na modern\u00edch termin\u00e1lov\u00fdch emul\u00e1torech, maxim\u00e1ln\u011b podporuj\u00edc\u00ed jasn\u00e9 barvy a Unicode. Mnoho \u00faloh, kter\u00e9 d\u0159\u00edve splnily curses, m\u016f\u017ee nyn\u00ed vykon\u00e1vat notcurses (a naopak).<\/p>\n<p>\u010c\u00edm to nen\u00ed: kompatibiln\u00ed implementac\u00ed X\/Open curses nebo n\u00e1hradou za ncurses na st\u00e1vaj\u00edc\u00edch syst\u00e9mech.<\/p>\n<p>Notcurses se vzd\u00e1v\u00e1 API X\/Open Curses dod\u00e1van\u00e9ho jako sou\u010d\u00e1st Single UNIX Specification. Tato specifikace je ji\u017e d\u00e1vno zastaral\u00e1 a nap\u0159\u00edklad nepodporuje funkce termin\u00e1lu, jako je neindexovan\u00e1 24-bitov\u00e1 barva. Notcurses tedy nen\u00ed n\u00e1hradou za curses. Je m\u00e9n\u011b p\u0159enositeln\u00e1 a ur\u010dit\u011b byla testov\u00e1na na men\u0161\u00edm mno\u017estv\u00ed za\u0159\u00edzen\u00ed.<br \/>\nKde je to mo\u017en\u00e9, notcurses vyu\u017e\u00edv\u00e1 knihovnu terminfo dod\u00e1vanou s ncurses, \u010d\u00edm\u017e vyt\u011b\u017euje jej\u00ed p\u0159enositelnost.<br \/>\nNotcurses otev\u00edr\u00e1 roz\u0161\u00ed\u0159en\u00e9 mo\u017enosti interakce s u\u017eivateli na pracovn\u00edch stanic\u00edch, telefonech, notebooc\u00edch a tabletech.<\/p>\n<p>Pro\u010d pou\u017e\u00edvat tuto nestandardn\u00ed knihovnu?<\/p>\n<ul>\n<li>\n<p>Bezpe\u010dnost vl\u00e1ken a efektivn\u00ed vyu\u017eit\u00ed ve v\u00edcethreadovan\u00fdch programech byla od sam\u00e9ho za\u010d\u00e1tku projektov\u00fdm z\u00e1m\u011brem.<\/p>\n<\/li>\n<li>\n<p>L\u00e9pe navr\u017een\u00e9 API ve srovn\u00e1n\u00ed s X\/Open:<\/p>\n<ul>\n<li>\n<p>Exportovan\u00e9 identifik\u00e1tory maj\u00ed prefix, aby se zabr\u00e1nilo koliz\u00edm v prostor\u00e1ch n\u00e1zv\u016f.<\/p>\n<\/li>\n<li>\n<p>Objektov\u00fd soubor knihovny exportuje minim\u00e1ln\u00ed sadu symbol\u016f. Kde je to vhodn\u00e9, pou\u017e\u00edv\u00e1 se statick\u00fd k\u00f3d pouze pro drobn\u00e9 hlavi\u010dky. To usnad\u0148uje optimalizaci kompil\u00e1toru a zkracuje \u010das na\u010d\u00edt\u00e1n\u00ed.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<noindex><\/p>\n<p>V\u0161echna API od za\u010d\u00e1tku podporuj\u00ed univerz\u00e1ln\u00ed sadu znak\u016f (Unicode). API pro bu\u0148ky je zalo\u017eeno na koncepci <a rel=\"nofollow\" href=\"https:\/\/unicode.org\/reports\/tr29\/\">roz\u0161\u00ed\u0159enou clusterovou Unicodovou gramatiku<\/a>.<\/p>\n<p><\/noindex>\n<\/li>\n<li>\n<p>Vizu\u00e1ln\u00ed mo\u017enosti, v\u010detn\u011b obr\u00e1zk\u016f, p\u00edsem, vide\u00ed, vysoce kontrastn\u00edho textu, sprite a pr\u016fhledn\u00fdch oblast\u00ed. V\u0161echna API nativn\u011b podporuj\u00ed 24-bitov\u00e9 barvy, kvantovan\u00e9 podle pot\u0159eby pro termin\u00e1l.<\/p>\n<\/li>\n<li>\n<noindex><\/p>\n<p>Licence Apache2, na rozd\u00edl od <a rel=\"nofollow\" href=\"https:\/\/invisible-island.net\/ncurses\/ncurses-license.html\">dr\u00e1my<\/a> v n\u011bkolika aktech, kter\u00e9 jsou licencov\u00e1ny dle ncurses (posledn\u00ed shrnuta jako \u201ep\u0159evypr\u00e1v\u011bn\u00ed MIT-X11\u201c).<\/p>\n<p><\/noindex>\n<\/li>\n<\/ul>\n<p>Od p\u0159edchoz\u00edho v\u00fdznamn\u00e9ho vyd\u00e1n\u00ed 1.1.0 bylo p\u0159id\u00e1no ohromn\u00e9 mno\u017estv\u00ed funkc\u00ed. Hlavn\u00ed zm\u011bny:<\/p>\n<ul>\n<li>\n<p>Widget pro \u010dten\u00ed pro zad\u00e1v\u00e1n\u00ed \u0159et\u011bzc\u016f libovoln\u00e9 formy s vazbou na \u010dten\u00e9 \u0159et\u011bzce.<\/p>\n<\/li>\n<li>\n<p>Widget subprocess pro vytv\u00e1\u0159en\u00ed podprocesu, jeho spr\u00e1vu a streamov\u00e1n\u00ed jeho v\u00fdsledk\u016f zp\u011bt.<\/p>\n<\/li>\n<li>\n<p>V Linuxu 5.3+ se pou\u017e\u00edv\u00e1 nov\u00fd mechanismus clone3+pidfd pro spr\u00e1vu proces\u016f bez z\u00e1vodn\u00edch podm\u00ednek.<\/p>\n<\/li>\n<li>\n<p>Widget Fdplane pro streamov\u00e1n\u00ed libovoln\u00e9ho souborov\u00e9ho deskriptoru na plochu (na kter\u00e9 je spu\u0161t\u011bn podproces). Oba umo\u017e\u0148uj\u00ed zp\u011btn\u00fdm vol\u00e1n\u00edm stylizovat nebo jinak zpracov\u00e1vat text.<\/p>\n<\/li>\n<li>\n<p>Ot\u00e1\u010den\u00ed ploch a vizu\u00e1ln\u00ed efekty. Na\u010d\u00edt\u00e1n\u00ed vizualizac\u00ed z pam\u011bti. Libovoln\u00e9 blitov\u00e1n\u00ed RGBA\/BGRx.<\/p>\n<\/li>\n<li>\n<p>Menu m\u016f\u017ee b\u00fdt um\u00edst\u011bno na libovoln\u00e9 (nebo na ob\u011b) z horn\u00edch a doln\u00edch ploch.<\/p>\n<\/li>\n<li>\n<p>Velk\u00e9 vylep\u0161en\u00ed v re\u017eimu Direct.<\/p>\n<\/li>\n<li>\n<p>Polyfily, gradienty a text s vysok\u00fdm kontrastem.<\/p>\n<\/li>\n<li>\n<p>P\u0159id\u00e1n Tetris jako p\u0159\u00edklad.<\/p>\n<\/li>\n<li>\n<p>C++ ob\u00e1lky od Mareka Habersacka z\u00edskaly mo\u017enost vyhazovat v\u00fdjimky (pokud je to pot\u0159eba).<\/p>\n<\/li>\n<li>\n<p>Python a Rust FFI byly aktualizov\u00e1ny a otestov\u00e1ny.<\/p>\n<\/li>\n<\/ul>\n<p><a rel=\"nofollow\" href=\"https:\/\/www.youtube.com\/watch?v=TvWdUfIStDI\">Video demo s koment\u00e1\u0159i autora.<\/a><br \/>\n<a rel=\"nofollow\" href=\"https:\/\/nick-black.com\/dankwiki\/index.php\/Hacking_The_Planet!_with_Notcurses\">Kniha \u201eHacking The Planet! with Notcurses\u201c od autora<\/a><\/p>\n<p>Zdroj: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"http:\/\/www.linux.org.ru\/news\/opensource\/15699897\">linux.org.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412\u044b\u0448\u043b\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 notcurses v1.4.x &laquo;the saga continues! wu-tang! wu-tang!&raquo; Notcurses \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 TUI \u0434\u043b\u044f \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u0432. \u0411\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044f &ndash; \u043d\u0435 \u043f\u0440\u043e\u043a\u043b\u044f\u0442\u0438\u044f (not curses). \u041e\u043d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 \u0421, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c C++-safe headers. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043e\u0431\u0451\u0440\u0442\u043a\u0438 \u0434\u043b\u044f Rust, C++ \u0438 Python. \u0427\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435: \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u0443\u043f\u0440\u043e\u0449\u0430\u044e\u0449\u0430\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u0435 TUI \u043d\u0430 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430\u0445, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0430\u044f \u044f\u0440\u043a\u0438\u0435 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":81464,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-81463","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/cs\/blog\/news\/vyshla-notcurses-v1-4-1-biblioteka-dlya-sovremennyh-tekstovyh-interfejsov\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0412\u044b\u0448\u043b\u0430 notcurses v1.4.1 \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 | ProHoster\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/cs\/blog\/news\/vyshla-notcurses-v1-4-1-biblioteka-dlya-sovremennyh-tekstovyh-interfejsov\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-05-13T11:42:49+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-05-13T11:42:49+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47 Byla vyd\u00e1na notcurses v1.4.1 \u2014 knihovna pro modern\u00ed textov\u00e9 rozhran\u00ed | ProHoster","description":"","canonical_url":"https:\/\/prohoster.info\/cs\/blog\/news\/vyshla-notcurses-v1-4-1-biblioteka-dlya-sovremennyh-tekstovyh-interfejsov","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"cs_CZ","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0412\u044b\u0448\u043b\u0430 notcurses v1.4.1 \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 | ProHoster","og:url":"https:\/\/prohoster.info\/cs\/blog\/news\/vyshla-notcurses-v1-4-1-biblioteka-dlya-sovremennyh-tekstovyh-interfejsov","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-05-13T11:42:49+00:00","article:modified_time":"2020-05-13T11:42:49+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"81463","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 15:57:25","updated":"2022-09-29 16:14:56","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts\/81463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/comments?post=81463"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts\/81463\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/media\/81464"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/media?parent=81463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/categories?post=81463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/tags?post=81463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}