summaryrefslogtreecommitdiff
path: root/res/unite
diff options
context:
space:
mode:
Diffstat (limited to 'res/unite')
-rw-r--r--res/unite/exit24
-rw-r--r--res/unite/help24
-rw-r--r--res/unite/script-doc199
-rw-r--r--res/unite/shortcut-doc10
-rw-r--r--res/unite/ssh-unix-doc17
-rw-r--r--res/unite/welcome24
6 files changed, 298 insertions, 0 deletions
diff --git a/res/unite/exit b/res/unite/exit
new file mode 100644
index 0000000..b6852af
--- /dev/null
+++ b/res/unite/exit
@@ -0,0 +1,24 @@
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ ╔═[*]═══ Message ══════╗ 
+ ║ ║ 
+ ║ [1] 返回FQ BBS ║ 
+ ║ [2] 离开本BBS站 ║ 
+ ║ ║ 
+ ║________________________________║ 
+ ║ ║ 
+ ║   取消(C) ▃ ║ 
+ ║ ▃▃▃▃▃▃ ║ 
+ ╚════════════════╝ 
+ 
+ 
+ 
+ 
+ 
+ 
+  \ No newline at end of file
diff --git a/res/unite/help b/res/unite/help
new file mode 100644
index 0000000..3b0aa0c
--- /dev/null
+++ b/res/unite/help
@@ -0,0 +1,24 @@
+帮助 FQTerm BBS  
+  
+ ┌─ ╱╲╱╲ Let's fq~ ───────────────────────┐ 
+ ╱╲︳ │ │───────────────────────────────┤ 
+ │ │ ╱╱ ̄╲  │ 
+ ╲ ╲|/╱ ̄ ̄  code.google.com/p/fqterm  │ 
+ │  ̄ ̄·  │ 
+ ├─────────────────────────────────────┤ 
+ └────────────────────────────────[FQ TEAM]┘ 
+ 
+ S) 脚本文档 
+ T) 快捷键 
+ U) 连接Unix主机 F
+ X) 退出 是 Q .
+   ╱╲╱╲ 一 · 
+  ╱╲︳ │ │ 也 心 种 ∵ 
+  │ │ ╱╱ ̄╲ 生 是 情 :· 
+  ╲ ╲|/╱ ̄ ̄ 活 一 .∵: 
+   ̄ ̄· 方 种 .∴· 
+  ` . 式 .·∴` 
+   ∵: .. ..:∵.:·` 
+  `·∴ .:∴:∴‥`` 
+  
+      \ No newline at end of file
diff --git a/res/unite/script-doc b/res/unite/script-doc
new file mode 100644
index 0000000..b23f26f
--- /dev/null
+++ b/res/unite/script-doc
@@ -0,0 +1,199 @@
+
+FQTerm支持javascript和Python脚本
+
+javascript运行方式是在脚本菜单中选择运行脚本
+
+而Python则需要选择运行Python脚本
+
+如果你的菜单中没有"运行Python脚本",说明编译时未将Python支持编译进FQTerm,请与作者或者打包者联系
+
+*编译fqterm时,若要支持Python,请在环境变量中包含python2*.lib的路径
+
+现在fqterm对脚本回调的支持仍然处于试验阶段,所以没有记载在这里。
+
+
+以下是js的api列表,你基本可以在js中像调用普通的javascript function一样调用这些函数
+
+QString类型的返回值将被转变为字符串,而QList类型则会被转变为一个列表
+
+如果需要sleep,则需要fqterm.import(utils.js)。sleep是忙等,参数为ms。
+
+调用方式:在js脚本中,fqterm.function()即可
+
+ //import另一个脚本,如果是相对路径,则先在脚本当前路径搜索
+ //然后在script目录下搜索
+ bool import(const QString& filename);
+
+ //timer
+ int setInterval(int ms, const QScriptValue& func);
+ void clearInterval(int id);
+
+ //ui functions.
+ void msgBox(const QString& msg);
+
+ //bbs ui functions
+ int caretX();
+ int caretY();
+
+ QString getText(int row);
+ QString getTextAt(int row, int column, int len);
+ //当column是一个字的后半部分时,用full的这个版本可以得到这个字
+ QString getFullTextAt(int row, int column, int len);
+ QString getAttrText(int row);
+ QString getAttrTextAt(int row, int column, int len);
+ QString getFullAttrTextAt(int row, int column, int len);
+
+ void sendString(const QString& str);
+ void sendParsedString(const QString& str);
+
+ int columns();
+ int rows();
+
+ bool isConnected();
+ void disconnect();
+ void reconnect();
+
+ QString getBBSCodec();
+ QString getAddress();
+ int getPort();
+ int getProtocol();
+
+ QString getReplyKey();
+
+ QString getURL();
+ QString getIP();
+ void previewImage(const QString& url);
+ QString copyArticle();
+ void openUrl(const QString & url);
+ QString getSelect(bool color_copy);
+ QList<int> mapToChar(int screenX, int screenY);
+ //next 2 functions are map screen to char for x, y.
+ int charX(int screenX);
+ int charY(int screenY);
+ //mouse position is given in screen coordinate.
+ int mouseX();
+ int mouseY();
+
+ //auxiliary functions.
+ //should be move to some other class.
+ //qt script provides so poor extensions to js.
+ void writeFile(const QString& filename, const QString& str);
+ void appendFile(const QString& filename, const QString& str);
+ QString readFile(const QString& filename);
+ QStringList readFolder(const QString& path);
+ QString platform();
+ bool makePath(const QString& path);
+ QString newLine();
+
+
+以下是Python的API列表,具体用法还请参考script目录下的脚本示例
+
+需要注意的是
+
+1.需要import fqterm,才能使用fqterm的API
+2.long(sys.argv[0])是当前窗口的标记
+
+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
+
+
diff --git a/res/unite/shortcut-doc b/res/unite/shortcut-doc
new file mode 100644
index 0000000..6a08262
--- /dev/null
+++ b/res/unite/shortcut-doc
@@ -0,0 +1,10 @@
+FQTerm支持两种快捷键设置
+
+1.系统快捷键,请选择Option-->Shortcut Setting菜单项,然后选中对应功能的快捷键一列,按下你需要的快捷键。注意Del键是保留的,用以清空快捷键。
+
+
+2.自定义快捷键,可以通过点击工具栏上的键盘图标来设置。这里需要手工输入快捷键代码(如Ctrl+Alt+C),并且在按键栏中输入相应的按键序列。需要注意的一点是,Enter用Return代替,即使用Ctrl+Return,不能使用Ctrl+Enter。
+
+注意Ctrl用^表示,比如Ctrl-P就是^P,回车是^M,方向键请用下面的提示按钮输入。
+
+F1至F12的序列是^[[11~ ^[[12~ ^[[13~ ^[[14~ ^[[15~ ^[[17~ ^[[18~ ^[[19~ ^[[20~ ^[[21~ ^[[23~ ^[[24~ \ No newline at end of file
diff --git a/res/unite/ssh-unix-doc b/res/unite/ssh-unix-doc
new file mode 100644
index 0000000..7d5d6fa
--- /dev/null
+++ b/res/unite/ssh-unix-doc
@@ -0,0 +1,17 @@
+1.在站点设置-->其他选项卡中关闭响铃。窗口振动会自动被关闭。
+
+2.在站点设置-->其他选项卡中关闭防发呆,否则会有防发呆字符串被发送至服务器。
+
+3.在站点设置-->属性选项卡中设置正确的编码设置,这和你的*nix主机设置有关,我们现在支持UTF8编码。
+
+4.使用UTF8时我们无法使用debug模式,否则这会导致一些边界检查问题和crash,在以后的版本中,我们会试图解决这个问题。
+
+5.在站点设置-->键盘中将退格键设置为"^?"。
+
+6.在选项-->偏好中关闭ENQ。
+
+7.在站点设置-->其他选项卡关闭zmodem下载。
+
+8.在站点设置-->终端选项卡中将终端类型设置为vt102或xterm。
+
+9.现在我们支持终端窗口行列数的变化,但是终端窗口的大小限定为640x480。
diff --git a/res/unite/welcome b/res/unite/welcome
new file mode 100644
index 0000000..e8cf95e
--- /dev/null
+++ b/res/unite/welcome
@@ -0,0 +1,24 @@
+主选单 FQTerm BBS  
+  
+ ┌─ ╱╲╱╲ Let's fq~~ ───────────────────────┐ 
+ ╱╲︳ │ │───────────────────────────────┤ 
+ │ │ ╱╱ ̄╲  │ 
+ ╲ ╲|/╱ ̄ ̄  code.google.com/p/fqterm  │ 
+ │  ̄ ̄·  │ 
+ ├─────────────────────────────────────┤ 
+ └────────────────────────────────[FQ TEAM]┘ 
+ 
+ H) 帮助文档 
+ X) 退出 
+ F 
+  是 Q . 
+   ╱╲╱╲ 一 · 
+  ╱╲︳ │ │ 也 心 种 ∵ 
+  │ │ ╱╱ ̄╲ 生 是 情 :· 
+  ╲ ╲|/╱ ̄ ̄ 活 一 .∵: 
+   ̄ ̄· 方 种 .∴· 
+  ` . 式 .·∴` 
+   ∵: .. ..:∵.:·` 
+  `·∴ .:∴:∴‥`` 
+  
+      \ No newline at end of file