sermo 0.3.2__tar.gz → 0.3.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sermo
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Command-line Sermo client
5
5
  Author: Sermo
6
6
  Project-URL: Homepage, https://sermo.jyonn.space
@@ -104,7 +104,7 @@ sermo tui
104
104
  - 直接输入文字,按 `Enter` 发送。
105
105
  - `F5` 手动刷新。
106
106
  - `Ctrl+U` 清空输入。
107
- - `Esc` 或 `F10` 退出;输入框为空时也可以按 `q` 退出。
107
+ - `Esc` 或 `F10` 退出。
108
108
 
109
109
  打开聊天:
110
110
 
@@ -84,7 +84,7 @@ sermo tui
84
84
  - 直接输入文字,按 `Enter` 发送。
85
85
  - `F5` 手动刷新。
86
86
  - `Ctrl+U` 清空输入。
87
- - `Esc` 或 `F10` 退出;输入框为空时也可以按 `q` 退出。
87
+ - `Esc` 或 `F10` 退出。
88
88
 
89
89
  打开聊天:
90
90
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sermo"
7
- version = "0.3.2"
7
+ version = "0.3.3"
8
8
  description = "Command-line Sermo client"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sermo
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Command-line Sermo client
5
5
  Author: Sermo
6
6
  Project-URL: Homepage, https://sermo.jyonn.space
@@ -104,7 +104,7 @@ sermo tui
104
104
  - 直接输入文字,按 `Enter` 发送。
105
105
  - `F5` 手动刷新。
106
106
  - `Ctrl+U` 清空输入。
107
- - `Esc` 或 `F10` 退出;输入框为空时也可以按 `q` 退出。
107
+ - `Esc` 或 `F10` 退出。
108
108
 
109
109
  打开聊天:
110
110
 
@@ -224,9 +224,6 @@ class SermoTui:
224
224
  if key in ("\x03", "\x1b", curses.KEY_F10):
225
225
  self.running = False
226
226
  return
227
- if key in ("q", "Q") and not self.input_line:
228
- self.running = False
229
- return
230
227
  if key == curses.KEY_F5:
231
228
  self._refresh_current()
232
229
  return
@@ -270,7 +267,7 @@ class SermoTui:
270
267
  self._draw_vertical_separator(stdscr, 2, left_width, height - 3)
271
268
  self._draw_messages(stdscr, 2, main_x, width - main_x, content_height)
272
269
  self._draw_input(stdscr, input_y, main_x, width - main_x)
273
- help_text = "↑/↓ 切换会话 · Enter 发送 · F5 刷新 · Ctrl+U 清空 · Esc/F10 退出 · 空输入 q 退出"
270
+ help_text = "↑/↓ 切换会话 · Enter 发送 · F5 刷新 · Ctrl+U 清空 · Esc/F10 退出"
274
271
  self._add(stdscr, help_y, 0, help_text, curses.A_DIM, width)
275
272
  stdscr.move(input_y, min(width - 1, main_x + 2 + display_width(self.input_line)))
276
273
  stdscr.refresh()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes