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"> -"for screen -" term xterm-256color in .screenrc -if &term == "xterm-256color" - let &t_SI .= "\eP\e[3 q\e\\" - let &t_EI .= "\eP\e[1 q\e\\" -elseif &term == "xterm" - let &t_SI .= "\e[3 q" - let &t_EI .= "\e[1 q" -endif +let &t_SI .= "\e[3 q" +let &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 &term =~ "xterm" - "for screen - " term xterm-256color in .screenrc - if &term == "xterm-256color" - let &t_SI = &t_SI . "\eP\e[?2004h\e\\" - let &t_EI = "\eP\e[?2004l\e\\" . &t_EI - let &pastetoggle = "\e[201~" - elseif &term == "xterm" - let &t_SI .= &t_SI . "\e[?2004h" - let &t_EI .= "\e[?2004l" . &t_EI - let &pastetoggle = "\e[201~" - endif +if &term =~ "xterm" + let &t_SI .= "\e[?2004h" + let &t_EI .= "\e[?2004l" + let &pastetoggle = "\e[201~" function XTermPasteBegin(ret) set paste return a:ret endfunction - map <special> <expr> <Esc>[200~ XTermPasteBegin("0i") - imap <special> <expr> <Esc>[200~ XTermPasteBegin("") - cmap <special> <Esc>[200~ <nop> - cmap <special> <Esc>[201~ <nop> + noremap <special> <expr> <Esc>[200~ XTermPasteBegin("0i") + inoremap <special> <expr> <Esc>[200~ XTermPasteBegin("") + cnoremap <special> <Esc>[200~ <nop> + cnoremap <special> <Esc>[201~ <nop> 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 <special> <Esc>O[ <Esc> </pre> + +<!-- +<h2><a name="withScreen">GNU ScreenÆ̹pÌÓ_</a></h2> +<p> +GNU ScreenðgpµÄ¢éêAscreenàÅ®©µÄ¢éAvP[Vª§äV[PXðÁÄàA»ÌV[PXÉscreenªÎµÄ¢È¢êÍTera Term¤Öç¸ÉÌÄĵܢúÒÊèÉ®«Ü¹ñB»ÌêA +</p> + +<pre class="macro-example"> +if &term == "screen" + let &t_SI .= "\eP\e[3 q\e\\" + let &t_EI .= "\eP\e[1 q\e\\" +else + let &t_SI .= "\e[3 q" + let &t_EI .= "\e[1 q" +endif +</pre> + +<p> +Æ¢¤æ¤ÉA[^Cvª screen ÌÍ t_SI, t_EI, t_ti, t_te ÉÝè·éV[PXð "\eP" Æ "\e\\" ŲÞÆTera TermɧäV[PXªÍæ¤ÉÈèÜ·B<br> +½¾µA±Ìû@ðgÁħäV[PXªscreenð²¯éæ¤ÉµÄàÁ½V[PXÌóÔÍscreenÌÇOÉÈéÌÅAscreenÌEBhEðØèÖ¦½ÉúÒÊèÉ®©È¢êª èÜ·ÌÅӵľ³¢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"> -"for screen -" .screenrcÅterm xterm-256colorƵĢéê -if &term == "xterm-256color" - let &t_SI .= "\eP\e[3 q\e\\" - let &t_EI .= "\eP\e[1 q\e\\" -elseif &term == "xterm" - let &t_SI .= "\e[3 q" - let &t_EI .= "\e[1 q" -endif +let &t_SI .= "\e[3 q" +let &t_EI .= "\e[1 q" </pre> <p>: DECTCEM <strong>ÈO</strong>̧äV[PXðg¤ÉÍAAdditional Settings _CAOÌ Control sequence ^uÉLé Cursor control sequence ð on É·éKvª èÜ·B(ftHgÍ off)</p> @@ -80,28 +73,20 @@ </p> <pre class="macro-example"> -if &term =~ "xterm" - "for screen - " .screenrcÅterm xterm-256colorƵĢéê - if &term == "xterm-256color" - let &t_SI = &t_SI . "\eP\e[?2004h\e\\" - let &t_EI = "\eP\e[?2004l\e\\" . &t_EI - let &pastetoggle = "\e[201~" - elseif &term == "xterm" - let &t_SI .= &t_SI . "\e[?2004h" - let &t_EI .= "\e[?2004l" . &t_EI - let &pastetoggle = "\e[201~" - endif +if &term =~ "xterm" + let &t_SI .= "\e[?2004h" + let &t_EI .= "\e[?2004l" + let &pastetoggle = "\e[201~" function XTermPasteBegin(ret) set paste return a:ret endfunction - map <special> <expr> <Esc>[200~ XTermPasteBegin("0i") - imap <special> <expr> <Esc>[200~ XTermPasteBegin("") - cmap <special> <Esc>[200~ <nop> - cmap <special> <Esc>[201~ <nop> + noremap <special> <expr> <Esc>[200~ XTermPasteBegin("0i") + inoremap <special> <expr> <Esc>[200~ XTermPasteBegin("") + cnoremap <special> <Esc>[200~ <nop> + cnoremap <special> <Esc>[201~ <nop> endif </pre> @@ -157,5 +142,26 @@ inoremap <special> <Esc>O[ <Esc> </pre> + +<h2><a name="withScreen">GNU ScreenÆ̹pÌÓ_</a></h2> +<p> +GNU ScreenðgpµÄ¢éêAscreenàÅ®©µÄ¢éAvP[Vª§äV[PXðÁÄàA»ÌV[PXÉscreenªÎµÄ¢È¢êÍTera Term¤Öç¸ÉÌÄĵܢúÒÊèÉ®«Ü¹ñB»ÌêA +</p> + +<pre class="macro-example"> +if &term == "screen" + let &t_SI .= "\eP\e[3 q\e\\" + let &t_EI .= "\eP\e[1 q\e\\" +else + let &t_SI .= "\e[3 q" + let &t_EI .= "\e[1 q" +endif +</pre> + +<p> +Æ¢¤æ¤ÉA[^Cvª screen ÌÍ t_SI, t_EI, t_ti, t_te ÉÝè·éV[PXð "\eP" Æ "\e\\" ŲÞÆTera TermɧäV[PXªÍæ¤ÉÈèÜ·B<br> +½¾µA±Ìû@ðgÁħäV[PXªscreenð²¯éæ¤ÉµÄàÁ½V[PXÌóÔÍscreenÌÇOÉÈéÌÅAscreenÌEBhEðØèÖ¦½ÉúÒÊèÉ®©È¢êª èÜ·ÌÅӵľ³¢B +</p> + </body> </html>