[Ttssh2-commit] [4713] ドキュメント修正。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 11月 11日 (金) 19:34:01 JST


Revision: 4713
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4713
Author:   doda
Date:     2011-11-11 19:34:01 +0900 (Fri, 11 Nov 2011)

Log Message:
-----------
ドキュメント修正。
・screen 内かの判断基準として TERM=xterm-256color を使うのは不適切なので、標準である screen に変更
・DSC & ST で囲むと効果があるのは特定のシーケンスに限るわけではない事、および設定する事による副作用が考えられる事から、vim に関する注意点を独立させた
・元の例にあったバグや修正すべき点を修正
・その他こまごまとした修正

Modified Paths:
--------------
    trunk/doc/en/html/usage/tips/index.html
    trunk/doc/en/html/usage/tips/vim.html
    trunk/doc/ja/html/usage/tips/vim.html


-------------- next part --------------
Modified: trunk/doc/en/html/usage/tips/index.html
===================================================================
--- trunk/doc/en/html/usage/tips/index.html	2011-11-11 05:57:51 UTC (rev 4712)
+++ trunk/doc/en/html/usage/tips/index.html	2011-11-11 10:34:01 UTC (rev 4713)
@@ -22,7 +22,7 @@
  <LI><A HREF="b-plus.html">Tips on B-Plus</A></LI>
  <LI><A HREF="not_port23.html">Tips on TCP/IP connection with a port other than 23</A></LI>
  <LI><A HREF="telnet_protocol.html">Associate with TELNET protocol</A></LI>
- <LI><A HREF="vim.html">Tips on vim</A></LI>
+ <LI><A HREF="vim.html">Vim control sequence examples</A></LI>
 </UL>
 
 </BODY>

Modified: trunk/doc/en/html/usage/tips/vim.html
===================================================================
--- trunk/doc/en/html/usage/tips/vim.html	2011-11-11 05:57:51 UTC (rev 4712)
+++ trunk/doc/en/html/usage/tips/vim.html	2011-11-11 10:34:01 UTC (rev 4713)
@@ -3,21 +3,19 @@
 <html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>Tips on vim</title>
+<title>Vim Control Sequence Example</title>
 <meta http-equiv="Content-Style-Type" content="text/css">
 <link rel="stylesheet" href="../../style.css" type="text/css">
 </head>
 <body>
 
-<h1>Tips on vim</h1>
-<h1>VIM Control Sequence Examples</h1>
+<h1>Vim Control Sequence Examples</h1>
 <p>
-When a user uses the control sequence, the remote host can control the Tera Term behavior. 
-The VIM procedure for using the control sequence is described below.
+When a user uses the control sequence, the remote host can control the Tera Term behavior.
+The Vim procedure for using the control sequence is described below.
 </p>
 
 <h2><a name="CursorStyle">Changing cursor shape on entering and leaving into insert mode</a></h2>
-
 <p>
 Tera Term can support below control sequence changing the cursor shape.
 </p>
@@ -57,24 +55,16 @@
 </p>
 
 <pre class="macro-example">
