Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

LogViewer doesn't handle ANSI "CSI Ps K" (Erase in Line) control character

オープン
#101 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

Start at the LogViewer entry point and trace how ANSI control characters are parsed, focusing on CSI Ps K (Erase in Line). Use the JavaScript reproduction in the issue as the first check; done means the secret message is rendered without the duplicated shell prompt or unintended hidden text.

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

説明

When you debug a node ( Compute -> Nodes -> SomeNode -> Terminal, or via CLI oc debug node/[nodeName] ) and you open a separate console window where you open up the spawned debug pods logs, the shell prompt (e.g sh-5.1#) is shown twice at the start of the logs.

This is not shown when oc logs is used because ANSI control characters are used to hide the first sh-5.1.

reproducing example:

import { LogViewer } from '@patternfly/react-log-viewer';

// shows "secret message"
export default () => (
  [LogViewer data="\x1b[0msecret message\r\x1b[K" /]
);

vs.

h1. shows nothing
echo -e "\x1b[0msecret message\r\x1b[K"

xref https://redhat.atlassian.net/browse/OCPBUGS-54247


Jira Issue: PF-3123

主要言語
TypeScript
スター
34
フォーク
19
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

patternfly/react-log-viewer のほかの issue

patternfly/react-log-viewer の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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