sermo 0.3.1__tar.gz → 0.3.2__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.
- {sermo-0.3.1 → sermo-0.3.2}/PKG-INFO +2 -2
- {sermo-0.3.1 → sermo-0.3.2}/README.md +1 -1
- {sermo-0.3.1 → sermo-0.3.2}/pyproject.toml +1 -1
- {sermo-0.3.1 → sermo-0.3.2}/sermo.egg-info/PKG-INFO +2 -2
- {sermo-0.3.1 → sermo-0.3.2}/sermo_cli/tui.py +5 -2
- {sermo-0.3.1 → sermo-0.3.2}/sermo.egg-info/SOURCES.txt +0 -0
- {sermo-0.3.1 → sermo-0.3.2}/sermo.egg-info/dependency_links.txt +0 -0
- {sermo-0.3.1 → sermo-0.3.2}/sermo.egg-info/entry_points.txt +0 -0
- {sermo-0.3.1 → sermo-0.3.2}/sermo.egg-info/top_level.txt +0 -0
- {sermo-0.3.1 → sermo-0.3.2}/sermo_cli/__init__.py +0 -0
- {sermo-0.3.1 → sermo-0.3.2}/sermo_cli/__main__.py +0 -0
- {sermo-0.3.1 → sermo-0.3.2}/sermo_cli/api.py +0 -0
- {sermo-0.3.1 → sermo-0.3.2}/sermo_cli/cli.py +0 -0
- {sermo-0.3.1 → sermo-0.3.2}/sermo_cli/formatting.py +0 -0
- {sermo-0.3.1 → sermo-0.3.2}/sermo_cli/store.py +0 -0
- {sermo-0.3.1 → sermo-0.3.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sermo
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
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
|
-
- `
|
|
107
|
+
- `Esc` 或 `F10` 退出;输入框为空时也可以按 `q` 退出。
|
|
108
108
|
|
|
109
109
|
打开聊天:
|
|
110
110
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sermo
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
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
|
-
- `
|
|
107
|
+
- `Esc` 或 `F10` 退出;输入框为空时也可以按 `q` 退出。
|
|
108
108
|
|
|
109
109
|
打开聊天:
|
|
110
110
|
|
|
@@ -221,7 +221,10 @@ class SermoTui:
|
|
|
221
221
|
except curses.error:
|
|
222
222
|
return
|
|
223
223
|
|
|
224
|
-
if key in ("\
|
|
224
|
+
if key in ("\x03", "\x1b", curses.KEY_F10):
|
|
225
|
+
self.running = False
|
|
226
|
+
return
|
|
227
|
+
if key in ("q", "Q") and not self.input_line:
|
|
225
228
|
self.running = False
|
|
226
229
|
return
|
|
227
230
|
if key == curses.KEY_F5:
|
|
@@ -267,7 +270,7 @@ class SermoTui:
|
|
|
267
270
|
self._draw_vertical_separator(stdscr, 2, left_width, height - 3)
|
|
268
271
|
self._draw_messages(stdscr, 2, main_x, width - main_x, content_height)
|
|
269
272
|
self._draw_input(stdscr, input_y, main_x, width - main_x)
|
|
270
|
-
help_text = "↑/↓ 切换会话 · Enter 发送 · F5 刷新 · Ctrl+U
|
|
273
|
+
help_text = "↑/↓ 切换会话 · Enter 发送 · F5 刷新 · Ctrl+U 清空 · Esc/F10 退出 · 空输入 q 退出"
|
|
271
274
|
self._add(stdscr, help_y, 0, help_text, curses.A_DIM, width)
|
|
272
275
|
stdscr.move(input_y, min(width - 1, main_x + 2 + display_width(self.input_line)))
|
|
273
276
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|