윈도우즈 환경에서 ❕ 이런 문자를 콘솔 화면에 출력하고 싶다면 ...
1. 안되는 경우.
윈도우 환경의 경우 UTF-8 사용에 제한이 많다.
2. win-unicode-console.
모듈을 설치하고 활성화한 뒤 그냥 출력한다.
1 | ctags -R | cs |
1 | set tags=/home/ships/project/IrisIrene/trunk/src/tags | cs |
1 2 3 4 5 6 7 8 9 10 11 | vi ~/mkcscope.sh ######################################################### #!/bin/sh rm tags ctags -R rm -rf cscope.files cscope.out find . \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' -o -name '*.C' \) -print > cscope.files cscope -i cscope.files ######################################################### | cs |
1 2 3 4 5 6 7 8 9 10 | set cscopeprg=/usr/local/bin/cscope set csto=0 set cst set nocsverb if filereadable("./cscope.out") cs add cscope.out else cs add /usr/src/linux/cscope.out endif set csverb | cs |
1 2 | " // The switch of the Source Explorer nmap <F8> :SrcExplToggle<CR> | cs |
1 | yum groupinstall "Development Tools" | cs |
1 2 | chkconifg iptables off service iptables stop | cs |
1 2 | useradd ships passwd ships | cs |
1 2 3 | yum install vim-enhanced.x86_64 yum install ctags.x86_64 yum install cscope.x86_64 | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | vi ~/.vimrc ########################################## syntax on set ts=4 set sw=4 set ai set cindent set smartindent set hlsearch filetype on set fileencoding=korea set fileencodings=ubs-bom,utf-8,korea ########################################## | cs |
1 2 | colorscheme molokai let g:molokai_original=1 | cs |
1 2 3 4 5 6 7 8 9 | fun! ShowFuncName() let lnum = line(".") let col = col(".") echohl ModeMsg echo getline(search("^[^ \t#/]\\{2}.*[^:]\s*$", 'bW')) echohl None call search("\\%" . lnum . "l" . "\\%" . col . "c") endfun map f :call ShowFuncName() <CR> | cs |
1 2 | let g:alternateExtensions_h = "C" let g:alternateExtensions_C = "h" | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import re def cut_utf8_by_byte(text, length): """ """ if len(text) >= length: if re.match('[\xE0-\xFF]', text[length]) is not None: length -= 1 elif re.match('[\x80-\xFF]', text[length]) is not None: while True: length -= 1 if re.match('[\xDF-\xFF]', text[length]) is not None: break return text[:length] | cs |