Do something with these keys: ------- ssh 3.2 ------- Arrow:     Home: [2~ (uhg!) End: [4~ Pgup: [5~ Pgdn: [6~ Ins: [2~ Del:  F1: [11~ F2: [12~ F3: [13~ F4: [14~ F5: [15~ F6: [17~ F7: [18~ F8: [19~ F9: [20~ F10: [21~ F11: [23~ F12: [24~ Ctrl-arrow: - Alt-arrow: - (can set Alt=ESC mode, but doesn't work with arrow keys) Shift-arrow: - ----- PuTTY ----- Arrow:     Home: [1~ End: [4~ Pgup: [5~ Pgdn: [6~ Ins: [2~ Del: [3~ F1: [11~ F2: [12~ F3: [13~ F4: [14~ F5: [15~ F6: [17~ F7: [18~ F8: [19~ F9: [20~ F10: [21~ F11: [23~ F12: [24~ Ctrl-arrow: OC OD OA OB Ctrl-home: - Ctrl-end: - Ctrl-pgup: putty scroll back Ctrl-pgdn: putty scroll fwrd Ctrl-ins: - Ctrl-del: - Alt-arrow:     Alt-pgup: [5~ Alt-pgdn: [6~ Alt-home: [1~ Alt-end: [4~ Alt-ins: [2~ Alt-del: [3~ Shift-arrow:     Shift-home: [1~ Shift-end: [4~ Shift-pgup: putty scroll back Shift-pgdn: putty scroll fwrd Shift-ins:  Shift-del: [3~ ----- XTerm ----- Arrow:     Home:  End:  PgUp: [5~ PgDn: [6~ Ins: [2~ Del: [3~ F1: OP F2: OQ F3: OR F4: OS F5: [15~ F6: [17~ F7: [18~ F8: [19~ F9: [20~ F10: [21~ F11: [23~ F12: [24~ Ctrl-arrow:     Ctrl-home:  Ctrl-end:  Ctrl-pgup: [5;5~ Ctrl-pgdn: [6;5~ Ctrl-ins: [2;5~ Ctrl-del: [3;5~ Shift-arrow:     Shift-home:  Shift-end:  Shift-pgup: - Shift-pgdn: - Shift-ins *DOES NOT WORK* but inserts the X PRIMARY SELECTION Shift-del: [3;2~ Shift-ctrl-arrow:     Alt-ctrl-arrow:     Alt-shift-arrow:     Alt-shift-ctrl-arrow:     Alt-arrow:     Alt-home:  Alt-end:  Alt-pgup: [5;3~ Alt-pgdn: [6;3~ Alt-ins: [2;3~ Alt-del: [3;3~ ---- rxvt ---- Arrow:     Home: [7~ End: [8~ Pgup: [5~ Pgdn: [6~ Ins: [2~ Del: [3~ F1: [11~ F2: [12~ F3: [13~ F4: [14~ F5: [15~ F6: [17~ F7: [18~ F8: [19~ F9: [20~ F10: [21~ F11: [23~ F12: [24~ Ctrl-arrow: Oc Od Oa Ob Ctrl-home: [7^ Ctrl-end: [8^ Ctrl-pgup: [5^ Ctrl-pgdn: [6^ Ctrl-ins: [2^ Ctrl-del: [3^ Shift-arrow:     Shift-ctrl-arrow:     Alt-ctrl-arrow: Oc Od Oa Ob Alt-shift-arrow:     Alt-arrow:     -------------- gnome-terminal -------------- Arrows:     Home: OH End: OF PgUp: [5~ PgDn: [6~ Ins: [2~ Del: [3~ F1: - F2: OQ F3: OR F4: OS F5: [15~~ F6: [17~~ F7: [18~~ F8: [19~ F9: [20~ F10: - F11: [23~ F12: [24~ Ctrl-arrow:     Ctrl-home: OH Ctrl-end: OF Ctrl-pgup: - Ctrl-pgdn: - Ctrl-ins: [2;5~ Ctrl-del: [3;5~ Shift-arrows:     Shift-home: - Shift-end: - Shift-pgup: - Shift-pgdn: - Shift-ins: - Shift-del: [3;2~ Alt-arrows:     Alt-home: OH Alt-end: OF Alt-PgUp: [5;3~ Alt-PgDn: [6;3~ Alt-Insert: [2;3~ Alt-Delete: [3;3~ Ctrl-Alt-arrows: - (window manager takes) Ctrl-Shift-arrows:     Ctrl-Shift-Alt-arrows:     ------- konsole ------- Arrows:     Home:  End:  PgUp: [5~ PgDn: [6~ Ins: [2~ Del: [3~ F1: OP F2: OQ F3: OR F4: OS F5: [15~ F6: [17~ F7: [18~ F8: [19~ F9: [20~ F10: [21~ F11: [23~ F12: [24~ Ctrl-arrows:     Ctrl-home:  Ctrl-end:  Ctrl-PgUp: [5~ Ctrl-PgDn: [6~ Ctrl-ins: [2~ Ctrl-del: [3~ Shift-arrows: - Shift-home:  Shift-end:  Shift-PgUp: - Shift-PgDn: - Shift-Ins: - Shift-Del: [3;2~ Alt-arrows:     Alt-home:  Alt-end:  Alt-PgUp: [5~ Alt-PgDn: [6~ Alt-Ins: [2~ Alt-Del: [3~ ------------- linux console ------------- Arrows:     Home: [1~ End: [4~ PgUp: [5~ PgDn: [6~ Ins: [2~ Del: [3~ F1: [[A F2: [[B F3: [[C F4: [[D F5: [[E F6: [17~ F7: [18~ F8: [19~ F9: [20~ F10: [21~ F11: [23~ F12: [24~ Ctrl-arrows:     Ctrl-home: [1~ Ctrl-end: [4~ Ctrl-pgup: [5~ Ctrl-pgdn: [6~ Ctrl-ins: [2~ Ctrl-del: [3~ Shift-arrows:  Shift-home: [1~ Alt-arrows: - (switches console) Alt-home: [1~ -------------- cygwin console -------------- Arrows:     Home: [1~ End: [4~ PgUp: [5~ PgDn: [6~ Ins: [2~ Del: [3~ F1: [[A F2: [[B F3: [[C F4: [[D F5: [[E F6: [17~ F7: [18~ F8: [19~ F9: [20~ F10: [21~ F11: [23~ F12: [24~ Ctrl-arrows: - Shift-arrows: - Alt-enything: prefixed with ESC ----------------------- jstar missing sequences ----------------------- ^O options (supposed to be set tab width) ^P print ^U undo (supossed to be unerase) ^^ autoindent on/off ^\ meta (supposed to be refresh screen) ESC $ insert math result money formatted ESC m Memorandum ESC s isearch fwrd (supposed to be Sincerely) ESC c compile (supposed to be center line) ^Q U align paragraph (don't know what this does) ^Q ^Q repeat next command once every second ^Q O spell check entered word ^Q W scroll up- repeat once every second ^Q Z scroll down- repeat once every second ^Q Ins it does something... ^Q Home scroll up repeating ^Q End scroll down repeating ^K M math ^K F run dos comment ^K N column mode on ^K I column replace mode on ^K O copy file ^K E rename file ^K J erase file ^K L change drive ^K uparw rename file ^K dnarw save and exit ^K ltarw save ^K rtarw ^K D save ^K Ins move ^K Home quit ^K End quit ^K ' to markk ----------------------- ----------------- notepad/cua mode? ----------------- ^A select all ^F find ^G goto line ^H replace ^J return ^N new blank file ^O edit file (asks to save current) ^P print ^S save ^V paste (done) ^Z undo (done) ^X cut (done) ^C copy (done) F3 find next F5 date/time - shell window intercept should be smarter. hit ^K ^H- the ^H is going to the shell window. - do not use ^[^[ for anything. it prevents Alt-arrow from being useful. - search should automatically use 'k' mode if block is selected. Cursor should jump to top of block when done. Jump back to start mode? - save all files without asking thing for quick compile - better parsing of compile messages - continued search mode for jpico? - smarter highlighter- need char and string storage. - make ^K F prompt with previous text (PICO)? ^K X leads to segfault? if I use ^K C to move search string into search prompt, it says not found even though it found it. options are screwed up: we copy window to buffer (to get buffer options to the buffer). But if we have multiple windows, buffer options will have stale data. we are missing many query and prompt window abort handlers, which cause small memory leaks. - update help screens: some things have changed (emacs is more like emacs). Fix for next release highlight: other windows why lose state during page down? perl highlighter more syntax files byte to byte conversions? UTF-8 decoder right at input instead of in qw and utype? Update man page. Reload modified files (or current window) don't use -notite by default. (why? we switched back to -notite…) Watch loaded file for changes Save all history buffers and keyboard macros in ~/.joe_state file? Although, if merged, it must be disabled by default like mksh’s HISTFILE is: 18:48⎜«asarch» That would be for a wish list then: to keep the ⎜ list of all opened files with their last position Natureshadow agrees with me that this is a JOE antifeature Update documentation. shift/alt/ctrl arrow key stuff. (partially done) regex: character classes? a-z matches any letter? parse *rc file only once? different symbol for 'joe' directory can't load terminfo- should switch to termcap or provide compiled ANSI terminfo built in. New features: ----------------------- move *rc files to .etc/jupp directory? Or XDG, see below. check all instances of 'chars': use unicode to locale symbols instead. EBCDIC ? - we assume '\n' is line terminator. - there are many references to '\t' and ' '. - EBCDIC used to be fixed record length (80 columns) anyway. Math: octal(?), more functions. (-lm?) Perl compatible regex search. (Ugh. But grouping like \+\(foo\+ \) would be cool.) (Also, alternatives and/or backreferences, think ^Q=) Improvements for regular text ----------------------------- mode where wordwrap wraps rest of paragraph? mode where all editing wraps rest of paragraph? soft wrap (i.e. wrap on screen but not in the file)! Improvements for programming ---------------------------- Jump to definition (tags does this) Show list of references Diff mode (need vertical window) Tie in with CVS Refactoring Syntax Highlighting: -------------------- Support for more languages: Paragraph reformat mode for TeX files. ^G Matching for verilog begin ... end, html tags, etc. Reformat paragraph should reformat C function if we're editing C. File loading/storing: Should have switch buffers in current window as more fundamental joe key sequence (it's ^[ u and ^[ v for now). Unnamed buffers should be in bufed list (was fixed in the lost joe 2.9) Jmacs/Jstar/Jpico: search and replace 'fred' to 'foo': find 'Fred', gets 'Foo'. Rectangle mode for emacs yank system Overtype mode works for yank ESC args should work differently in emacs many negative args do not work properly exiting options and i-search with ESC is not pretty (it isn't in emacs either) Shell windows: Better environment settings for shell windows. Documentation: Include documentation for joe hackers. I wrote a lot of this some time, I need to find it. joe should open tty earlier in startup sequence because ^Y is suspend character on sun. UTF-8/Internationalization -------------------------- - right-left mode for Hebrew/Arabic? There is no good way to do this. For all rtol, you could use a reversed xterm. For mixed, you need tags to indicate direction. UI for changing colors in the editor (or at least dark/light mode) More colors: UI for using 256 color xterms. Lock files being edited? one person gets write lock Don't understand: optionally break hardlinks on save? what is "tla"? Use memory mapped files to fast load large files. Have to not count no. lines in each buffer on startup. Emulate other editors? Brief, EDT? Prompts: Sort should be column wise, not row wise? HTML-style thing for option selection? Terminal handling: Emit ESC c to reset terminal on startup? -> no, this power-cycles a hardware DEC VT420 (takes 1-2 minutes) Look into clearing right-most column. Macros: Interactive macros during file load are broken. Think about multiple stack hack (otherwise template based C++ callbacks). Mouse: ` and autoindent mode are a problem for drag and drop. any way we can distinguish normal typing from a drop? xterm can actually do that: it's called bracketed paste mode: you send ^[ [ ? 2 0 0 4 h then any pastes you receive begin with ^[ [ 2 0 0 ~ and end with ^[ [ 2 0 1 ~ until you send ^[ [ ? 2 0 0 4 l but it only works with recent xterm and, while you can wrap the requests between ^[ P and ^[ \ to make them pass GNU screen it would wreck havoc with the other tabs, so we make this conditional on $TERM being xterm-xfree86 offering a generic paste mode in addition via :paste keymap mouse mode: mouse can position cursor. Would be good for jcua... Major new modes: Fixed record length mode Major code improvements: Vertical windows (optionally lock-stepped). Major new features: Folding Options Fix it so all options appear in ^T. Maybe make hook function to handle major changes. Need this for major mode change for hex edit mode. Other requests: -cleanup (delete extra lines and extra spaces at ends of lines). -show no. utf characters, not no. bytes ┌───────────┐ │ jupp TODO │ └───────────┘ • replace all int with size_t where applicable • merge syntax handling code from joe-3.7+ • merge math from joe-3.7+ • add group support to regex code • make -Wcast-qual clean • write a jupp(1) mdoc page • use mirkev (better code for hashtables) • attach labels to ftypes; allow ftypes to inherit from these labels, instead of fdefault; add UI to apply an ftype, including fdefault, to the current buffer (requested by Wayne Cuddy) • regex needs groups like 「\+\(foo\)」 • bracketed paste mode should disable autoindent, wordwrap, updating the status line, …(?) ⇐ implemented using a “paste” labeled ftype that is switched to using the UI (command) • switch from autoconf to mirtoconf2 • ANSI syntax highlighting; auto-turn it on in shell windows (‽) • proper redraw for lines that had combining characters in them • add a soft line break flag: display as line-wrapped, do not save any newlines introduced by that • put all configuration files into /usr/share; use XDG dirs for overriding (HOME, maybe site?) • rc.c: struct glopts.set (int*) violates the strict aliasing rule as it’s treated as (unsigned char *) for type 2 (global option string), consider a union instead (check local types!) • … __________________________________________________________________ $MirOS: contrib/code/jupp/TODO,v 1.30 2017/01/11 22:04:31 tg Exp $