This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > node wcwidth_test_tanasinn.js | |
| test: 8097ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wcwidth.js: JavaScript Portng of Markus Kuhn's wcwidth() Implementation | |
| ======================================================================= | |
| Copyright (C) 2012 by Jun Woong. | |
| This package is a JavaScript porting of Markus Kuhn's wcwidth() | |
| implementation distributed on http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c. | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nmap <F10> <cmode> | |
| cmap <F10> <nmode> | |
| nmap <2-Shift> <F50> | |
| cmap <2-Shift> <F50> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -r fcca64585e2a src/term.c | |
| --- a/src/term.c Fri Nov 23 21:54:48 2012 +0100 | |
| +++ b/src/term.c Sat Nov 24 14:25:45 2012 +0900 | |
| @@ -4081,7 +4081,7 @@ | |
| { | |
| /* Only set 'ttymouse' automatically if it was not set | |
| * by the user already. */ | |
| - if (!option_was_set((char_u *)"ttym")) | |
| + if (ttym_flags == TTYM_XTERM || !option_was_set((char_u *)"ttym")) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys, os, termios, select | |
| def readcell(y, x): | |
| import sys | |
| sys.stdout.write("\x1b[;1;%d;%d;%d;%d*y" % (y, x, y, x)) | |
| sys.stdout.flush() | |
| rfd, wfd, xfd = select.select([0], [], [], 2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * ***** BEGIN LICENSE BLOCK ***** | |
| * Version: MPL 1.1 | |
| * | |
| * The contents of this file are subject to the Mozilla Public License Version | |
| * 1.1 (the "License"); you may not use this file except in compliance with | |
| * the License. You may obtain a copy of the License at | |
| * http://www.mozilla.org/MPL/ | |
| * | |
| * Software distributed under the License is distributed on an "AS IS" basis, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let &t_ti = &t_ti . "\e[?8861h" | |
| let &t_te = "\e[?8861l" . &t_te | |
| map <special> <Esc>[8850~ <Nop> | |
| imap <special> <Esc>[8850~ <Nop> | |
| cmap <special> <Esc>[8850~ <Nop> | |
| vmap <special> <Esc>[8850~ <Nop> | |
| map <special> <Esc>[8851~ i | |
| imap <special> <Esc>[8851~ <Nop> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! l:addchar(c) | |
| let s:param .= a:c | |
| return '' | |
| endfunction | |
| function! l:completeDA2() | |
| unmap 0 | |
| unmap 1 | |
| unmap 2 | |
| unmap 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun get-da2 () | |
| (let ((str "")) | |
| (send-string-to-terminal "\e[>c") | |
| (while (not (equal (setq chr (read-event nil nil 2)) 99)) | |
| (setq str (concat str (string chr)))) | |
| (if (string-match ">\\([0-9;]+\\)$" str) | |
| (setq params (match-string 1 str))))) | |
| (defun get-cpr () | |
| (let ((str "")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/PTYSession.h b/PTYSession.h | |
| index 1a24cfc..8c9caad 100644 | |
| --- a/PTYSession.h | |
| +++ b/PTYSession.h | |
| @@ -88,6 +88,12 @@ typedef enum { | |
| // The window title that should be used when this session is current. Otherwise defaultName | |
| // should be used. | |
| NSString* windowTitle; | |
| + | |
| + // The window title stack |