OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | Index: joe-embedded/builtins.c |
| 2 | =================================================================== |
| 3 | --- joe-embedded/builtins.c (revision 227) |
| 4 | +++ joe-embedded/builtins.c (revision 234) |
| 5 | @@ -1,843 +0,0 @@ |
| 6 | -/* Built-in files */ |
| 7 | - |
| 8 | -#include "types.h" |
| 9 | - |
| 10 | -unsigned char *builtins[]= |
| 11 | -{ |
| 12 | - USTR "joerc", |
| 13 | - USTR "-notite\n" |
| 14 | - "-assume_color\n" |
| 15 | - "-assume_256color\n" |
| 16 | - "-guess_non_utf8\n" |
| 17 | - "-guess_crlf\n" |
| 18 | - "-guess_indent\n" |
| 19 | - "-menu_above\n" |
| 20 | - "-transpose\n" |
| 21 | - "-joe_state\n" |
| 22 | - "-restore\n" |
| 23 | - "-search_prompting\n" |
| 24 | - "-lmsg \\i%k%T%W%I%X %n %m%y%R %M %x\n" |
| 25 | - "-rmsg %S Row %r Col %c %t Ctrl-K H for help\n" |
| 26 | - "-highlight\n" |
| 27 | - "-istep 2\n" |
| 28 | - ":defmenu root\n" |
| 29 | - "mode,\"overwrite\",rtn T Overtype %Zoverwrite%\n" |
| 30 | - "mode,\"hex\",rtn % % Hex edit mode\n" |
| 31 | - "mode,\"autoindent\",rtn I Autoindent %Zautoindent%\n" |
| 32 | - "mode,\"wordwrap\",rtn W Word wrap %Zwordwrap%\n" |
| 33 | - "mode,\"tab\",rtn D Tab width %Ztab%\n" |
| 34 | - "mode,\"lmargin\",rtn L Left margin %Zlmargin%\n" |
| 35 | - "mode,\"rmargin\",rtn R Right margin %Zrmargin%\n" |
| 36 | - "mode,\"square\",rtn X Rectangle mode %Zsquare%\n" |
| 37 | - "mode,\"indentc\",rtn % % Indent char %Zindentc%\n" |
| 38 | - "mode,\"istep\",rtn % % Indent step %Zistep%\n" |
| 39 | - "mode,\"highlight\",rtn H Highlighting %Zhighlight%\n" |
| 40 | - "mode,\"crlf\",rtn Z CR-LF (MS-DOS) %Zcrlf%\n" |
| 41 | - "mode,\"linums\",rtn N Line numbers %Zlinums%\n" |
| 42 | - "mode,\"beep\",rtn B Beep %Zbeep%\n" |
| 43 | - "mode,\"rdonly\",rtn O Read only %Zrdonly%\n" |
| 44 | - "mode,\"syntax\",rtn Y Syntax\n" |
| 45 | - "mode,\"encoding\",rtn E Encoding\n" |
| 46 | - "mode,\"asis\",rtn % % Meta chars as-is\n" |
| 47 | - "mode,\"language\",rtn V Language\n" |
| 48 | - "mode,\"picture\",rtn P picture %Zpicture%\n" |
| 49 | - "menu,\"more-options\",rtn % % More options...\n" |
| 50 | - ":defmenu more-options\n" |
| 51 | - "menu,\"^G\",rtn % % ^G options\n" |
| 52 | - "menu,\"search\",rtn % % search options\n" |
| 53 | - "menu,\"paragraph\",rtn % % paragraph options\n" |
| 54 | - "menu,\"file\",rtn % % file options\n" |
| 55 | - "menu,\"menu\",rtn % % menu options\n" |
| 56 | - "menu,\"global\",rtn % % global options\n" |
| 57 | - "menu,\"cursor\",rtn % % cursor options\n" |
| 58 | - "menu,\"marking\",rtn % % marking options\n" |
| 59 | - "menu,\"tab\",rtn % % tab/indent options\n" |
| 60 | - ":defmenu menu\n" |
| 61 | - "mode,\"menu_explorer\",rtn % % Menu explorer %Zmenu_explorer%\n" |
| 62 | - "mode,\"menu_above\",rtn % % Menu position %Zmenu_above%\n" |
| 63 | - "mode,\"menu_jump\",rtn % % Jump into menu %Zmenu_jump%\n" |
| 64 | - "mode,\"transpose\",rtn % % Transpose menus %Ztranspose%\n" |
| 65 | - ":defmenu ^G\n" |
| 66 | - "mode,\"single_quoted\",rtn % % ^G ignores '...' %Zsingle_quoted%\n" |
| 67 | - "mode,\"no_double_quoted\",rtn % % ^G no ignore \"...\" %Zno_double_quoted%\n" |
| 68 | - "mode,\"c_comment\",rtn % % ^G ignores /*...*/ %Zc_comment%\n" |
| 69 | - "mode,\"cpp_comment\",rtn % % ^G ignores //... %Zcpp_comment%\n" |
| 70 | - "mode,\"pound_comment\",rtn % % ^G ignores #... %Zpound_comment%\n" |
| 71 | - "mode,\"vhdl_comment\",rtn % % ^G ignores --... %Zvhdl_comment%\n" |
| 72 | - "mode,\"semi_comment\",rtn % % ^G ignores ;... %Zsemi_comment%\n" |
| 73 | - "mode,\"tex_comment\",rtn % % ^G ignores %... %Ztex_comment%\n" |
| 74 | - "mode,\"text_delimiters\",rtn % % Text delimiters %Ztext_delimiters%\n" |
| 75 | - ":defmenu search\n" |
| 76 | - "mode,\"icase\",rtn % % Case insensitivity %Zicase%\n" |
| 77 | - "mode,\"wrap\",rtn % % Search wraps %Zwrap%\n" |
| 78 | - "mode,\"search_prompting\",rtn % % Search prompting %Zsearch_prompting%\n" |
| 79 | - "mode,\"csmode\",rtn % % Continued search %Zcsmode%\n" |
| 80 | - ":defmenu paragraph\n" |
| 81 | - "mode,\"french\",rtn % % French spacing %Zfrench%\n" |
| 82 | - "mode,\"flowed\",rtn % % Flowed text %Zflowed%\n" |
| 83 | - "mode,\"cpara\",rtn % % Paragraph indent chars %Zcpara%\n" |
| 84 | - ":defmenu file\n" |
| 85 | - "mode,\"restore\",rtn % % Restore cursor %Zrestore%\n" |
| 86 | - "mode,\"guess_crlf\",rtn % % Auto detect CR-LF %Zguess_crlf%\n" |
| 87 | - "mode,\"guess_indent\",rtn % % Guess indent %Zguess_indent%\n" |
| 88 | - "mode,\"guess_non_utf8\",rtn % % Guess non-UTF-8 %Zguess_non_utf8%\n" |
| 89 | - "mode,\"guess_utf8\",rtn % % Guess UTF-8 %Zguess_utf8%\n" |
| 90 | - "mode,\"force\",rtn % % Force last NL %Zforce%\n" |
| 91 | - "mode,\"nobackup\",rtn % % No backup %Znobackup%\n" |
| 92 | - ":defmenu global\n" |
| 93 | - "mode,\"nolocks\",rtn % % Disable locks %Znolocks%\n" |
| 94 | - "mode,\"nobackups\",rtn % % Disable backups %Znobackups%\n" |
| 95 | - "mode,\"nomodcheck\",rtn % % Disable mtime check %Znomodcheck%\n" |
| 96 | - "mode,\"nocurdir\",rtn % % Disable current dir %Znocurdir%\n" |
| 97 | - "mode,\"exask\",rtn % % Exit ask %Zexask%\n" |
| 98 | - "mode,\"nosta\",rtn % % Disable status line %Znosta%\n" |
| 99 | - "mode,\"keepup\",rtn % % Fast status line %Zkeepup%\n" |
| 100 | - "mode,\"break_hardlinks\",rtn % % Break hard links %Zbreak_hardlinks%\n" |
| 101 | - "mode,\"break_links\",rtn % % Break links %Zbreak_links%\n" |
| 102 | - "mode,\"joe_state\",rtn % % Joe_state file %Zjoe_state%\n" |
| 103 | - "mode,\"undo_keep\",rtn % % No. undo records %Zundo_keep%\n" |
| 104 | - "mode,\"backpath\",rtn % % Path to backup files %Zbackpath%\n" |
| 105 | - ":defmenu cursor\n" |
| 106 | - "mode,\"pg\",rtn % % No. PgUp/PgDn lines %Zpg%\n" |
| 107 | - "mode,\"mid\",rtn C Center on scroll %Zmid%\n" |
| 108 | - "mode,\"floatmouse\",rtn % % Click past end %Zfloatmouse%\n" |
| 109 | - "mode,\"rtbutton\",rtn % % Right button %Zrtbutton%\n" |
| 110 | - ":defmenu marking\n" |
| 111 | - "mode,\"autoswap\",rtn % % Autoswap mode %Zautoswap%\n" |
| 112 | - "mode,\"marking\",rtn % % Marking %Zmarking%\n" |
| 113 | - "mode,\"lightoff\",rtn % % Auto unmask %Zlightoff%\n" |
| 114 | - ":defmenu tab\n" |
| 115 | - "mode,\"smarthome\",rtn % % Smart home key %Zsmarthome%\n" |
| 116 | - "mode,\"smartbacks\",rtn % % Smart backspace %Zsmartbacks%\n" |
| 117 | - "mode,\"indentfirst\",rtn % % To indent first %Zindentfirst%\n" |
| 118 | - "mode,\"purify\",rtn % % Clean up indents %Zpurify%\n" |
| 119 | - "mode,\"spaces\",rtn % % No tabs %Zspaces%\n" |
| 120 | - "{Basic\n" |
| 121 | - "\\i Help Screen \\|turn off with ^KH more help with ESC . (^[.) \\i\n" |
| 122 | - "\\i \\i\\|\\uCURSOR\\u \\|\\uGO TO\\u \\|\\uBLOCK\\u \\|\\uDELETE\\u \\|\\uMISC\\u \\|\\uEXIT\\u \\|\\i \\i\n" |
| 123 | - "\\i \\i\\|^B left ^F right \\|^U prev. screen \\|^KB begin \\|^D char. \\|^KJ reformat \\|^KX save \\|\\i \\i\n" |
| 124 | - "\\i \\i\\|^P up ^N down \\|^V next screen \\|^KK end \\|^Y line \\|^KA center \\|^C abort \\|\\i \\i\n" |
| 125 | - "\\i \\i\\|^Z previous word \\|^A beg. of line \\|^KM move \\|^W >word \\|^T options \\|^KZ shell \\|\\i \\i\n" |
| 126 | - "\\i \\i\\|^X next word \\|^E end of line \\|^KC copy \\|^O word< \\|^R refresh \\|\\uFILE\\u \\|\\i \\i\n" |
| 127 | - "\\i \\i\\|\\uSEARCH\\u \\|^KU top of file \\|^KW file \\|^J >line \\|\\uSPELL\\u \\|^KE edit \\|\\i \\i\n" |
| 128 | - "\\i \\i\\|^KF find text \\|^KV end of file \\|^KY delete \\|^_ undo \\|^[N word \\|^KR insert\\|\\i \\i\n" |
| 129 | - "\\i \\i\\|^L find next \\|^KL to line No. \\|^K/ filter \\|^^ redo \\|^[L file \\|^KD save \\|\\i \\i\n" |
| 130 | - "}\n" |
| 131 | - "{Windows\n" |
| 132 | - "\\i Help Screen \\|turn off with ^KH prev. screen ^[, next screen ^[. \\i\n" |
| 133 | - "\\i \\i\\|^KO Split the window in half \\|^KE Load file into window \\|\\i \\i\n" |
| 134 | - "\\i \\i\\|^KG Make current window bigger \\|^KT Make current window smaller \\|\\i \\i\n" |
| 135 | - "\\i \\i\\|^KN Go to the window below \\|^KP Go to the window above \\|\\i \\i\n" |
| 136 | - "\\i \\i\\|^[V Switch to next buffer \\|^[U Switch to previous buffer \\|\\i \\i\n" |
| 137 | - "\\i \\i\\|^C Eliminate the current window \\|^KI Show all windows / Show one window\\|\\i \\i\n" |
| 138 | - "}\n" |
| 139 | - "{Advanced\n" |
| 140 | - "\\i Help Screen \\|turn off with ^KH prev. screen ^[, next screen ^[. \\i\n" |
| 141 | - "\\i \\i\\|\\uMACROS\\u \\|\\uMISC\\u \\|\\uSCROLL\\u \\|\\uSHELL\\u \\|\\uGOTO\\u \\|\\uI-SEARCH\\u \\|\\i \\i\n" |
| 142 | - "\\i \\i\\|^K[ 0-9 Record \\|^K SPACE status \\|^[W Up \\|^K' Window \\|^[B To ^KB \\|^[R Backwards\\|\\i \\i\n" |
| 143 | - "\\i \\i\\|^K] Stop \\|^K\\\\ Repeat \\|^[Z Down \\|^[! Command \\|^[K To ^KK \\|^[S Forwards \\|\\i \\i\n" |
| 144 | - "\\i \\i\\|^K 0-9 Play \\|\\uINSERT\\u \\|^K< Left \\|\\uQUOTE\\u \\|\\uDELETE\\u \\|\\uBOOKMARKS\\u \\|\\i \\i\n" |
| 145 | - "\\i \\i\\|^K? Query \\|^] split line \\|^K> Right \\|^[' Ctrl- \\|^[Y yank \\|^[ 0-9 Goto \\|\\i \\i\n" |
| 146 | - "\\i \\i\\|^[D Dump \\|^SPACE ins space\\| \\|^\\\\ Meta- \\|^[O line< \\|^[^[ Set \\|\\i \\i\n" |
| 147 | - "}\n" |
| 148 | - "{Programs\n" |
| 149 | - "\\i Help Screen \\|turn off with ^KH prev. screen ^[, next screen ^[. \\i\n" |
| 150 | - "\\i \\i\\|\\uGOTO\\u \\|\\uINDENT\\u \\|\\uCOMPILING\\u \\uQUICK\\u \\|\\i \\i\n" |
| 151 | - "\\i \\i\\|^G Matching ( [ { \\|^K, less \\|^[C Compile & parse ^G find word under cursor \\|\\i \\i\n" |
| 152 | - "\\i \\i\\|^K- Previous place \\|^K. more \\|^[G Grep & parse ^[ENTER complete word \\|\\i \\i\n" |
| 153 | - "\\i \\i\\|^K= Next place \\| \\|^[= To next error ^[Y paste deleted text \\|\\i \\i\n" |
| 154 | - "\\i \\i\\|^K; Tags file search \\| \\|^[- To prev. error ^[^Y cycle through deleted \\|\\i \\i\n" |
| 155 | - "\\i \\i\\| \\| \\|^[ SP Jump to error \\|\\i \\i\n" |
| 156 | - "}\n" |
| 157 | - "{Search\n" |
| 158 | - "\\i Help Screen \\|turn off with ^KH prev. screen ^[, next screen ^[. \\i\n" |
| 159 | - "\\i \\iSpecial search sequences: \\|\\i \\i\n" |
| 160 | - "\\i \\i \\\\^ \\\\$ matches beg./end of line \\\\? match any single char \\|\\i \\i\n" |
| 161 | - "\\i \\i \\\\< \\\\> matches beg./end of word \\\\* match 0 or more chars \\|\\i \\i\n" |
| 162 | - "\\i \\i \\\\c matches balanced C expression \\\\\\\\ matches a \\\\ \\|\\i \\i\n" |
| 163 | - "\\i \\i \\\\[..] matches one of a set \\\\n matches a newline \\|\\i \\i\n" |
| 164 | - "\\i \\i \\\\+ matches 0 or more of the character which follows the \\\\+ \\|\\i \\i\n" |
| 165 | - "\\i \\iSpecial replace sequences: \\|\\i \\i\n" |
| 166 | - "\\i \\i \\\\& replaced with text which matched search string \\|\\i \\i\n" |
| 167 | - "\\i \\i \\\\0 - 9 replaced with text which matched Nth \\\\*, \\\\?, \\\\c, \\\\+, or \\\\[..] \\|\\i \\i\n" |
| 168 | - "\\i \\i \\\\\\\\ replaced with \\\\ \\\\n replaced with newline \\|\\i \\i\n" |
| 169 | - "}\n" |
| 170 | - "{SearchOptions\n" |
| 171 | - "\\i Help Screen \\|turn off with ^KH prev. screen ^[, next screen ^[. \\i\n" |
| 172 | - "\\i \\iSearch options: \\|\\i \\i\n" |
| 173 | - "\\i \\i r Replace \\|\\i \\i\n" |
| 174 | - "\\i \\i k Restrict search to highlighted block, which can be rectangular \\|\\i \\i\n" |
| 175 | - "\\i \\i b Search backward instead of forward \\|\\i \\i\n" |
| 176 | - "\\i \\i i Ignore case \\|\\i \\i\n" |
| 177 | - "\\i \\i a Search across all loaded files \\|\\i \\i\n" |
| 178 | - "\\i \\i e Search across all files in Grep or Compile error list \\|\\i \\i\n" |
| 179 | - "\\i \\i w Wrap to beginning of file for this search \\|\\i \\i\n" |
| 180 | - "\\i \\i n Do not wrap to beginning of file for this search \\|\\i \\i\n" |
| 181 | - "\\i \\i nnn Perform exaclty nnn replacements \\|\\i \\i\n" |
| 182 | - "}\n" |
| 183 | - "{Math\n" |
| 184 | - "\\i Help Screen \\|turn off with ^KH prev. screen ^[, next screen ^[. \\i\n" |
| 185 | - "\\i \\i \\uCOMMANDS\\u (hit ESC m for math) \\uFUNCTIONS\\u \\|\\i \\i\n" |
| 186 | - "\\i \\i hex hex display mode sin cos tab asin acos atan \\|\\i \\i\n" |
| 187 | - "\\i \\i dec decimal mode sinh cosh tanh asinh acosh atanh \\|\\i \\i\n" |
| 188 | - "\\i \\i ins type result into file sqrt cbrt exp ln log \\|\\i \\i\n" |
| 189 | - "\\i \\i eval evaluate block int floor ceil abs erg ergc \\|\\i \\i\n" |
| 190 | - "\\i \\i 0xff enter number in hex joe(..macro..) - runs an editor macro \\|\\i \\i\n" |
| 191 | - "\\i \\i 3e-4 floating point decimal \\uBLOCK\\u \\|\\i \\i\n" |
| 192 | - "\\i \\i a=10 assign a variable sum cnt Sum, count \\|\\i \\i\n" |
| 193 | - "\\i \\i 2+3:ins multiple commands avg dev Average, std. deviation \\|\\i \\i\n" |
| 194 | - "\\i \\i e pi constants \\uOPERATORS\\u \\|\\i \\i\n" |
| 195 | - "\\i \\i ans previous result ! ^ * / % + - < <= > >= == != && || ? :\\|\\i \\i\n" |
| 196 | - "}\n" |
| 197 | - "{Names\n" |
| 198 | - "\\i Help Screen \\|turn off with ^KH prev. screen ^[, next screen ^[. \\i\n" |
| 199 | - "\\i \\i Hit TAB at file name prompts to generate menu of file names \\|\\i \\i\n" |
| 200 | - "\\i \\i Or use up/down keys to access history of previously entered names \\|\\i \\i\n" |
| 201 | - "\\i \\i Special file names: \\|\\i \\i\n" |
| 202 | - "\\i \\i !command Pipe in/out of a shell command \\|\\i \\i\n" |
| 203 | - "\\i \\i >>filename Append to a file \\|\\i \\i\n" |
| 204 | - "\\i \\i - Read/Write to/from standard I/O \\|\\i \\i\n" |
| 205 | - "\\i \\i filename,START,SIZE Read/Write a part of a file/device \\|\\i \\i\n" |
| 206 | - "\\i \\i Give START/SIZE in decimal (255), octal (0377) or hex (0xFF) \\|\\i \\i\n" |
| 207 | - "}\n" |
| 208 | - "{Joe\n" |
| 209 | - "\\i Help Screen \\|turn off with ^KH prev. screen ^[, \\i\n" |
| 210 | - "\\i \\i Send bug reports to: http://sourceforge.net/projects/joe-editor \\|\\i \\i\n" |
| 211 | - "\\i \\i \\|\\i \\i\n" |
| 212 | - "}\n" |
| 213 | - ":windows Bindings common to all windows\n" |
| 214 | - "type ^@ TO ÿ Type a character\n" |
| 215 | - "abort ^C Abort window\n" |
| 216 | - "abort ^K Q\n" |
| 217 | - "abort ^K ^Q\n" |
| 218 | - "abort ^K q\n" |
| 219 | - "arg ^K \\ Repeat next command\n" |
| 220 | - "explode ^K I Show all windows or show only one window\n" |
| 221 | - "explode ^K ^I\n" |
| 222 | - "explode ^K i\n" |
| 223 | - "help ^K H Help menu\n" |
| 224 | - "help ^K ^H\n" |
| 225 | - "help ^K h\n" |
| 226 | - "hnext ^[ . Next help window\n" |
| 227 | - "hprev ^[ , Previous help window\n" |
| 228 | - "math ^[ m Calculator\n" |
| 229 | - "math ^[ M Calculator\n" |
| 230 | - "msg ^[ h Display a message\n" |
| 231 | - "msg ^[ H Display a message\n" |
| 232 | - "msg ^[ ^H Display a message\n" |
| 233 | - "nextw ^K N Goto next window\n" |
| 234 | - "nextw ^K ^N\n" |
| 235 | - "nextw ^K n\n" |
| 236 | - "pgdn .kN Screen down\n" |
| 237 | - "pgdn ^V\n" |
| 238 | - "pgdn ^[ [ 6 ~\n" |
| 239 | - "pgup .kP Screen up\n" |
| 240 | - "pgup ^U\n" |
| 241 | - "pgup ^[ [ 5 ~\n" |
| 242 | - "play ^K 0 TO 9 Execute macro\n" |
| 243 | - "prevw ^K P Goto previous window\n" |
| 244 | - "prevw ^K ^P\n" |
| 245 | - "prevw ^K p\n" |
| 246 | - "query ^K ? Macro query insert\n" |
| 247 | - "record ^K [ Record a macro\n" |
| 248 | - "retype ^R Refresh screen\n" |
| 249 | - "rtn ^M Return\n" |
| 250 | - "shell ^K Z Shell escape\n" |
| 251 | - "shell ^K ^Z\n" |
| 252 | - "shell ^K z\n" |
| 253 | - "stop ^K ] Stop recording\n" |
| 254 | - "defmdown MDOWN Move the cursor to the mouse location\n" |
| 255 | - "defmup MUP\n" |
| 256 | - "defmdrag MDRAG Select a region of characters\n" |
| 257 | - "defm2down M2DOWN Select the word at the mouse location\n" |
| 258 | - "defm2up M2UP\n" |
| 259 | - "defm2drag M2DRAG Select a region of words\n" |
| 260 | - "defm3down M3DOWN Select the line at the mouse location\n" |
| 261 | - "defm3up M3UP\n" |
| 262 | - "defm3drag M3DRAG Select a region of lines\n" |
| 263 | - "xtmouse ^[ [ M Introduces an xterm mouse event\n" |
| 264 | - ":main Text editing window\n" |
| 265 | - ":inherit windows\n" |
| 266 | - ":def ispellfile filt,\"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;cat ispell.tmp;/bin/rm ispell.tmp\",rtn,retype\n" |
| 267 | - ":def ispellword psh,nextword,markk,prevword,markb,filt,\"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;tr -d <ispell.tmp '\\\\012';/bin/rm ispell.tmp\",rtn,retype,nextword\n" |
| 268 | - ":def aspellfile filt,\"SPLTMP=ispell.tmp;cat >$SPLTMP;aspell --lang=\",language,\".\",charset,\" -x -c $SPLTMP </dev/tty >/dev/tty;cat $SPLTMP;/bin/rm $SPLTMP\",rtn,retype\n" |
| 269 | - ":def aspellword psh,nextword,markk,prevword,markb,filt,\"SPLTMP=ispell.tmp;cat >$SPLTMP;aspell --lang=\",language,\".\",charset,\" -x -c $SPLTMP </dev/tty >/dev/tty;tr -d <$SPLTMP '\\\\012';/bin/rm $SPLTMP\",rtn,retype,nextword\n" |
| 270 | - "aspellfile ^[ l\n" |
| 271 | - "aspellword ^[ n\n" |
| 272 | - ":def compile mwind!,mfit!,querysave,query,scratch,\"* Build Log *\",rtn,bof,markb,eof,\" \",markk,blkdel,build\n" |
| 273 | - ":def grep_find mwind!,mfit!,scratch,\"* Grep Log *\",rtn,bof,markb,eof,\" \",markk,blkdel,grep\n" |
| 274 | - ":def man scratch,\"* Man Page *\",rtn,bof,markb,eof,\" \",markk,blkdel,\" \",ltarw,run,\"man -P cat -S 2:3 \"\n" |
| 275 | - "paste ^[ ] 5 2 ; Bracketed paste\n" |
| 276 | - "insc ^[ [ 2 ~\n" |
| 277 | - "insc ^[ [ L SCO\n" |
| 278 | - "delch ^[ [ 3 ~\n" |
| 279 | - "pgup ^[ [ I SCO\n" |
| 280 | - "pgdn ^[ [ G SCO\n" |
| 281 | - "home ^[ [ 1 ~ Putty, Linux, Cygwin\n" |
| 282 | - "home ^[ [ H Xterm, Konsole, SCO\n" |
| 283 | - "home ^[ O H gnome-terminal\n" |
| 284 | - "home ^[ [ 7 ~ RxVT\n" |
| 285 | - "eol ^[ [ 4 ~ Putty, Linux, Cygwin, ssh\n" |
| 286 | - "eol ^[ [ F Xterm, Konsole, SCO\n" |
| 287 | - "eol ^[ O F gnome-terminal\n" |
| 288 | - "eol ^[ [ 8 ~ RxVT\n" |
| 289 | - "rtarw,ltarw,begin_marking,rtarw,toggle_marking ^[ [ 1 ; 5 C Mark right Xterm\n" |
| 290 | - "rtarw,ltarw,begin_marking,rtarw,toggle_marking ^[ [ 5 C Mark right Gnome-terminal\n" |
| 291 | - "rtarw,ltarw,begin_marking,rtarw,toggle_marking ^[ O c Mark right RxVT Ctrl-rtarw\n" |
| 292 | - "ltarw,rtarw,begin_marking,ltarw,toggle_marking ^[ [ 1 ; 5 D Mark left\n" |
| 293 | - "ltarw,rtarw,begin_marking,ltarw,toggle_marking ^[ [ 5 D Mark left\n" |
| 294 | - "ltarw,rtarw,begin_marking,ltarw,toggle_marking ^[ O d Mark left RxVT Ctrl-ltarw\n" |
| 295 | - "uparw,dnarw,begin_marking,uparw,toggle_marking ^[ [ 1 ; 5 A Mark up\n" |
| 296 | - "uparw,dnarw,begin_marking,uparw,toggle_marking ^[ [ 5 A Mark up\n" |
| 297 | - "uparw,dnarw,begin_marking,uparw,toggle_marking ^[ O a Mark up RxVT Ctrl-uparw\n" |
| 298 | - "dnarw,uparw,begin_marking,dnarw,toggle_marking ^[ [ 1 ; 5 B Mark down\n" |
| 299 | - "dnarw,uparw,begin_marking,dnarw,toggle_marking ^[ [ 5 B Mark down\n" |
| 300 | - "dnarw,uparw,begin_marking,dnarw,toggle_marking ^[ O b Mark down RxVT Ctrl-dnarw\n" |
| 301 | - "blkdel,nmark ^[ [ 3 ; 5 - Gnome-terminal Ctrl-Del\n" |
| 302 | - "blkdel,nmark ^[ [ 3 ; 5 ~ Xterm Ctrl-Del\n" |
| 303 | - "yank ^[ [ 2 ; 5 - Gnome-terminal Ctrl-Ins\n" |
| 304 | - "yank ^[ [ 2 ; 5 ~ Xterm Ctrl-Ins\n" |
| 305 | - "delbol ^[ o Delete to beginning of line\n" |
| 306 | - "delbol ^[ ^O Delete to beginning of line\n" |
| 307 | - "dnslide ^[ z Scroll down one line\n" |
| 308 | - "dnslide ^[ Z Scroll down one line\n" |
| 309 | - "dnslide ^[ ^Z Scroll down one line\n" |
| 310 | - "dnslide,dnslide,dnslide,dnslide MWDOWN\n" |
| 311 | - "compile ^[ c Compile\n" |
| 312 | - "compile ^[ C\n" |
| 313 | - "compile ^[ ^C Compile\n" |
| 314 | - "grep_find ^[ g Grep\n" |
| 315 | - "grep_find ^[ G Grep\n" |
| 316 | - "grep_find ^[ ^G Grep\n" |
| 317 | - "execmd ^[ x Prompt for command to execute\n" |
| 318 | - "execmd ^[ X Prompt for command to execute\n" |
| 319 | - "execmd ^[ ^X Prompt for command to execute\n" |
| 320 | - "finish ^[ ^I Complete word in document\n" |
| 321 | - "finish ^[ ^M Complete word: used to be math\n" |
| 322 | - "mwind,mfit,jump,bol ^[ SP\n" |
| 323 | - "isrch ^[ s Forward incremental search\n" |
| 324 | - "isrch ^[ S Forward incremental search\n" |
| 325 | - "isrch ^[ ^S Forward incremental search\n" |
| 326 | - "notmod ^[ ~ Not modified\n" |
| 327 | - "mwind,mfit,prevw,nxterr ^[ = To next error\n" |
| 328 | - "parserr ^[ e Parse errors in current buffer\n" |
| 329 | - "parserr ^[ E Parse errors in current buffer\n" |
| 330 | - "parserr ^[ ^E Parse errors in current buffer\n" |
| 331 | - "mwind,mfit,prevw,prverr ^[ - To previous error\n" |
| 332 | - "rsrch ^[ r Backward incremental search\n" |
| 333 | - "rsrch ^[ R Backward incremental search\n" |
| 334 | - "rsrch ^[ ^R Backward incremental search\n" |
| 335 | - "run ^[ ! Run a program in a window\n" |
| 336 | - "tomarkb ^[ b Go to beginning of marked block\n" |
| 337 | - "tomarkb ^[ ^B Go to beginning of marked block\n" |
| 338 | - "tomarkk ^[ k Go to end of marked block\n" |
| 339 | - "tomarkk ^[ ^K Go to end of marked block\n" |
| 340 | - "tomarkk ^[ K Go to end of marked block\n" |
| 341 | - "txt ^[ i Prompt for text and insert it\n" |
| 342 | - "txt ^[ I Prompt for text and insert it\n" |
| 343 | - "upslide ^[ w Scroll up one line\n" |
| 344 | - "upslide ^[ ^W Scroll up one line\n" |
| 345 | - "upslide ^[ W Scroll up one line\n" |
| 346 | - "upslide,upslide,upslide,upslide MWUP\n" |
| 347 | - "yank ^[ y Undelete text\n" |
| 348 | - "yankpop ^[ ^Y Undelete text\n" |
| 349 | - "yank ^[ Y Undelete text\n" |
| 350 | - "insc ^@ Ctrl-space used to insert a space\n" |
| 351 | - "nbuf ^[ v Next buffer\n" |
| 352 | - "nbuf ^[ V Next buffer\n" |
| 353 | - "nbuf ^[ ^V Next buffer\n" |
| 354 | - "pbuf ^[ u Prev buffer\n" |
| 355 | - "pbuf ^[ U Prev buffer\n" |
| 356 | - "pbuf ^[ ^U Prev buffer\n" |
| 357 | - "quote8 ^\\ Enter Meta chars\n" |
| 358 | - "quote ^[ ' Enter Ctrl chars\n" |
| 359 | - "quote ^Q\n" |
| 360 | - "backs ^? Backspace\n" |
| 361 | - "backs ^H\n" |
| 362 | - "backw ^O Backspace word\n" |
| 363 | - "bknd ^K ' Shell window\n" |
| 364 | - "blkcpy ^K C Copy marked block\n" |
| 365 | - "blkcpy ^K ^C\n" |
| 366 | - "blkcpy ^K c\n" |
| 367 | - "blkdel ^K Y Delete marked block\n" |
| 368 | - "blkdel ^K ^Y\n" |
| 369 | - "blkdel ^K y\n" |
| 370 | - "blkmove ^K M Move marked block\n" |
| 371 | - "blkmove ^K ^M\n" |
| 372 | - "blkmove ^K m\n" |
| 373 | - "blksave ^K W Save marked block\n" |
| 374 | - "blksave ^K ^W\n" |
| 375 | - "blksave ^K w\n" |
| 376 | - "bof ^K U Goto beginning of file\n" |
| 377 | - "bof ^K ^U\n" |
| 378 | - "bof ^K u\n" |
| 379 | - "home .kh\n" |
| 380 | - "home ^A\n" |
| 381 | - "center ^K A Center line\n" |
| 382 | - "center ^K ^A\n" |
| 383 | - "center ^K a\n" |
| 384 | - "crawll ^K < Pan left\n" |
| 385 | - "crawlr ^K > Pan right\n" |
| 386 | - "delch .kD Delete character\n" |
| 387 | - "delch ^D\n" |
| 388 | - "deleol ^J Delete to end of line\n" |
| 389 | - "dellin ^Y Delete entire line\n" |
| 390 | - "delw ^W Delete word to right\n" |
| 391 | - "dnarw .kd Go down\n" |
| 392 | - "dnarw ^N\n" |
| 393 | - "dnarw ^[ O B\n" |
| 394 | - "dnarw ^[ [ B\n" |
| 395 | - "edit ^K E Edit a file\n" |
| 396 | - "edit ^K ^E\n" |
| 397 | - "edit ^K e\n" |
| 398 | - "eof ^K V Go to end of file\n" |
| 399 | - "eof ^K ^V\n" |
| 400 | - "eof ^K v\n" |
| 401 | - "eol .kH Go to end of line\n" |
| 402 | - "eol .@7\n" |
| 403 | - "eol ^E\n" |
| 404 | - "exsave ^K X Save and exit\n" |
| 405 | - "exsave ^K ^X\n" |
| 406 | - "exsave ^K x\n" |
| 407 | - "ffirst ^K F Find first\n" |
| 408 | - "ffirst ^K ^F\n" |
| 409 | - "ffirst ^K f\n" |
| 410 | - "filt ^K / Filter block\n" |
| 411 | - "fnext ^L Find next\n" |
| 412 | - "fmtblk ^K J Format paragraphs in block\n" |
| 413 | - "fmtblk ^K ^J\n" |
| 414 | - "fmtblk ^K j\n" |
| 415 | - "gomark ^[ 0 TO 9 Goto bookmark\n" |
| 416 | - "groww ^K G Grow window\n" |
| 417 | - "groww ^K ^G\n" |
| 418 | - "groww ^K g\n" |
| 419 | - "insc .kI Insert a space\n" |
| 420 | - "insf ^K R Insert a file\n" |
| 421 | - "insf ^K ^R\n" |
| 422 | - "insf ^K r\n" |
| 423 | - "lindent ^K , Indent to left\n" |
| 424 | - "line ^K L Goto line no.\n" |
| 425 | - "line ^K ^L\n" |
| 426 | - "line ^K l\n" |
| 427 | - "ltarw .kl Go left\n" |
| 428 | - "ltarw ^B\n" |
| 429 | - "ltarw ^[ O D\n" |
| 430 | - "ltarw ^[ [ D\n" |
| 431 | - "macros ^[ d Dump keyboard macros\n" |
| 432 | - "macros ^[ ^D\n" |
| 433 | - "markb ^K B Set beginning of marked block\n" |
| 434 | - "markb ^K ^B\n" |
| 435 | - "markb ^K b\n" |
| 436 | - "markk ^K K Set end of marked block\n" |
| 437 | - "markk ^K ^K\n" |
| 438 | - "markk ^K k\n" |
| 439 | - "menu,\"root\",rtn ^T Options menu\n" |
| 440 | - "nextpos ^K = Goto next position in position history\n" |
| 441 | - "nextword ^X Goto next word\n" |
| 442 | - "open ^] Split line\n" |
| 443 | - "prevpos ^K - Previous position in history\n" |
| 444 | - "prevword ^Z Previous word\n" |
| 445 | - "redo ^^ Redo changes\n" |
| 446 | - "rindent ^K . Indent to right\n" |
| 447 | - "rtarw .kr Go right\n" |
| 448 | - "rtarw ^F\n" |
| 449 | - "rtarw ^[ O C\n" |
| 450 | - "rtarw ^[ [ C\n" |
| 451 | - "run ^K ! Run a shell command\n" |
| 452 | - "save ^K D Save file\n" |
| 453 | - "save ^K S\n" |
| 454 | - "save ^K ^D\n" |
| 455 | - "save ^K ^S\n" |
| 456 | - "save ^K d\n" |
| 457 | - "save ^K s\n" |
| 458 | - "setmark ^[ ^[ Set bookmark\n" |
| 459 | - "shrinkw ^K T Shrink window\n" |
| 460 | - "shrinkw ^K ^T\n" |
| 461 | - "shrinkw ^K t\n" |
| 462 | - "splitw ^K O Split window\n" |
| 463 | - "splitw ^K ^O\n" |
| 464 | - "splitw ^K o\n" |
| 465 | - "stat ^K SP Show status\n" |
| 466 | - "tag ^K ; Tags file search\n" |
| 467 | - "tomatch ^G Goto matching parenthasis\n" |
| 468 | - "undo ^_ Undo changes\n" |
| 469 | - "uparw .ku Go up\n" |
| 470 | - "uparw ^P\n" |
| 471 | - "uparw ^[ O A\n" |
| 472 | - "uparw ^[ [ A\n" |
| 473 | - ":prompt Prompt windows\n" |
| 474 | - ":inherit main\n" |
| 475 | - "if,\"byte>size\",then,complete,complete,else,delch,endif ^D\n" |
| 476 | - "complete ^I\n" |
| 477 | - "dnarw,eol .kd Go down\n" |
| 478 | - "dnarw,eol ^N\n" |
| 479 | - "dnarw,eol ^[ O B\n" |
| 480 | - "dnarw,eol ^[ [ B\n" |
| 481 | - "uparw,eol .ku Go up\n" |
| 482 | - "uparw,eol ^P\n" |
| 483 | - "uparw,eol ^[ O A\n" |
| 484 | - "uparw,eol ^[ [ A\n" |
| 485 | - ":menu Selection menus\n" |
| 486 | - ":inherit windows\n" |
| 487 | - "pgupmenu ^[ [ I\n" |
| 488 | - "pgdnmenu ^[ [ G\n" |
| 489 | - "bolmenu ^[ [ 1 ~ Putty, Linux, Cygwin\n" |
| 490 | - "bolmenu ^[ [ H Xterm, Konsole\n" |
| 491 | - "bolmenu ^[ O H gnome-terminal\n" |
| 492 | - "bolmenu ^[ [ 7 ~ RxVT\n" |
| 493 | - "eolmenu ^[ [ 4 ~ Putty, Linux, Cygwin, ssh\n" |
| 494 | - "eolmenu ^[ [ F Xterm, Konsole\n" |
| 495 | - "eolmenu ^[ O F gnome-terminal\n" |
| 496 | - "eolmenu ^[ [ 8 ~ RxVT\n" |
| 497 | - "abort ^[ ^[ Why?\n" |
| 498 | - "backsmenu ^?\n" |
| 499 | - "backsmenu ^H\n" |
| 500 | - "bofmenu ^K U\n" |
| 501 | - "bofmenu ^K ^U\n" |
| 502 | - "bofmenu ^K u\n" |
| 503 | - "bolmenu .kh\n" |
| 504 | - "bolmenu ^A\n" |
| 505 | - "dnarwmenu .kd\n" |
| 506 | - "dnarwmenu ^N\n" |
| 507 | - "dnarwmenu ^[ [ B\n" |
| 508 | - "dnarwmenu ^[ O B\n" |
| 509 | - "dnarwmenu MWDOWN\n" |
| 510 | - "eofmenu ^K V\n" |
| 511 | - "eofmenu ^K ^V\n" |
| 512 | - "eofmenu ^K v\n" |
| 513 | - "eolmenu .kH\n" |
| 514 | - "eolmenu ^E\n" |
| 515 | - "ltarwmenu .kl\n" |
| 516 | - "ltarwmenu ^B\n" |
| 517 | - "ltarwmenu ^[ [ D\n" |
| 518 | - "ltarwmenu ^[ O D\n" |
| 519 | - "pgdnmenu .kN Screen down\n" |
| 520 | - "pgdnmenu ^V\n" |
| 521 | - "pgdnmenu ^[ [ 6 ~\n" |
| 522 | - "pgupmenu .kP Screen up\n" |
| 523 | - "pgupmenu ^U\n" |
| 524 | - "pgupmenu ^[ [ 5 ~\n" |
| 525 | - "rtarwmenu .kr\n" |
| 526 | - "rtarwmenu ^F\n" |
| 527 | - "rtarwmenu ^[ [ C\n" |
| 528 | - "rtarwmenu ^[ O C\n" |
| 529 | - "rtn SP\n" |
| 530 | - "rtn ^I\n" |
| 531 | - "rtn ^K H\n" |
| 532 | - "rtn ^K h\n" |
| 533 | - "rtn ^K ^H\n" |
| 534 | - "tabmenu ^I\n" |
| 535 | - "uparwmenu .ku\n" |
| 536 | - "uparwmenu ^P\n" |
| 537 | - "uparwmenu ^[ [ A\n" |
| 538 | - "uparwmenu ^[ O A\n" |
| 539 | - "uparwmenu MWUP\n" |
| 540 | - "defm2down M2DOWN Hits return key\n" |
| 541 | - ":query Single-key query window\n" |
| 542 | - ":inherit windows\n" |
| 543 | - ":querya Single-key query window for quoting\n" |
| 544 | - "type ^@ TO ÿ\n" |
| 545 | - ":querysr Search & replace query window\n" |
| 546 | - "type ^@ TO ÿ\n" |
| 547 | -, USTR "c.jsf.in", |
| 548 | - USTR "=Idle\n" |
| 549 | - "=Bad bold red\n" |
| 550 | - "=Preproc blue\n" |
| 551 | - "=Define bold blue\n" |
| 552 | - "=Comment green\n" |
| 553 | - "=IncLocal cyan\n" |
| 554 | - "=IncSystem bold cyan\n" |
| 555 | - "=Constant cyan\n" |
| 556 | - "=Escape bold cyan\n" |
| 557 | - "=Type bold\n" |
| 558 | - "=Keyword bold\n" |
| 559 | - "=CppKeyword bold\n" |
| 560 | - "=Brace magenta\n" |
| 561 | - "=Control\n" |
| 562 | - "\n" |
| 563 | - ":reset Idle\n" |
| 564 | - " * first noeat\n" |
| 565 | - " \" \\t\" reset\n" |
| 566 | - "\n" |
| 567 | - ":first Idle\n" |
| 568 | - " * idle noeat\n" |
| 569 | - " \"#\" pre recolor=-1\n" |
| 570 | - "\n" |
| 571 | - ":pre Preproc\n" |
| 572 | - " * preproc noeat\n" |
| 573 | - " \" \\t\" pre\n" |
| 574 | - " \"a-z\" preident recolor=-1 buffer\n" |
| 575 | - "\n" |
| 576 | - ":preident Preproc\n" |
| 577 | - " * preproc noeat strings\n" |
| 578 | - " \"define\" predef\n" |
| 579 | - " \"include\" preinc\n" |
| 580 | - "done\n" |
| 581 | - " \"a-z\" preident\n" |
| 582 | - "\n" |
| 583 | - ":preinc Preproc\n" |
| 584 | - " * preinc\n" |
| 585 | - " \" \\t\" preinc_ws\n" |
| 586 | - " \"\\n\" reset\n" |
| 587 | - " \n" |
| 588 | - ":preinc_ws Preproc\n" |
| 589 | - " * prebad recolor=-1\n" |
| 590 | - " \" \\t\" preinc_ws\n" |
| 591 | - " \"\\\"\" preinc_local recolor=-1\n" |
| 592 | - " \"<\" preinc_system recolor=-1\n" |
| 593 | - "\n" |
| 594 | - ":preinc_local IncLocal\n" |
| 595 | - " * preinc_local\n" |
| 596 | - " \"\\\"\\n\" reset\n" |
| 597 | - " \n" |
| 598 | - ":preinc_system IncSystem\n" |
| 599 | - " * preinc_system\n" |
| 600 | - " \">\\n\" reset\n" |
| 601 | - "\n" |
| 602 | - ":prebad Bad \n" |
| 603 | - " * prebad\n" |
| 604 | - " \"\\n\" reset\n" |
| 605 | - "\n" |
| 606 | - "\n" |
| 607 | - ":predef Preproc\n" |
| 608 | - " * predef\n" |
| 609 | - " \" \\t\" predef_ws\n" |
| 610 | - " \"\\n\" reset\n" |
| 611 | - " \n" |
| 612 | - ":predef_ws Preproc\n" |
| 613 | - " * prebad recolor=-1\n" |
| 614 | - " \" \\t\" predef_ws\n" |
| 615 | - " \"a-zA-Z0-9_\" predef_ident recolor=-1\n" |
| 616 | - "\n" |
| 617 | - ":predef_ident Define\n" |
| 618 | - " * idle noeat\n" |
| 619 | - " \"a-zA-Z0-9_\" predef_ident\n" |
| 620 | - "\n" |
| 621 | - "\n" |
| 622 | - ":preproc Preproc\n" |
| 623 | - " * preproc\n" |
| 624 | - " \"\\n\" reset\n" |
| 625 | - " \"\\\\\" preproc_cont\n" |
| 626 | - " \"/\" preproc_slash\n" |
| 627 | - " \n" |
| 628 | - ":preproc_slash Preproc\n" |
| 629 | - " * preproc noeat\n" |
| 630 | - " \"*\" comment recolor=-2\n" |
| 631 | - " \"/\" line_comment recolor=-2\n" |
| 632 | - " \n" |
| 633 | - ":preproc_cont Preproc\n" |
| 634 | - " * preproc_cont\n" |
| 635 | - " \"\\n\" preproc\n" |
| 636 | - "\n" |
| 637 | - ":idle Idle\n" |
| 638 | - " * idle\n" |
| 639 | - " \"\\n\" reset\n" |
| 640 | - " \"/\" slash\n" |
| 641 | - " \"0\" first_digit recolor=-1\n" |
| 642 | - " \"1-9\" decimal recolor=-1\n" |
| 643 | - " \".\" maybe_float\n" |
| 644 | - " \"\\\"\" string recolor=-1\n" |
| 645 | - " \"'\" char recolor=-1\n" |
| 646 | - " \"a-zA-Z_\" ident buffer\n" |
| 647 | - " \"\\\\\" outside_escape recolor=-1\n" |
| 648 | - " \"{}\" brace recolor=-1\n" |
| 649 | - " \",:;=()><[]*&|!~+\\-%^\" control recolor=-1\n" |
| 650 | - "\n" |
| 651 | - ":outside_escape Escape\n" |
| 652 | - " * idle\n" |
| 653 | - "\n" |
| 654 | - ":brace Brace\n" |
| 655 | - " * idle noeat\n" |
| 656 | - "\n" |
| 657 | - ":control Control\n" |
| 658 | - " * idle noeat\n" |
| 659 | - "\n" |
| 660 | - ":slash Idle\n" |
| 661 | - " * idle noeat recolor=-2\n" |
| 662 | - " \"*\" comment recolor=-2\n" |
| 663 | - " \"/\" line_comment recolor=-2\n" |
| 664 | - "\n" |
| 665 | - ":comment Comment\n" |
| 666 | - " * comment\n" |
| 667 | - " \"*\" maybe_end_comment\n" |
| 668 | - "\n" |
| 669 | - ":maybe_end_comment Comment\n" |
| 670 | - " * comment\n" |
| 671 | - " \"/\" idle\n" |
| 672 | - " \"*\" maybe_end_comment\n" |
| 673 | - "\n" |
| 674 | - ":line_comment Comment\n" |
| 675 | - " * line_comment\n" |
| 676 | - " \"\\n\" reset\n" |
| 677 | - "\n" |
| 678 | - ":first_digit Constant\n" |
| 679 | - " * idle noeat\n" |
| 680 | - " \"xX\" hex\n" |
| 681 | - " \".\" float\n" |
| 682 | - " \"eE\" epart\n" |
| 683 | - " \"0-7\" octal\n" |
| 684 | - " \"89\" bad_number recolor=-1\n" |
| 685 | - "\n" |
| 686 | - ":bad_number Bad\n" |
| 687 | - " * idle noeat\n" |
| 688 | - " \"0-9\" bad_number\n" |
| 689 | - "\n" |
| 690 | - ":octal Constant\n" |
| 691 | - " * idle noeat\n" |
| 692 | - " \"0-7\" octal\n" |
| 693 | - " \"89\" bad_number recolor=-1\n" |
| 694 | - "\n" |
| 695 | - ":hex Constant\n" |
| 696 | - " * idle noeat\n" |
| 697 | - " \"0-9A-Fa-f\" hex\n" |
| 698 | - "\n" |
| 699 | - ":decimal Constant\n" |
| 700 | - " * idle noeat\n" |
| 701 | - " \"0-9\" decimal\n" |
| 702 | - " \"eE\" epart\n" |
| 703 | - " \".\" float\n" |
| 704 | - "\n" |
| 705 | - ":maybe_float Constant\n" |
| 706 | - " * idle recolor=-2 noeat\n" |
| 707 | - " \"0-9\" float recolor=-2\n" |
| 708 | - "\n" |
| 709 | - ":float Constant\n" |
| 710 | - " * idle noeat\n" |
| 711 | - " \"eE\" epart\n" |
| 712 | - " \"0-9\" float\n" |
| 713 | - "\n" |
| 714 | - ":epart Constant\n" |
| 715 | - " * idle noeat\n" |
| 716 | - " \"0-9+\\-\" enum\n" |
| 717 | - "\n" |
| 718 | - ":enum Constant\n" |
| 719 | - " * idle noeat\n" |
| 720 | - " \"0-9\" enum\n" |
| 721 | - "\n" |
| 722 | - ":string Constant\n" |
| 723 | - " * string\n" |
| 724 | - " \"\\\"\" idle\n" |
| 725 | - " \"\\\\\" string_escape recolor=-1\n" |
| 726 | - " \"%\" string_control recolor=-1\n" |
| 727 | - "\n" |
| 728 | - ":string_escape Escape\n" |
| 729 | - " * string\n" |
| 730 | - " \"x\" string_hex1\n" |
| 731 | - " \"0-7\" string_octal2\n" |
| 732 | - " \"\\n\" string recolor=-2\n" |
| 733 | - "\n" |
| 734 | - ":string_hex1 Escape\n" |
| 735 | - " * string noeat\n" |
| 736 | - " \"0-9a-fA-F\" string_hex2\n" |
| 737 | - "\n" |
| 738 | - ":string_hex2 Escape\n" |
| 739 | - " * string noeat\n" |
| 740 | - " \"0-9a-fA-F\" string\n" |
| 741 | - "\n" |
| 742 | - ":string_octal2 Escape\n" |
| 743 | - " * string noeat\n" |
| 744 | - " \"0-7\" string_octal3\n" |
| 745 | - "\n" |
| 746 | - ":string_octal3 Escape\n" |
| 747 | - " * string noeat\n" |
| 748 | - " \"0-7\" string\n" |
| 749 | - "\n" |
| 750 | - ":string_control Escape\n" |
| 751 | - " * string\n" |
| 752 | - " \"\\\"\" string noeat\n" |
| 753 | - " \"\\n\" reset\n" |
| 754 | - " \"0-9.\\-+ #hjILtz$\" string_control\n" |
| 755 | - "\n" |
| 756 | - ":char Constant\n" |
| 757 | - " * char\n" |
| 758 | - " \"\\n\" reset\n" |
| 759 | - " \"'\" idle\n" |
| 760 | - " \"\\\\\" char_escape recolor=-1\n" |
| 761 | - "\n" |
| 762 | - ":char_escape Escape\n" |
| 763 | - " * char\n" |
| 764 | - " \"x\" char_hex1\n" |
| 765 | - " \"0-7\" char_octal2\n" |
| 766 | - " \"\\n\" char recolor=-2\n" |
| 767 | - "\n" |
| 768 | - ":char_hex1 Escape\n" |
| 769 | - " * char noeat\n" |
| 770 | - " \"0-9a-fA-F\" char_hex2\n" |
| 771 | - "\n" |
| 772 | - ":char_hex2 Escape\n" |
| 773 | - " * char noeat\n" |
| 774 | - " \"0-9a-fA-F\" char\n" |
| 775 | - "\n" |
| 776 | - ":char_octal2 Escape\n" |
| 777 | - " * char noeat\n" |
| 778 | - " \"0-7\" char_octal3\n" |
| 779 | - "\n" |
| 780 | - ":char_octal3 Escape\n" |
| 781 | - " * char noeat\n" |
| 782 | - " \"0-7\" char\n" |
| 783 | - "\n" |
| 784 | - ":ident Idle\n" |
| 785 | - " * idle noeat strings\n" |
| 786 | - " \"int\" type\n" |
| 787 | - " \"float\" type\n" |
| 788 | - " \"long\" type\n" |
| 789 | - " \"short\" type\n" |
| 790 | - " \"char\" type\n" |
| 791 | - " \"double\" type\n" |
| 792 | - " \"signed\" type\n" |
| 793 | - " \"unsigned\" type\n" |
| 794 | - " \"void\" type\n" |
| 795 | - " \"static\" type\n" |
| 796 | - " \"register\" type\n" |
| 797 | - " \"extern\" type\n" |
| 798 | - " \"inline\" type\n" |
| 799 | - " \"auto\" type\n" |
| 800 | - " \"const\" type\n" |
| 801 | - " \"volatile\" type\n" |
| 802 | - " \"if\" kw\n" |
| 803 | - " \"else\" kw\n" |
| 804 | - " \"while\" kw\n" |
| 805 | - " \"for\" kw\n" |
| 806 | - " \"break\" kw\n" |
| 807 | - " \"continue\" kw\n" |
| 808 | - " \"do\" kw\n" |
| 809 | - " \"case\" kw\n" |
| 810 | - " \"default\" kw\n" |
| 811 | - " \"switch\" kw\n" |
| 812 | - " \"goto\" kw\n" |
| 813 | - " \"struct\" kw\n" |
| 814 | - " \"enum\" kw\n" |
| 815 | - " \"return\" kw\n" |
| 816 | - " \"sizeof\" kw\n" |
| 817 | - " \"typedef\" kw\n" |
| 818 | - " \"union\" kw\n" |
| 819 | - " \"asm\" kw\n" |
| 820 | - " \"class\" cppkw\n" |
| 821 | - " \"public\" cppkw\n" |
| 822 | - " \"private\" cppkw\n" |
| 823 | - " \"protected\" cppkw\n" |
| 824 | - " \"friend\" cppkw\n" |
| 825 | - " \"new\" cppkw\n" |
| 826 | - " \"delete\" cppkw\n" |
| 827 | - " \"bool\" cppkw\n" |
| 828 | - " \"namespace\" cppkw\n" |
| 829 | - " \"operator\" cppkw\n" |
| 830 | - " \"template\" cppkw\n" |
| 831 | - " \"catch\" cppkw\n" |
| 832 | - " \"throw\" cppkw\n" |
| 833 | - " \"try\" cppkw\n" |
| 834 | - " \"typeof\" cppkw\n" |
| 835 | - "done\n" |
| 836 | - " \"a-zA-Z0-9_\" ident\n" |
| 837 | - "\n" |
| 838 | - ":type Type\n" |
| 839 | - " * idle noeat\n" |
| 840 | - "\n" |
| 841 | - ":kw Keyword\n" |
| 842 | - " * idle noeat\n" |
| 843 | - "\n" |
| 844 | - ":cppkw CppKeyword\n" |
| 845 | - " * idle noeat\n" |
| 846 | -, NULL |
| 847 | -}; |
| 848 | - |
| 849 | Index: joe-embedded/genbuiltins.sh |
| 850 | =================================================================== |
| 851 | --- joe-embedded/genbuiltins.sh (revision 0) |
| 852 | +++ joe-embedded/genbuiltins.sh (revision 234) |
| 853 | @@ -0,0 +1,80 @@ |
| 854 | +#! /bin/bash |
| 855 | +# |
| 856 | +# Generate builtins.c for joe editor |
| 857 | +# |
| 858 | +# (C) David Kuehling 2010. License: GPLv2+ |
| 859 | +# |
| 860 | + |
| 861 | + |
| 862 | +sed_rc=' |
| 863 | +# strip empty and comment lines |
| 864 | +/^$/d |
| 865 | +/^[ \t]/d |
| 866 | + |
| 867 | +# remove comments at and of option lines |
| 868 | +s/\(-[a-z_A-Z0-9]\+\)\(\t\| [ \t]\+\).*/\1/ |
| 869 | + |
| 870 | +# fix includes to refer to builtin files |
| 871 | +s/^\(:include \)\([a-z]\)/\1*\2/ |
| 872 | +' |
| 873 | + |
| 874 | +sed_syntax=' |
| 875 | +# comment lines |
| 876 | +/^#/d |
| 877 | +' |
| 878 | + |
| 879 | +sed_cstring=' |
| 880 | +# escape chars |
| 881 | +s/\\/\\\\/g |
| 882 | +s/"/\\"/g |
| 883 | +s/\r/\\r/ |
| 884 | + |
| 885 | +# split into one string per line |
| 886 | +s/^.*$/\t"&\\n"/ |
| 887 | +' |
| 888 | + |
| 889 | +rcfile(){ |
| 890 | + echo " |
| 891 | + USTR \"$(basename $1)\", |
| 892 | + USTR " |
| 893 | + case "$1" in |
| 894 | + *rc) |
| 895 | + sed="$sed_rc" |
| 896 | + ;; |
| 897 | + *.jsf) |
| 898 | + sed="$sed_syntax" |
| 899 | + ;; |
| 900 | + *) |
| 901 | + sed="" |
| 902 | + ;; |
| 903 | + esac |
| 904 | + LANG=C sed -e "$sed" -e "$sed_cstring" "$1" |
| 905 | + echo " ," |
| 906 | + |
| 907 | +} |
| 908 | + |
| 909 | +prolog(){ |
| 910 | + echo "/* Built-in files */ |
| 911 | + |
| 912 | +#include \"types.h\" |
| 913 | + |
| 914 | +unsigned char *builtins[]= |
| 915 | +{ |
| 916 | +" |
| 917 | +} |
| 918 | + |
| 919 | +epilog(){ |
| 920 | +echo "NULL |
| 921 | +};" |
| 922 | + |
| 923 | +} |
| 924 | + |
| 925 | +prolog |
| 926 | + |
| 927 | +for i in "$@"; do |
| 928 | + rcfile $i |
| 929 | +done |
| 930 | + |
| 931 | +epilog |
| 932 | + |
| 933 | + |
| 934 | |
| 935 | Property changes on: joe-embedded/genbuiltins.sh |
| 936 | ___________________________________________________________________ |
| 937 | Added: svn:executable |
| 938 | + * |
| 939 | |
| 940 | Index: joe-embedded/Makefile.in |
| 941 | =================================================================== |
| 942 | --- joe-embedded/Makefile.in (revision 227) |
| 943 | +++ joe-embedded/Makefile.in (revision 234) |
| 944 | @@ -236,7 +236,7 @@ |
| 945 | utils.h va.h vfile.h vs.h w.h utf8.h syntax.h i18n.h charmap.h mouse.h \ |
| 946 | lattr.h gettext.h builtin.h |
| 947 | |
| 948 | -INCLUDES = -DJOERC="\"$(sysconf_joedir)/\"" -DJOEDATA="\"$(data_joedir)/\"" |
| 949 | +INCLUDES = -DJOERC="\"\"" -DJOEDATA="\"$(data_joedir)/\"" |
| 950 | joe_LDADD = -lm |
| 951 | joe_SOURCES = b.c blocks.c bw.c cmd.c hash.c help.c kbd.c macro.c main.c menu.c \ |
| 952 | path.c poshist.c pw.c queue.c qw.c rc.c regex.c scrn.c tab.c termcap.c \ |
| 953 | @@ -249,6 +249,11 @@ |
| 954 | all: autoconf.h |
| 955 | $(MAKE) $(AM_MAKEFLAGS) all-recursive |
| 956 | |
| 957 | +builtins.c : rc/ftyperc rc/jmacsrc.in rc/joerc.in rc/jpicorc.in rc/jstarrc.in rc/rjoerc.in |
| 958 | + make -C rc |
| 959 | + chmod a+x genbuiltins.sh |
| 960 | + ./genbuiltins.sh rc/ftyperc rc/jmacsrc rc/joerc rc/jpicorc rc/jstarrc rc/rjoerc > $@ |
| 961 | + |
| 962 | .SUFFIXES: |
| 963 | .SUFFIXES: .c .o .obj |
| 964 | am--refresh: |
| 965 |
