Git Product home page Git Product logo

Comments (12)

lonnywong avatar lonnywong commented on August 25, 2024 1

我的是装git自带的

git bash ?

  • git bash 中运行 mintty -V,当显示 3.6.1Ctrl + C 是有问题的,当显示 3.6.4Ctrl + C 是没问题的:

    $ mintty -V
    mintty 3.6.1 (x86_64-pc-msys)
    © 2022 Thomas Wolff, Andy Koppe
    License GPLv3+: GNU GPL version 3 or later
    There is no warranty, to the extent permitted by law.
    
    $ mintty -V
    mintty 3.6.4 (x86_64-pc-msys)
    © 2023 Thomas Wolff, Andy Koppe
    License GPLv3+: GNU GPL version 3 or later
    There is no warranty, to the extent permitted by law.
    
  • 我也不知为什么我的电脑会有两上不同的版本:
    image

  • git bash 中运行 mintty,会弹出下面的对话框,我随便选了第一个:
    git bash mintty

  • mintty 中运行 which tssh,我是通过 scoop install tssh 安装的 tssh

    $ which tssh
    /c/Users/lonny/scoop/shims/tssh
    
  • mintty 中运行 tssh -v,是当前的最新版本:

    $ tssh -v
    trzsz ssh 0.1.19
    
  • mintty 中登录 Linux 服务器,然后按 Ctrl + C

    $ tssh u22
    (ins)lonny@UbuntuVM:~$ ^C
    (ins)lonny@UbuntuVM:~$ ^C
    (ins)lonny@UbuntuVM:~$ ^C
    (ins)lonny@UbuntuVM:~$
    

from trzsz-ssh.

lonnywong avatar lonnywong commented on August 25, 2024

不符合预期。只是 mintty 这样?安装的是 Windows 版 tssh 吗?

from trzsz-ssh.

SadSock avatar SadSock commented on August 25, 2024

对,Windows terminal就不是这样。问题可能出在哪里?

from trzsz-ssh.

lonnywong avatar lonnywong commented on August 25, 2024

在你按下 ctrl + c 时,可能 mintty 直接杀了 tssh 进程,并没有将 ctrl + c 事件转发给 tssh 进程处理。

ctrl + c 默认是让进程退出,但是进程可以注册自己来处理 ctrl + c 事件。不知 mintty 为什么不遵守这个规则。

你试试加 .exetssh.exe 运行,看看会不会按 Windows 的方式来处理。

from trzsz-ssh.

SadSock avatar SadSock commented on August 25, 2024

在你按下 ctrl + c 时,可能 mintty 直接杀了 tssh 进程,并没有将 ctrl + c 事件转发给 tssh 进程处理。

ctrl + c 默认是让进程退出,但是进程可以注册自己来处理 ctrl + c 事件。不知 mintty 为什么不遵守这个规则。

你试试加 .exetssh.exe 运行,看看会不会按 Windows 的方式来处理。

我就是用tssh.exe来运行的

from trzsz-ssh.

lonnywong avatar lonnywong commented on August 25, 2024

你可以试试 winpty tssh 怎么样,可能需要手工安装 winpty。

from trzsz-ssh.

SadSock avatar SadSock commented on August 25, 2024

你可以试试 winpty tssh 怎么样,可能需要手工安装 winpty。

我是在断网的环境下用的,winpty可以支持在断网的环境吗?

from trzsz-ssh.

lonnywong avatar lonnywong commented on August 25, 2024

应该支持的吧,只要你能连通你的服务器就行。

from trzsz-ssh.

lonnywong avatar lonnywong commented on August 25, 2024

@SadSock 你的 mintty 是怎么安装的?我安装了 Cygwin 之后,里面默认有个 mintty,先打开 cygwin ,在 cygwin 中运行 mintty,再在 mintty 中运行 tssh xxx 登录 Linux 服务器,Ctrl + C 并不会退出。

from trzsz-ssh.

SadSock avatar SadSock commented on August 25, 2024

@SadSock 你的 mintty 是怎么安装的?我安装了 Cygwin 之后,里面默认有个 mintty,先打开 cygwin ,在 cygwin 中运行 mintty,再在 mintty 中运行 tssh xxx 登录 Linux 服务器,Ctrl + C 并不会退出。

我的是装git自带的

from trzsz-ssh.

SadSock avatar SadSock commented on August 25, 2024
  • mintty -V

这样啊,我看了一下,我的是显示的是3.6.3,我升级一下试试。

from trzsz-ssh.

SadSock avatar SadSock commented on August 25, 2024

换了新版本的mintty就好了

from trzsz-ssh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.