cht電腦資訊
adm Find login register

[patch] kanru 寫的中打遊戲

caleb
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
1subject: [patch] kanru 寫的中打遊戲Promote 0 Bookmark 02008-10-16quote  

原文:http://hyperrate.com/thread.php?tid=7167#7167

coolcd

今天玩了 kanru 寫的中打遊戲,終於可以重現小灰了,只要執行 ./tw (打字練習的執行檔),輸入時,如按到 q,會無預警退出遊戲,然後,再次輸入中文時,就可以遇到小灰了。

我在執行 gcin 時加了 GCIN_DBG_TMP=1 GCIN_ERR_CEDUMP=1 ,不過好像沒 debug 到什麼訊息:

gcin get env LC_CTYPE=zh_TW.UTF-8  LC_ALL=(null)  LANG=zh_TW.UTF-8
gcin XIM will use zh_TW.UTF-8 as the default encoding
load_gtab_list /usr/share/gcin/table/gtab.list
-- /tmp/gcin-chia/socket-:0.0-gcin2
connection via TCP is disabled
gtab file /usr/share/gcin/table/ar30.gtab
keybits:6
PHRASE_AUTO_SKIP_ENDKEY
KeyS 41
abcdefghijklmnopqrstuvwxyz./;,1234567890
inmdno: 8 th.KeyS:41
chars 25012
inp->phrnum: 50
key64: 0
----------------- do_ exit ----------------

在執行 gcin 的 console 中,出現:

(gcin:13001): Gtk-CRITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed
(gcin:13001): Gtk-CRITICAL **: gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed
(gcin:13001): Gtk-CRITICAL **: gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed
(gcin:13001): Gtk-CRITICAL **: gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed
(gcin:13001): Gtk-CRITICAL **: gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed
(gcin:13001): Gtk-CRITICAL **: gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed

不過我不確定這是不是我的 window manager 是用 awesome 的關係

patch 放在附件,應該不會無預警跳出了。

edited: 1
coolcd
joined: 2008-01-21
posted: 2601
promoted: 348
bookmarked: 95
2subject: Promote 0 Bookmark 02008-10-16quote  

現在按 q 沒問題了,謝謝

第一次實際應用到 patch 啊,好興奮 XD

coolcd
joined: 2008-01-21
posted: 2601
promoted: 348
bookmarked: 95
3subject: Promote 0 Bookmark 02009-02-16quote  

現在才發覺,原來可以調整速度、自訂練習字的清單

跟我一樣後知後覺的人, 用 ./tw --help 看一下吧

cht電腦資訊
adm Find login register
views:13341