Skip to content

Commit 7506a35

Browse files
committed
Treat 0x0d as newline (Windows) as well
1 parent 45cffd8 commit 7506a35

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

click_async_plugins/debug.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ async def _monitor_stdin[ContextT: CliContext](
161161
elif (keyfunc := key_to_cmd.get(key)) is not None and callable(
162162
keyfunc.func
163163
):
164+
# TODO: enable async functions
164165
if (ret := keyfunc.func(clictx)) is not None:
165166
puts(ret)
166167

@@ -188,6 +189,7 @@ async def monitor_stdin_for_debug_commands[ContextT: CliContext](
188189

189190
map = {
190191
0xA: KeyAndFunc(r"\n", echo_newline),
192+
0xD: KeyAndFunc(r"\n", echo_newline),
191193
0x1B: KeyAndFunc("<Esc>", terminal_block),
192194
0x4: KeyAndFunc("^D", debug_info),
193195
0x2B: KeyAndFunc("+", increase_loglevel),

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ write_to = "_version.py"
77

88
[project]
99
name = "click-async-plugins"
10-
version = "0.7.0"
10+
version = "0.7.1"
1111
authors = [
1212
{ name = "martin f. krafft", email = "[email protected]" },
1313
]

0 commit comments

Comments
 (0)