Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ttcomtester/teraterm/teraterm/clipboar.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3872 - (hide annotations) (download) (as text)
Sun May 9 09:21:21 2010 UTC (13 years, 11 months ago) by doda
Original Path: trunk/teraterm/teraterm/clipboar.h
File MIME type: text/x-chdr
File size: 449 byte(s)
Bracketed Paste Mode をサポート。
対応しているホスト側のアプリケーションで、キー入力と貼り付けの区別が付けられるようになる。

.vimrcの例:
if &term == "xterm"
  let &t_ti = &t_ti . "\e[?2004h"
  let &t_te = "\e[?2004l" . &t_te
  set pastetoggle=<Esc>[201~
  function XTermPasteBegin(ret)
    set paste
    return a:ret
  endfunction
  map <special> <expr> <Esc>[200~ XTermPasteBegin("i")
  imap <special> <expr> <Esc>[200~ XTermPasteBegin("")
endif

参考: https://bugzilla.gnome.org/show_bug.cgi?id=605299

1 maya 3227 /* Tera Term
2     Copyright(C) 1994-1998 T. Teranishi
3     All rights reserved. */
4    
5     /* TERATERM.EXE, Clipboard routines */
6    
7     #ifdef __cplusplus
8     extern "C" {
9     #endif
10    
11     /* prototypes */
12     PCHAR CBOpen(LONG MemSize);
13     void CBClose();
14 doda 3872 void CBStartPaste(HWND HWin, BOOL AddCR, BOOL Bracketed,
15 maya 3227 int BuffSize, PCHAR DataPtr, int DataSize);
16     void CBSend();
17     void CBEndPaste();
18     int CBStartPasteConfirmChange(HWND HWin);
19    
20     #ifdef __cplusplus
21     }
22     #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26