LoginSignup
0
0

Eclipse Console: "[32m" "[1m" 等を除外

Last updated at Posted at 2024-06-29

実現したいこと

Eclipse Console の出力をコピペすると現れる、"[32m" "[1m" 等のテキストを除外

前提

以下の段落の内容は Perplexity の出力を検証したうえで引用しています

謎のテキストの正体 : ANSIエスケープコード

  • [32m: テキストの色を緑に設定
  • [1m: テキストを太字に設定
  • [36m: テキストの色をシアンに設定
  • [1;31m: テキストを太字の赤に設定
  • [m: すべてのスタイルをリセット

解決方法

  1. Eclipseのメニューから「Window」 > 「Preferences」を選択
  2. 「Run/Debug」 > 「Console」 > 「ANSI Support」に移動
    「Put RTF in Clipboard」オプションをオフ

環境

Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components) Version: 2023-12 (4.30.0)

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0