From 590a4d70ee9c8883823d92b5b1b6c4255ba6538f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 6 Apr 2020 09:35:16 +0530 Subject: [PATCH] Fix --stdin-add-formatting not working Fixes #2512 --- docs/changelog.rst | 2 ++ kitty/launch.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index dea23b7bf..a2232df38 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -12,6 +12,8 @@ To update |kitty|, :doc:`follow the instructions `. - X11: Fix crash when doing drag and drop from some applications (:iss:`2505`) +- Fix :option:`launch --stdin-add-formatting` not working (:iss:`2512`) + 0.17.2 [2020-03-29] -------------------- diff --git a/kitty/launch.py b/kitty/launch.py index 41ecddff7..9dcd54cb4 100644 --- a/kitty/launch.py +++ b/kitty/launch.py @@ -277,6 +277,9 @@ def launch(boss: Boss, opts: LaunchCLIOptions, args: List[str], target_tab: Opti kw['overlay_for'] = active.id if opts.stdin_source and opts.stdin_source != 'none': q = opts.stdin_source + if opts.stdin_add_formatting: + if q in ('@screen', '@screen_scrollback', '@alternate', '@alternate_scrollback'): + q = '@ansi_' + q[1:] if opts.stdin_add_line_wrap_markers: q += '_wrap' penv, stdin = boss.process_stdin_source(window=active, stdin=q)