Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

전체 윈도우 조정 필요(log, show, userlist, chat) #1

Open
newbcode opened this issue Oct 31, 2013 · 5 comments
Open

전체 윈도우 조정 필요(log, show, userlist, chat) #1

newbcode opened this issue Oct 31, 2013 · 5 comments
Assignees
Labels

Comments

@newbcode
Copy link
Collaborator

실제적으로 각 사용자의 콘솔(터미널) 창의 크기가 다르기 때문에 항상 비율로 계산하여
각각의 LINES, COLS를 구하여 할당해야 한다.

  1. 관련된 lib를 찾는다.
  2. 수동으로 구현한다.
    .
    .
    .
@blueooh
Copy link
Owner

blueooh commented Nov 9, 2013

예상하는 해결방법은 아래와 같습니다.

  1. 터미널 창의 변화 시그널(SIGWINCH)을 받아 윈도우 사이즈를 재조정하는 함수(wresize)를 이용하여 콜백함수를 등록..
  2. CDK(Curses Development Kit) 라이브러리를 사용하여 윈도우즈를 재구현한 후 해결....(그런데 CDK 라이브러리가 �한글 지원이 않됨.....;;;)

@newbcode
Copy link
Collaborator Author

newbcode commented Nov 9, 2013

Weechat이 한글을 지원하는걸로 봐선 libcdk5에서도 지원하는방법이 있을듯합니다

@ghost ghost assigned blueooh Nov 9, 2013
@blueooh
Copy link
Owner

blueooh commented Nov 21, 2013

터미널 창의 변화 시그널(SIGWINCH)을 받아 윈도우 사이즈를 재조정하는 함수(wresize)를 이용하여 콜백함수를 등록하는 방법으로 문제해결 완료

@blueooh blueooh closed this as completed Nov 21, 2013
@newbcode
Copy link
Collaborator Author

터미널 창이 처음시작시는 정상으로 동작하나 처음 시작시보다 윈도우 크기를 늘리고 다시 줄이면 클라이언트 창이 깨지는 현상이 있습니다.

  • 처음 터미널 창의 시작이 (120_50) 미만에서 시작해서 창의 크기가 180_50 이상이되면 윈도우 창이 깨지는것이 재현 됩니다. 실제 wrefresh 콜백함수 구현을 다시 살펴볼 필요가 있습니다.

@newbcode newbcode reopened this Nov 22, 2013
@blueooh blueooh added the bug label Feb 6, 2014
@blueooh
Copy link
Owner

blueooh commented Feb 6, 2014

사이즈 조절 뿐아니라 어느 상황에서든 화면이 깨지는 문제가 나타나고 있습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants