'2022/05/17'에 해당되는 글 3건

  1. 2022.05.17 어라 요금제 폭탄?
  2. 2022.05.17 관악산 화재
  3. 2022.05.17 ncurse example

이번달에 갑자기 폭탄이 터졌다 -_-

 

예전꺼 캡쳐를 안해놔서 몇달간인지 모르겠는데..

아무튼 가입 1년이 지나서 그랬나..

 

 

지금 상품 검색하니.. 내가 쓰던 것 보다 가격이 더 낮아졌는데.. 모르고 있었네..

한번 KT로 뛰었다가 다시 SK로 와야 할 듯.

 

이걸로 갈아타야 하나.. 근데 9개월차.. 어우.. 미네랄

'개소리 왈왈 > 모바일 생활' 카테고리의 다른 글

freeT SKT -> freeT KT 번호이동  (0) 2022.06.07
요금제 변경 시도  (0) 2022.06.02
노트5 파.. 쇄?  (0) 2022.05.09
오늘의 지름  (0) 2022.04.06
v50s 액정 사설 수리 비용  (0) 2022.03.04
Posted by 구차니

으헝? 회사에서 전화하려고 밖에 보이는데 왔더니 헬기가 붕붕붕

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

갑분 외근.. 철야?  (0) 2022.05.30
5월의 끝자락  (0) 2022.05.29
집에서 PLC 코드 분석  (0) 2022.05.14
보안 전시회  (0) 2022.04.20
ai 컨퍼런스  (0) 2022.04.14
Posted by 구차니
프로그램 사용/ncurses2022. 5. 17. 08:17

make menuconfig 하면 먼가 그럴싸하게 그려주는게 ncurses 인데

라이브러리는 curses.h 이다. 찾아보니 New Curses 라서 ncurses라고..

[링크 : https://ko.wikipedia.org/wiki/Ncurses]

 

좌표만 주면 알아서 써주는 것 같은데

드래그 하면 창 크기 알아서 읽어서 박스 그리는건 어떻게 해야하려나?

/*

  CURHELLO.C
  ==========
  (c) Copyright Paul Griffiths 1999
  Email: mail@paulgriffiths.net

  "Hello, world!", ncurses style.

*/


#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>                  /*  for sleep()  */
#include <curses.h>


int main(void) {

    WINDOW * mainwin;

    
    /*  Initialize ncurses  */

    if ( (mainwin = initscr()) == NULL ) {
fprintf(stderr, "Error initialising ncurses.\n");
exit(EXIT_FAILURE);
    }


    /*  Display "Hello, world!" in the centre of the
screen, call refresh() to show our changes, and
sleep() for a few seconds to get the full screen effect  */

    mvaddstr(13, 33, "Hello, world!");
    refresh();
    sleep(3);


    /*  Clean up after ourselves  */

    delwin(mainwin);
    endwin();
    refresh();

    return EXIT_SUCCESS;
}

[링크 : https://www.paulgriffiths.net/program/c/srcs/curhellosrc.html]

[링크 : http://www.paulgriffiths.net/program/c/curses.php]

 

API
[링크 : https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/index.html]

'프로그램 사용 > ncurses' 카테고리의 다른 글

ncurses 상자 및 색상 적용하기  (0) 2024.12.02
ncurses 예제  (0) 2024.11.30
ncurse  (0) 2015.04.27
Posted by 구차니