linux:ansi2html

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:ansi2html [2022/09/20 04:57] ともやんlinux:ansi2html [2023/09/09 15:38] (現在) – [スタイル一覧] ともやん
行 8: 行 8:
  
 ===== インストール ===== ===== インストール =====
-**ansi2html** コマンドは **colorized-logs** または **python3-ansi2html** パッケージに含まれています😊**pipetty** コマンドなども必要な場合は **colorized-logs** パッケージをインストールする。\\+**ansi2html** コマンドは **colorized-logs** または **python3-ansi2html** パッケージに含まれています😊\\ 
 +**pipetty** コマンドなども必要な場合は **colorized-logs** パッケージをインストールする。\\
  
 **Fedora**\\ **Fedora**\\
行 530: 行 531:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<span class=GRN>$</span> pipetty make -C build | ansi2html | tee build.html+<class=GRN>$</b> <b class=HIY>pipetty</b> make <b class=HIK>-C</b> build | <b class=HIY>ansi2html</b> <b class=HIY>tee</b> build.html
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result_long><html><pre> <WRAP color_result_long><html><pre>
行 1036: 行 1037:
 </WRAP> </WRAP>
  
-<WRAP mincode_long><code html fedora_ls-al.html>+<WRAP color_term> 
 +<WRAP color_mincode_long><code html fedora_ls-al.html>
 <!DOCTYPE html> <!DOCTYPE html>
 <html> <html>
行 1103: 行 1105:
 </html> </html>
 </code></WRAP> </code></WRAP>
 +</WRAP>
 +
  
 ===== 小枝🤤 画面出力と同時に ansi2html で HTML ファイルにも同時出力する🤔 ===== ===== 小枝🤤 画面出力と同時に ansi2html で HTML ファイルにも同時出力する🤔 =====
行 1292: 行 1296:
 <span class=GRN>$</span> cat ls-l.html <span class=GRN>$</span> cat ls-l.html
 </pre></html></WRAP> </pre></html></WRAP>
-<WRAP color_result_long><code css>+<WRAP color_mincode_long><code javascript>
 <!DOCTYPE html> <!DOCTYPE html>
 <html> <html>
行 1363: 行 1367:
 </WRAP> </WRAP>
  
-==== スタイル一覧 ====+===== スタイル一覧 =====
 <html> <html>
   <style>   <style>
行 1434: 行 1438:
 </WRAP> </WRAP>
 </WRAP> </WRAP>
 +
 +<WRAP color_term>
 +<WRAP color_mincode><html><pre>
 +<b class=BSc>
 +&lt;b class=BSc>
 +</b>
 +<b class=BScBLU>
 +&lt;span class=BScBLU>
 +</b>
 +<b class=BScHGRY>
 +&lt;b class=BScHGRY>
 +</b>
 +<b class=BScINDG>
 +&lt;b class=BScINDG>
 +</b>
 +</pre></html></WRAP>
 +</WRAP>
 +
 ※ ansi2html オリジナルカラーから当サイトテーマ用にアレンジしています🤔\\ ※ ansi2html オリジナルカラーから当サイトテーマ用にアレンジしています🤔\\
 +
 +==== Dokuwiki 雛形 ====
 +<WRAP color_term>
 +<WRAP color_mincode><code html>
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>command</b> subcommand <b class=HIK>--options</b> <b class=DiYE>...</b>
 +</pre></html></WRAP>
 +
 +<WRAP color_result><html><pre>
 +</pre></html></WRAP>
 +
 +<WRAP color_result_long><html><pre>
 +</pre></html></WRAP>
 +
 +<WRAP color_mincode><html><pre>
 +</pre></html></WRAP>
 +
 +<WRAP color_mincode_long><html><pre>
 +</pre></html></WRAP>
 +</WRAP>
 +</code></WRAP>
 +</WRAP>
 +
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>command</b> subcommand <b class=HIK>--options</b> <b class=DiYE>...</b>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +</pre></html></WRAP>
 +</WRAP>
 +
 +<WRAP color_term>
 +<WRAP color_mincode><code html>
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +(pyJupyterLab) <b class=GRN>$</b> <b class=HIY>pip</b> install jupyterlab-nvdashboard
 +</pre></html></WRAP>
 +
 +<WRAP color_result><html><pre>
 +...
 +  Downloading https://www.piwheels.org/simple/bokeh/bokeh-2.4.3-py3-none-any.whl (18.5 MB)
 +     <b class=PipBAR>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</b> <b class=GRN>18.5/18.5 MB</b> <b class=RED>130.2 kB/s</b> eta <b class=CYN>0:00:00</b>
 +</pre></html></WRAP>
 +</WRAP>
 +</code></WRAP>
 +</WRAP>
 +
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +(pyJupyterLab) <b class=GRN>$</b> <b class=HIY>pip</b> install jupyterlab-nvdashboard
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +...
 +  Downloading https://www.piwheels.org/simple/bokeh/bokeh-2.4.3-py3-none-any.whl (18.5 MB)
 +     <b class=PipBAR>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</b> <b class=GRN>18.5/18.5 MB</b> <b class=RED>130.2 kB/s</b> eta <b class=CYN>0:00:00</b>
 +</pre></html></WRAP>
 +</WRAP>
  
 ===== ansi2html に処理結果をパイプする場合は '--color=auto' ではなく '--color=always' を指定する ===== ===== ansi2html に処理結果をパイプする場合は '--color=auto' ではなく '--color=always' を指定する =====
行 1440: 行 1520:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<span class=GRN>$</span> alias+<class=GRN>$</b> <b class=HIY>alias</b>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
 +alias diff='diff --color=auto'
 alias egrep='egrep --color=auto' alias egrep='egrep --color=auto'
 alias fgrep='fgrep --color=auto' alias fgrep='fgrep --color=auto'
行 1458: 行 1539:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<span class=GRN>$</span> ls -l | cat+<class=GRN>$</b> <b class=HIY>ls</b> <b class=HIK>-l</b> <b class=HIY>cat</b>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
行 1500: 行 1581:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<span class=GRN>$</span> ls -l --color=always | cat+<span class=GRN>$</span> <b class=HIY>ls</b> <b class=HIK>-l --color=always</b> <b class=HIY>cat</b>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
  • linux/ansi2html.1663617456.txt.gz
  • 最終更新: 2022/09/20 04:57
  • by ともやん