이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
도움말
로그인
cacalabs
/
libcaca
의 미러
https://github.com/cacalabs/libcaca.git
보기
1
좋아요
0
포크
0
코드
이슈
0
릴리즈
7
위키
활동
소스 검색
* Add Caca::Event#quit? to make tests nicer
tags/v0.99.beta14
Pascal Terjan
pterjan
17 년 전
부모
095a3d1c5f
커밋
0de0992e57
2개의 변경된 파일
과
9개의 추가작업
그리고
2개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
ruby/lib/caca.rb
+1
-2
ruby/ruby-caca.dox
+ 8
- 0
ruby/lib/caca.rb
파일 보기
@@ -10,6 +10,9 @@ module Caca
i = i.to_i
const_get("TYPE")|i
end
def quit?
false
end
class Key
attr_reader :ch, :utf32, :utf8
def initialize(ch, utf32, utf8)
@@ -28,5 +31,10 @@ module Caca
@w, @h = w, h
end
end
class Quit
def quit?
true
end
end
end
end
+ 1
- 2
ruby/ruby-caca.dox
파일 보기
@@ -56,8 +56,7 @@ c.draw_thin_polyline([[0,0], [0,2], [5,2], [0,0]])
d = Caca::Display.new(c)
d.title = "Test !"
d.refresh
while((e = d.get_event(Caca::Event, -1)) &&
! e.kind_of?(Caca::Event::Quit))
while((e = d.get_event(Caca::Event, -1)) && ! e.quit?)
p e
d.refresh
end
쓰기
미리보기
불러오는 중...
취소
저장