Debian Codegraph @

debian/patches/patch.update-smth-hostname

raw
1 Description: update SMTH bbs hostname
2 The SMTH bbs site's hostname had changed.
3 .
4 Author: xiao sheng wen <[email protected]>
5 Forwarded: https://github.com/mytbk/fqterm/issues/37
6 Last-Update: 2023-11-16
7
8 ---
9
10 --- fqterm-0.9.10.1.orig/res/userconf/address.cfg.orig
11 +++ fqterm-0.9.10.1/res/userconf/address.cfg.orig
12 @@ -1,5 +1,5 @@
13 [bbs 0]
14 -addr=bbs.newsmth.org
15 +addr=bbs.mysmth.net
16 alwayshighlight=0
17 ansicolor=1
18 antiidlestring=^@
19 @@ -50,7 +50,7 @@ termtype=vt102
20 user=
21
22 [bbs 1]
23 -addr=newsmth.net
24 +addr=www.mysmth.net
25 alwayshighlight=0
26 ansicolor=1
27 antiidlestring=^@
28
29 --- fqterm-0.9.10.1.orig/res/userconf/fqterm.cfg.orig
30 +++ fqterm-0.9.10.1/res/userconf/fqterm.cfg.orig
31 @@ -53,7 +53,7 @@ wordwrap=72
32 xim=0
33
34 [quick 0]
35 -addr=newsmth.net
36 +addr=bbs.mysmth.net
37 port=22
38 protocol=1
39
40 --- fqterm-0.9.10.1.orig/src/common/fqterm_param.cpp
41 +++ fqterm-0.9.10.1/src/common/fqterm_param.cpp
42 @@ -26,7 +26,7 @@ namespace FQTerm {
43
44 FQTermParam::FQTermParam() {
45 name_ = "NEW SMTH";
46 - hostAddress_ = "newsmth.net";
47 + hostAddress_ = "mysmth.net";
48 port_ = 23;
49 hostType_ = 0; // 0--BBS 1--*NIX
50 isAutoLogin_ = false;
51
52 --- fqterm-0.9.10.1.orig/src/fqterm/fqterm_screen.cpp
53 +++ fqterm-0.9.10.1/src/fqterm/fqterm_screen.cpp
54 @@ -1585,7 +1585,7 @@ void FQTermScreen::updateFixedPitchInfo(
55 QString cnTestString = QString::fromUtf8("\xe5\x9c\xb0\xe6\x96\xb9\xe6\x94\xbf\xe5\xba\x9c");
56 cnFixedPitch_ = (QFontMetrics(cnFont).width(cnTestString) ==
57 cnTestString.length() * QFontMetrics(cnFont).width(cnTestString.at(0)));
58 - QString enTestString = QString::fromUtf8("www.newsmth.net");
59 + QString enTestString = QString::fromUtf8("www.mysmth.net");
60 enFixedPitch_ = QFontInfo(enFont).fixedPitch() &&
61 (QFontMetrics(enFont).width(enTestString) == enTestString.length() * QFontMetrics(enFont).width(enTestString.at(0)));
62
63 --- fqterm-0.9.10.1.orig/src/terminal/fqterm_buffer.cpp
64 +++ fqterm-0.9.10.1/src/terminal/fqterm_buffer.cpp
65 @@ -432,7 +432,7 @@ void FQTermBuffer::moveCaretOffset(int c
66 // found caret_.column_ is out of bounds in other case, we should
67 // correct it first.
68 if (is_bbs_) {
69 - // but the BBS (newsmth.net) assumes that the caret could be
70 + // but the BBS (mysmth.net) assumes that the caret could be
71 // located out of the screen :(
72 } else {
73 caret_.column_ = num_columns_ - 1;
74
75 diff --git a/doc/Quickstart.md b/doc/Quickstart.md
76 index 57076f7..cd4d551 100644
77 --- a/doc/Quickstart.md
78 +++ b/doc/Quickstart.md
79 @@ -5,14 +5,14 @@ FQTerm是一个易用的BBS客户端,以下将演示用FQTerm连接BBS的方
80 **快速连接**是连接BBS的常用方式。快速连接的快捷键为```F3```.
81
82 按下```F3```后,FQTerm会弹出一个快速连接窗口,此时需要填写的内容如下:
83 -- 主机名: 需要连接的服务器,如*newsmth.net*(水木社区),*bdwm.net*(北大未名)
84 +- 主机名: 需要连接的服务器,如*mysmth.net*(水木社区),*bdwm.net*(北大未名)
85 等等,也可以填IP地址,如*162.105.205.23*(北大未名的IP地址)
86 - 协议: FQTerm支持Telnet和SSH协议。几乎所有BBS都支持Telnet.现在有不少
87 BBS都支持SSH协议,为了更高的安全性,建议选择SSH.
88 - 端口: Telnet和SSH默认端口分别为23和22. 如果远程主机没使用默认端口,
89 则需要勾选**端口**,并填写端口号。
90
91 -以登录水木社区为例,我们在主机名处填写*newsmth.net*,协议选*SSH*,
92 +以登录水木社区为例,我们在主机名处填写*mysmth.net*,协议选*SSH*,
93 端口默认,点击**连接**后,填用户名和密码便登上了水木社区。
94
95 ### BBS的操作