freebsd-skq/contrib/nvi/ex/ex_def.h
Peter Wemm f0957ccae4 Update nvi-1.79 to 2.1.1-4334a8297f
This is the gsoc-2011 project to clean up and backport multibyte support
from other nvi forks in a form we can use.

USE_WIDECHAR is on unless building for the rescue crunchgen. This should
allow editing in the native locale encoding.

USE_ICONV depends on make.conf having 'WITH_ICONV=YES' for now.  This
adds the ability to do things like edit a KOI8-R file while having $LANG
set to (say) en_US.UTF-8.  iconv is used to transcode the characters for
display.

Other points:
* It uses gencat and catopen/etc instead of homegrown msg catalog stuff.
* A lot of stuff has been trimmed out, eg: the perl and tcl bindings which
  we could never use in base anyway.
* It uses ncursesw when in widechar mode.  This could be interesting.

GSoC info: http://www.google-melange.com/gsoc/proposal/review/google/gsoc2011/zy/1
Repo at: https://github.com/lichray/nvi2

Obtained from:  Zhihao Yuan <lichray@gmail.com>
2013-08-11 20:03:12 +00:00

77 lines
1.4 KiB
C

#define C_SCROLL 0
#define C_BANG 1
#define C_HASH 2
#define C_SUBAGAIN 3
#define C_STAR 4
#define C_SHIFTL 5
#define C_EQUAL 6
#define C_SHIFTR 7
#define C_AT 8
#define C_APPEND 9
#define C_ABBR 10
#define C_ARGS 11
#define C_BG 12
#define C_CHANGE 13
#define C_CD 14
#define C_CHDIR 15
#define C_COPY 16
#define C_CSCOPE 17
#define C_DELETE 18
#define C_DISPLAY 19
#define C_EDIT 20
#define C_EX 21
#define C_EXUSAGE 22
#define C_FILE 23
#define C_FG 24
#define C_GLOBAL 25
#define C_HELP 26
#define C_INSERT 27
#define C_JOIN 28
#define C_K 29
#define C_LIST 30
#define C_MOVE 31
#define C_MARK 32
#define C_MAP 33
#define C_MKEXRC 34
#define C_NEXT 35
#define C_NUMBER 36
#define C_OPEN 37
#define C_PRINT 38
#define C_PRESERVE 39
#define C_PREVIOUS 40
#define C_PUT 41
#define C_QUIT 42
#define C_READ 43
#define C_RECOVER 44
#define C_RESIZE 45
#define C_REWIND 46
#define C_SUBSTITUTE 47
#define C_SCRIPT 48
#define C_SET 49
#define C_SHELL 50
#define C_SOURCE 51
#define C_STOP 52
#define C_SUSPEND 53
#define C_T 54
#define C_TAG 55
#define C_TAGNEXT 56
#define C_TAGPOP 57
#define C_TAGPREV 58
#define C_TAGTOP 59
#define C_UNDO 60
#define C_UNABBREVIATE 61
#define C_UNMAP 62
#define C_V 63
#define C_VERSION 64
#define C_VISUAL_EX 65
#define C_VISUAL_VI 66
#define C_VIUSAGE 67
#define C_VSPLIT 68
#define C_WRITE 69
#define C_WN 70
#define C_WQ 71
#define C_XIT 72
#define C_YANK 73
#define C_Z 74
#define C_SUBTILDE 75