Skip to content

Last Output Capturing Does not Work #5449

Description

@schrieveslaach

Describe the bug

I activated shell integration with following config and when I run a command and I want to capture the output with Kitty nothing will be captured.

How to reproduce

  1. Use following config
   let-env config = {
      animate_prompt: false,
      shell_integration: true,
   }
  1. Run a command in Kitty
  2. Use ctrl + shift + g to capture the output
  3. Nothing will be shown in the pager that has been started by kitty

Expected behavior

  1. Use following config
   let-env config = {
      animate_prompt: false,
      shell_integration: true,
   }
  1. Run a command in Kitty
  2. Use ctrl + shift + g to capture the output
  3. The output will be shown in the pager that has been started by kitty

Screenshots

output

Configuration

key value
version 0.62.0
branch
tag
short_commit da10405
commit_hash da10405
commit_date 2022-05-03 21:50:33 +00:00
build_os linux-x86_64
rust_version rustc 1.60.0 (Arch Linux rust 1:1.60.0-1)
cargo_version cargo 1.60.0
pkg_version 0.62.0
build_time 2022-05-04 04:46:02 +00:00
build_rust_channel release
features database, dataframe, default, trash, which, zip
installed_plugins

Additional context

No response

Activity

  1. fdncred commented on May 5, 2022

    @fdncred
    Contributor

    I see your point. It looks like the markers may not be getting set properly. I get some but it's not right.
    Screen Shot 2022-05-05 at 6 51 18 AM

    Do you have the bandwidth to look at this and help us resolve this bug?

    I'm guessing it's related to my recent changes to add title and put it all under a different config point.

  2. added
    category:bug
    on May 5, 2022
  3. schrieveslaach commented on May 5, 2022

    @schrieveslaach
    ContributorAuthor

    I'll look into it.

  4. fdncred commented on May 5, 2022

    @fdncred
    Contributor

    I'll look into it.

    hopefully #5450 fixes the issue. we weren't flushing the ansi output.

  5. added this to the v0.63.0 milestone on May 5, 2022
  6. fdncred commented on May 9, 2022

    @fdncred
    Contributor

    I don't think this is working anymore. I'm guessing that the ansi escapes are in the wrong place now. i'm also wondering if this should be put it around where the pre_execution hook and pre_prompt hook are.

  7. reopened this on May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions