Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ncurses/2021-05-12-llt21

 ncurses/2021-05-12-llt21

社内のLTイベント「えるLT Vol.21 オンライン」で発表した資料です

Satoshi SAKAO

May 12, 2021
Tweet

More Decks by Satoshi SAKAO

Other Decks in Programming

Transcript

  1. 話すひと 2 🏢 インフォコム株式会社 品質マネジメント推進室 👨🔧 ソフトウェアエンジニア 🛠 Node.js /

    GCP / IoT / iOS (Swift) 💖 猫,テクテクライフ(ランク: 20) Satoshi SAKAO @ottijp
  2. curses • is a library • realizes GUI like CUI

    • provides terminal independent API 7
  3. ncurses • new curses • emulation of the original (System

    V) curses • part of GNU project • https://invisible-island.net/ncurses/ 10
  4. features • screen manipulation • print characters • change format

    of characters • interface with the keyboard and the mouse • scrolling • windows 12
  5. 2. change format of characters • int start_color(void); • int

    init_pair(short pair, short f, short b); • int attrset(int attrs); 16
  6. 3. interface with the keyboard and the mouse • int

    getch(void); • mmask_t mousemask(mmask_t newmask, mmask_t *oldmask); • int getmouse(MEVENT *event); 17