This file is indexed.

/usr/share/doc/HOWTO/ja-html/Colour-ls-4.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>Colours with Linux terminals ÆüËܸìÈÇ: ¤É¤ó¤Ê¿§¤¬»È¤¨¤ë¤«?</TITLE>
 <LINK HREF="Colour-ls-5.html" REL=next>
 <LINK HREF="Colour-ls-3.html" REL=previous>
 <LINK HREF="Colour-ls.html#toc4" REL=contents>
</HEAD>
<BODY>
<A HREF="Colour-ls-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Colour-ls-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Colour-ls.html#toc4">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s4">4. ¤É¤ó¤Ê¿§¤¬»È¤¨¤ë¤«?</A></H2>

<P>°Ê²¼¤Î¥¹¥¯¥ê¥×¥È¤Ï(bash ÍѤΥ¹¥¯¥ê¥×¥È¤òÁ÷ÉÕ¤·¤Æ¤¯¤À¤µ¤Ã¤¿Â¿¤¯¤ÎÊý¡¹¤Ë
´¶¼Õ¤·¤Þ¤¹)¡¢»ÈÍÑÃæ¤Î¥³¥ó¥½¡¼¥ë¤¬É½¼¨¤Ç¤­¤ë¿§¤òÁ´¤Æɽ¼¨¤¹¤ë¤¿¤á¤Î¤â¤Î
¤Ç¤¹¡£¿§¤¬½Ð¤Ê¤¤¾ì¹ç¡¢¤ª»È¤¤¤Î¥³¥ó¥½¡¼¥ë¤Ï ANSI ¤Î¥«¥é¡¼ÁªÂòµ¡Ç½¤ò¥µ¥Ý¡¼
¥È¤·¤Æ¤¤¤Þ¤»¤ó¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
#!/bin/bash
# Display ANSI colours.
#
esc="\033["
echo -n " _ _ _ _ _40 _ _ _ 41_ _ _ _42 _ _ _ 43" 
echo "_ _ _ 44_ _ _ _45 _ _ _ 46_ _ _ _47 _"
for fore in 30 31 32 33 34 35 36 37; do
  line1="$fore  " 
  line2="    "
  for back in 40 41 42 43 44 45 46 47; do
    line1="${line1}${esc}${back};${fore}m Normal  ${esc}0m"
    line2="${line2}${esc}${back};${fore};1m Bold    ${esc}0m"
  done
  echo -e "$line1\n$line2"
done
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>²èÌ̤κ¸Â¦¤ËÁ°·Ê¿§(ʸ»ú¤Î¿§)Èֹ椬¡¢Ïȳ°¾å¤ËÇØ·Ê¿§Èֹ椬ɽ¼¨¤µ¤ì¤Þ¤¹¡£
ʸ»ú¤ò¥Ü¡¼¥ë¥É(¹âµ±ÅÙ)¤Çɽ¼¨¤·¤¿¤¤¾ì¹ç¡¢¥Ñ¥é¥á¡¼¥¿¤Ë "1" ¤òÉÕ¤±²Ã¤¨¤Þ¤¹¡£
¤Ä¤Þ¤ê¡¢Çò¤¤ÇطʤËÌÀ¤ë¤¤ÀĤÎʸ»ú¤òɽ¼¨¤¹¤ë¾ì¹ç¡¢¥Ñ¥é¥á¡¼¥¿¤Ï 
"33;47;1m" ¤È¤Ê¤ê¤Þ¤¹¡£ANSI ÁªÂòÁ´ÂΤȤ·¤Æ¤Ï 
<PRE>
ESC [ 3 7 ; 4 4 ; 1 m
</PRE>

¤È¤Ê¤ê¤Þ¤¹¡£
<P>Ãí°Õ: º£¤Î¤È¤³¤í¡¢Çطʤò¹âµ±Å٤ˤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£¤³¤ì¤Ë¤è¤ê¡¢
(¹âµ±ÅÙ¤ÎÃ㿧¤Ç¤¢¤ë)²«¿§¤Ï¡¢Á°·Ê¿§°Ê³°¤Ç¤Ï»È¤¨¤Þ¤»¤ó¡£¤³¤ì¤Ï¥Ï¡¼¥É¥¦¥§
¥¢¤ÎÀ©Ìó¤Ç¤¹¡£
<P>
<PRE>
¿§¤ò°Ê²¼¤Ë¼¨¤·¤Þ¤¹:
        0 - ¹õ       4 - ÀÄ             3# ¤ÏÁ°·Ê¿§
        1 - ÀÖ       5 - ¥Þ¥¼¥ó¥¿       4# ¤ÏÇØ·Ê¿§
        2 - ÎÐ       6 - ¥·¥¢¥ó
        3 - ²«       7 - Çò             ;1 ¤Ï¥Ü¡¼¥ë¥É
</PRE>
<P>
<HR>
<A HREF="Colour-ls-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Colour-ls-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Colour-ls.html#toc4">Ìܼ¡¤Ø</A>
</BODY>
</HTML>