gitui-org / gitui-org/gitui

listen for SIGINT signal instead of exit key bind

オープン
#1,976 コメント 13 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Rust
スター
22.5k
フォーク
774
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
Remap Ctrl+Q to quit, with Ctrl+C being now available for copy/paste keybindings in terminal config:
```console
stty intr ^Q
stty -ixon
stty -ixoff
```

**Expected behavior**
Ctrl+Q should now be interpreted as SIGINT. This works for most applications, but because GitUI enables raw terminal mode, it is up to GitUI to manually respect system settings.

**Context (please complete the following information):**
- OS/Distro + Version: NixOS 23.11
- GitUI Version: gitui 0.24.3
- Rust version: unknown

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、GitUI の raw terminal mode と現在の終了キー処理を追跡し、次に端末入力とシグナルがどのように処理されるかを調べます。提供された stty 設定で問題を再現し、設定された SIGINT キーで GitUI が中断される一方、Ctrl+C は端末のキーバインディングで引き続き使用できることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
cli, operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。