diff options
author | iroul <iroul@iroul-VirtualBox.(none)> | 2014-04-04 07:35:14 -0700 |
---|---|---|
committer | iroul <iroul@iroul-VirtualBox.(none)> | 2014-04-04 07:35:14 -0700 |
commit | afd34f2893a06a3aecf17e8e83b1df6ed2ae91a2 (patch) | |
tree | 851102abc55d91a1b76e63e9e89f9a7733da95b5 /res/script/README | |
parent | c4b028ad53f7b362a864de24828d7cc39ff67b0a (diff) | |
download | fqterm-afd34f2893a06a3aecf17e8e83b1df6ed2ae91a2.tar.xz |
move to my github.
Diffstat (limited to 'res/script/README')
-rw-r--r-- | res/script/README | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/res/script/README b/res/script/README new file mode 100644 index 0000000..c7dacbc --- /dev/null +++ b/res/script/README @@ -0,0 +1,112 @@ + +I've contacted one of the authors of CTerm, and got his permisson to use these scripts with FQTerm. +Other scripts were directly drawn from qterm0.4.1. + +Any file to be written to or read from should be in the format of UTF-8. + +Usage: + +sessionID=long(sys.argv[0]) + +formatError(sessionID) +get the traceback info +return string + +getArticle(sessionID, interval) +copy current article +return (string, success) + + +copyArticle(sessionID) +copy current article (obsolete) +return string + +getText(sessionID, line) +get text at line +return string + + +getAttrText(sessionID, line) +get attr text at line +return string + +sendString(sessionID, str) +send string to server +return number of bytes written + + +sendParsedString(sessionID, str) +send string with escape +return number of bytes written + +caretX(sessionID) +caret x +return int + +caretY(sessionID) +caret y +return int + + +columns(sessionID) +screen width +return int + + +rows(sessionID) +screen height +return int + + +isConnected(sessionID) +connected to server or not +return int + +disconnect(sessionID) +disconnect from server + + +reconnect(sessionID) +reconnect + + +getBBSCodec(sessionID) +get the bbs encoding, GBK or Big5 +return string + +getAddress(sessionID) +get the bbs address +return string + +getPort(sessionID) +get the bbs port number +return int + +getProtocol(sessionID) +get the bbs protocol, 0/1/2 TELNET/SSH1/SSH2 +return int + +getReplyKey(sessionID) +get the key to reply messages +return string (wtf...?) + + +getURL(sessionID) +get the url string under mouse (not sure if works) +return string + + +previewImage(sessionID, url) +preview the image link + + +fromUTF8(str, codec) +decode from utf8 to string in specified codec +return string + + +toUTF8(str, codec) +decode from string in specified codec to utf8 +return string + + |