-&quot;for screen
-&quot; term xterm-256color in .screenrc
-if &amp;term == &quot;xterm-256color&quot;
-    let &amp;t_SI .= &quot;\eP\e[3 q\e\\&quot;
-    let &amp;t_EI .= &quot;\eP\e[1 q\e\\&quot;
-elseif &amp;term == &quot;xterm&quot;
-    let &amp;t_SI .= &quot;\e[3 q&quot;
-    let &amp;t_EI .= &quot;\e[1 q&quot;
-endif
+let &amp;t_SI .= "\e[3 q"
+let &amp;t_EI .= "\e[1 q"
 </pre>
 
-<p>NOTICE: If a user uses the control sequence except the DECTCEM, turn on the Cursor control sequence of the Additional Settings dialog(The default value is off).
-</p>
+<p>NOTICE: If a user uses the control sequence except the DECTCEM, turn on the Cursor control sequence of the Additional Settings dialog(The default value is off).</p>
 
-<h2><a name="Bracketed">Bracketed Paste Mode</a></h2>
+
 <h2><a name="Bracketed">Auto indent can be disabled on pasting from clipboard</a></h2>
 <p>
-Basically, the host application can not recognize the difference between the user input and pasting from clipboard. 
+Basically, the host application can not recognize the difference between the user input and pasting from clipboard.
 However, when a user uses the Bracketed Paste Mode as the xterm extension, the application can recognize its difference and a user can change the behavior of pasting from clipboard.
 </p>
 
@@ -83,28 +73,20 @@
 </p>
 
 <pre class="macro-example">
-if &amp;term =~ &quot;xterm&quot;
-    &quot;for screen
-    &quot; term xterm-256color in .screenrc
-    if &amp;term == &quot;xterm-256color&quot;
-        let &amp;t_SI = &amp;t_SI . &quot;\eP\e[?2004h\e\\&quot;
-        let &amp;t_EI = &quot;\eP\e[?2004l\e\\&quot; . &amp;t_EI
-        let &amp;pastetoggle = &quot;\e[201~&quot;
-    elseif &amp;term == &quot;xterm&quot;
-        let &amp;t_SI .= &amp;t_SI . &quot;\e[?2004h&quot;
-        let &amp;t_EI .= &quot;\e[?2004l&quot; . &amp;t_EI
-        let &amp;pastetoggle = &quot;\e[201~&quot;
-    endif
+if &amp;term =~ "xterm"
+    let &amp;t_SI .= "\e[?2004h"
+    let &amp;t_EI .= "\e[?2004l"
+    let &amp;pastetoggle = "\e[201~"
 
     function XTermPasteBegin(ret)
         set paste
         return a:ret
     endfunction
 
-    map &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin(&quot;0i&quot;)
-    imap &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin(&quot;&quot;)
-    cmap &lt;special&gt; &lt;Esc&gt;[200~ &lt;nop&gt;
-    cmap &lt;special&gt; &lt;Esc&gt;[201~ &lt;nop&gt;
+    noremap &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin("0i")
+    inoremap &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin("")
+    cnoremap &lt;special&gt; &lt;Esc&gt;[200~ &lt;nop&gt;
+    cnoremap &lt;special&gt; &lt;Esc&gt;[201~ &lt;nop&gt;
 endif
 </pre>
 
@@ -116,7 +98,6 @@
 
 
 <h2><a name="IMEcontrol">Controlling IME</a></h2>
-
 <p>
 Tera Term can support the original sequence to control the IME behavior.
 For example, A user can switch the IME status of enabling and disabling to use this control sequence.
@@ -145,7 +126,7 @@
 <p>
 When the ESC key is pressed, Tera Term, xterm and other terminal emulator send the ESC(0x1b) key code. Also, when the cursor key and the function key is pushed, Tera Term sends the ESC key code.
 Therefore, the host application can not recognize whether the ESC key is pressed. <br>
-So, the vim waits for one second when the ESC key code is received to recognize what key is pressed. 
+So, the vim waits for one second when the ESC key code is received to recognize what key is pressed.
 As a result, when a user presses the ESC key, the time for the insert mode exiting will be late for 1 second.
 This behavior can not be affected by enabling <a href="#CursorStyle">Changing cursor shape on entering and leaving into insert mode</a> and <a href="#IMEcontrol">Controlling IME</a>.
 </p>
@@ -161,5 +142,28 @@
 inoremap &lt;special&gt; &lt;Esc&gt;O[ &lt;Esc&gt;
 </pre>
 
+
+<!--
+<h2><a name="withScreen">GNU Screen‚Æ‚Ì•¹—pŽž‚Ì’ˆÓ“_</a></h2>
+<p>
+GNU Screen‚ðŽg—p‚µ‚Ä‚¢‚éê‡Ascreen“à•”‚Å“®‚©‚µ‚Ä‚¢‚éƒAƒvƒŠƒP[ƒVƒ‡ƒ“‚ª§ŒäƒV[ƒPƒ“ƒX‚ð‘—‚Á‚Ä‚àA‚»‚̃V[ƒPƒ“ƒX‚Éscreen‚ª‘Ήž‚µ‚Ä‚¢‚È‚¢ê‡‚ÍTera Term‘¤‚Ö‘—‚炸‚ÉŽÌ‚Ä‚Ä‚µ‚Ü‚¢Šú‘Ò’Ê‚è‚É“®‚«‚Ü‚¹‚ñB‚»‚̏ꍇA
+</p>
+
+<pre class="macro-example">
+if &amp;term == "screen"
+    let &amp;t_SI .= "\eP\e[3 q\e\\"
+    let &amp;t_EI .= "\eP\e[1 q\e\\"
+else
+    let &amp;t_SI .= "\e[3 q"
+    let &amp;t_EI .= "\e[1 q"
+endif
+</pre>
+
+<p>
+‚Æ‚¢‚¤‚悤‚ɁA’[––ƒ^ƒCƒv‚ª screen ‚ÌŽž‚Í t_SI, t_EI, t_ti, t_te ‚ɐݒ肷‚éƒV[ƒPƒ“ƒX‚ð "\eP" ‚Æ "\e\\" ‚Å‹²‚Þ‚ÆTera Term‚ɐ§ŒäƒV[ƒPƒ“ƒX‚ª“Í‚­‚悤‚É‚È‚è‚Ü‚·B<br>
+‚½‚¾‚µA‚±‚Ì•û–@‚ðŽg‚Á‚ЧŒäƒV[ƒPƒ“ƒX‚ªscreen‚𔲂¯‚é‚悤‚É‚µ‚Ä‚à‘—‚Á‚½ƒV[ƒPƒ“ƒX‚̏ó‘Ô‚Íscreen‚ÌŠÇ—ŠO‚É‚È‚é‚̂ŁAscreen‚̃EƒBƒ“ƒhƒE‚ðØ‚è‘Ö‚¦‚½Žž“™‚ÉŠú‘Ò’Ê‚è‚É“®‚©‚È‚¢ê‡‚ª‚ ‚è‚Ü‚·‚Ì‚Å’ˆÓ‚µ‚Ä‚­‚¾‚³‚¢B
+</p>
+-->
+
 </body>
 </html>

Modified: trunk/doc/ja/html/usage/tips/vim.html
===================================================================
--- trunk/doc/ja/html/usage/tips/vim.html	2011-11-11 05:57:51 UTC (rev 4712)
+++ trunk/doc/ja/html/usage/tips/vim.html	2011-11-11 10:34:01 UTC (rev 4713)
@@ -55,15 +55,8 @@
 </p>
 
 <pre class="macro-example">
-&quot;for screen
-&quot; .screenrc‚Återm xterm-256color‚Æ‚µ‚Ä‚¢‚éê‡
-if &amp;term == &quot;xterm-256color&quot;
-    let &amp;t_SI .= &quot;\eP\e[3 q\e\\&quot;
-    let &amp;t_EI .= &quot;\eP\e[1 q\e\\&quot;
-elseif &amp;term == &quot;xterm&quot;
-    let &amp;t_SI .= &quot;\e[3 q&quot;
-    let &amp;t_EI .= &quot;\e[1 q&quot;
-endif
+let &amp;t_SI .= "\e[3 q"
+let &amp;t_EI .= "\e[1 q"
 </pre>
 
 <p>’: DECTCEM <strong>ˆÈŠO</strong>‚̐§ŒäƒV[ƒPƒ“ƒX‚ðŽg‚¤‚ɂ́AAdditional Settings ƒ_ƒCƒAƒƒO‚Ì Control sequence ƒ^ƒu‚É—L‚é Cursor control sequence ‚ð on ‚É‚·‚é•K—v‚ª‚ ‚è‚Ü‚·B(ƒfƒtƒHƒ‹ƒg‚Í off)</p>
@@ -80,28 +73,20 @@
 </p>
 
 <pre class="macro-example">
-if &amp;term =~ &quot;xterm&quot;
-    &quot;for screen
-    &quot; .screenrc‚Återm xterm-256color‚Æ‚µ‚Ä‚¢‚éê‡
-    if &amp;term == &quot;xterm-256color&quot;
-        let &amp;t_SI = &amp;t_SI . &quot;\eP\e[?2004h\e\\&quot;
-        let &amp;t_EI = &quot;\eP\e[?2004l\e\\&quot; . &amp;t_EI
-        let &amp;pastetoggle = &quot;\e[201~&quot;
-    elseif &amp;term == &quot;xterm&quot;
-        let &amp;t_SI .= &amp;t_SI . &quot;\e[?2004h&quot;
-        let &amp;t_EI .= &quot;\e[?2004l&quot; . &amp;t_EI
-        let &amp;pastetoggle = &quot;\e[201~&quot;
-    endif
+if &amp;term =~ "xterm"
+    let &amp;t_SI .= "\e[?2004h"
+    let &amp;t_EI .= "\e[?2004l"
+    let &amp;pastetoggle = "\e[201~"
 
     function XTermPasteBegin(ret)
         set paste
         return a:ret
     endfunction
 
-    map &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin(&quot;0i&quot;)
-    imap &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin(&quot;&quot;)
-    cmap &lt;special&gt; &lt;Esc&gt;[200~ &lt;nop&gt;
-    cmap &lt;special&gt; &lt;Esc&gt;[201~ &lt;nop&gt;
+    noremap &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin("0i")
+    inoremap &lt;special&gt; &lt;expr&gt; &lt;Esc&gt;[200~ XTermPasteBegin("")
+    cnoremap &lt;special&gt; &lt;Esc&gt;[200~ &lt;nop&gt;
+    cnoremap &lt;special&gt; &lt;Esc&gt;[201~ &lt;nop&gt;
 endif
 </pre>
 
@@ -157,5 +142,26 @@
 inoremap &lt;special&gt; &lt;Esc&gt;O[ &lt;Esc&gt;
 </pre>
 
+
+<h2><a name="withScreen">GNU Screen‚Æ‚Ì•¹—pŽž‚Ì’ˆÓ“_</a></h2>
+<p>
+GNU Screen‚ðŽg—p‚µ‚Ä‚¢‚éê‡Ascreen“à•”‚Å“®‚©‚µ‚Ä‚¢‚éƒAƒvƒŠƒP[ƒVƒ‡ƒ“‚ª§ŒäƒV[ƒPƒ“ƒX‚ð‘—‚Á‚Ä‚àA‚»‚̃V[ƒPƒ“ƒX‚Éscreen‚ª‘Ήž‚µ‚Ä‚¢‚È‚¢ê‡‚ÍTera Term‘¤‚Ö‘—‚炸‚ÉŽÌ‚Ä‚Ä‚µ‚Ü‚¢Šú‘Ò’Ê‚è‚É“®‚«‚Ü‚¹‚ñB‚»‚̏ꍇA
+</p>
+
+<pre class="macro-example">
+if &amp;term == "screen"
+    let &amp;t_SI .= "\eP\e[3 q\e\\"
+    let &amp;t_EI .= "\eP\e[1 q\e\\"
+else
+    let &amp;t_SI .= "\e[3 q"
+    let &amp;t_EI .= "\e[1 q"
+endif
+</pre>
+
+<p>
+‚Æ‚¢‚¤‚悤‚ɁA’[––ƒ^ƒCƒv‚ª screen ‚ÌŽž‚Í t_SI, t_EI, t_ti, t_te ‚ɐݒ肷‚éƒV[ƒPƒ“ƒX‚ð "\eP" ‚Æ "\e\\" ‚Å‹²‚Þ‚ÆTera Term‚ɐ§ŒäƒV[ƒPƒ“ƒX‚ª“Í‚­‚悤‚É‚È‚è‚Ü‚·B<br>
+‚½‚¾‚µA‚±‚Ì•û–@‚ðŽg‚Á‚ЧŒäƒV[ƒPƒ“ƒX‚ªscreen‚𔲂¯‚é‚悤‚É‚µ‚Ä‚à‘—‚Á‚½ƒV[ƒPƒ“ƒX‚̏ó‘Ô‚Íscreen‚ÌŠÇ—ŠO‚É‚È‚é‚̂ŁAscreen‚̃EƒBƒ“ƒhƒE‚ðØ‚è‘Ö‚¦‚½Žž“™‚ÉŠú‘Ò’Ê‚è‚É“®‚©‚È‚¢ê‡‚ª‚ ‚è‚Ü‚·‚Ì‚Å’ˆÓ‚µ‚Ä‚­‚¾‚³‚¢B
+</p>
+
 </body>
 </html>



Ttssh2-commit メーリングリストの案内
Back to archive index