2007-08-27 12:24:03 +02:00
|
|
|
- mouse handling and some other bits elinks needs
|
2007-09-27 11:15:58 +02:00
|
|
|
- line mode/char-at-a-time mode a la telnet?
|
2007-11-12 21:59:33 +01:00
|
|
|
- handle ioctl/termios stuff on window sockets
|
2007-09-21 21:24:37 +02:00
|
|
|
- figure out once and for all what is going on with backspace and del
|
2007-11-12 21:59:33 +01:00
|
|
|
backspace should be translated per the termios setting.
|
|
|
|
del passed through?
|
2007-09-29 21:58:26 +02:00
|
|
|
- window creation/idle time
|
2007-10-01 16:18:42 +02:00
|
|
|
- profile/optimise, particularly (i suspect) input.c
|
2007-10-03 23:31:07 +02:00
|
|
|
- could use bsearch all over the place or get rid of smaller tables (clientmsg)
|
2007-10-03 14:34:16 +02:00
|
|
|
- better errors when creating new windows/sessions (how?)
|
2007-10-04 16:18:44 +02:00
|
|
|
- Implicitly add exec to the commands for new windows (switch to disable it)
|
2007-10-12 11:48:53 +02:00
|
|
|
- it would be nice to have multichar commands so you could have C-b K K for
|
|
|
|
kill-window to limit accidental presses
|
2007-11-16 17:28:14 +01:00
|
|
|
- status-fg/status-bg should be able to set attributes: bold, etc
|
2007-10-24 17:01:25 +02:00
|
|
|
- save/restore (DECSC/DECRC) are ugly. maybe a struct screen_attr and memcpy
|
2007-11-12 21:29:43 +01:00
|
|
|
- force-default option: assume terminal supports default colours even if AX
|
2008-09-08 19:40:51 +02:00
|
|
|
is missing (like, eg, xterm-color in an aterm). DITTO for 256 colours
|
2007-11-16 22:12:31 +01:00
|
|
|
- refer to windows by name etc (duplicates? fnmatch?)
|
2007-11-16 14:23:59 +01:00
|
|
|
- commands:
|
|
|
|
command to run something without a window at all?
|
2007-11-21 22:28:58 +01:00
|
|
|
command to purge window history
|
2007-11-16 22:12:31 +01:00
|
|
|
extend list-clients to list clients attached to a session (-a for all?)
|
|
|
|
bring back detach-session to detach all clients on a session?
|
2008-06-24 00:42:04 +02:00
|
|
|
clone-session command to link all windows to a new session
|
2008-06-01 22:20:25 +02:00
|
|
|
- function groups, bind-key ^W { select-window 0; send-key ^W } etc ***
|
2007-11-16 22:12:31 +01:00
|
|
|
- allow fnmatch for -c, so that you can, eg, detach all clients
|
2007-11-21 15:30:15 +01:00
|
|
|
- bind non prefix keys
|
2007-11-23 14:11:43 +01:00
|
|
|
- garbage collect window history (100 lines at a time?) if it hasn't been used
|
|
|
|
in $x time (need window creation/use times)
|
|
|
|
- lift SHRT_MAX limits for history
|
2007-11-23 23:51:13 +01:00
|
|
|
- audit copy/scroll and other modes for problems with very small windows
|
2007-11-27 20:23:34 +01:00
|
|
|
- screen_draw_* moved out/renamed (accept TTY_*?)
|
2007-11-30 12:08:35 +01:00
|
|
|
- split clients into three RB trees by fd: attached/unattached/dead?
|
|
|
|
or tailqs? what would be fastest per-char?
|
2007-12-06 22:57:57 +01:00
|
|
|
- window splitting?
|
2008-03-31 22:12:04 +02:00
|
|
|
- c/p is still borken in some ways
|
2008-06-01 22:36:01 +02:00
|
|
|
- different screen model? layers perhaps? hmm
|
2008-06-10 20:43:55 +02:00
|
|
|
- better mode features: search, back word, forward word, etc
|
2008-06-16 08:10:02 +02:00
|
|
|
- flags to centre screen in window
|
2008-07-24 01:44:50 +02:00
|
|
|
- better terminal emulation (identify, insert mode, some other bits)
|
2008-06-02 20:08:17 +02:00
|
|
|
|
2008-06-30 07:34:06 +02:00
|
|
|
-- For 0.5 --------------------------------------------------------------------
|
|
|
|
|
2008-09-10 20:59:29 +02:00
|
|
|
XXX
|
|
|
|
screen contains grid
|
|
|
|
|
|
|
|
screen_write <-- write to TTY and to screen using close-to-ANSI functions
|
|
|
|
screen_redraw <-- write areas of screen to TTY
|
|
|
|
grid_view <-- write to viewable area of grid
|
|
|
|
grid <-- manipulate grid and history
|
|
|
|
|
|
|
|
XXX
|
|
|
|
grid_view has ox,oy
|
|
|
|
XXX
|
|
|
|
|
2008-09-10 00:16:37 +02:00
|
|
|
- FINISH UTF8: fix copy and paste
|
|
|
|
- SPLIT u_short attr into attr,flags?
|
|
|
|
- maybe rethink backend data structure?
|
|
|
|
- utf8 can be 1-4 bytes
|
|
|
|
- most common is 1 bytes
|
|
|
|
- there can be double-width characters which take n bytes but 2 columns on screen
|
|
|
|
- they are not only drawn as two characters, they also require two backspaces to remove
|
|
|
|
- three operations:
|
|
|
|
- simultaneously update screen and ttys
|
|
|
|
- redraw screen or section of screen to ttys
|
|
|
|
- write to ttys without updating screen
|
|
|
|
|
|
|
|
---
|
2008-09-10 20:59:29 +02:00
|
|
|
NEED to be able to:
|
|
|
|
resize screen
|
|
|
|
apply ops to both screen and tty simultaneously
|
|
|
|
both when parsing input and when eg scrolling history
|
|
|
|
draw on the top of the screen without modifying it
|
|
|
|
display arbitrary parts of the history
|
|
|
|
redraw arbitrary parts of the visible screen
|
|
|
|
---
|
|
|
|
NEVER need to draw into the history
|
|
|
|
|
2008-09-10 00:16:37 +02:00
|
|
|
split off grid manip:
|
|
|
|
16-bit characters
|
|
|
|
8-bit flags
|
|
|
|
8-bit attributes
|
|
|
|
8-bit fg colour
|
|
|
|
8-bit bg colour
|
|
|
|
|
|
|
|
struct grid_data {
|
2008-09-10 20:59:29 +02:00
|
|
|
struct grid_cell **data;
|
|
|
|
int *sizes;
|
|
|
|
|
|
|
|
int sx;
|
|
|
|
int sy;
|
|
|
|
|
|
|
|
int hsize;
|
|
|
|
int hlimit;
|
2008-09-10 00:16:37 +02:00
|
|
|
};
|
|
|
|
struct grid_cell {
|
|
|
|
u_short data;
|
|
|
|
u_char attr;
|
|
|
|
u_char flags;
|
|
|
|
u_char fg;
|
|
|
|
u_char bg;
|
2008-09-10 20:59:29 +02:00
|
|
|
};
|
|
|
|
const struct grid_default_cell = { 0x20, 0, 0, 8, 8 };
|
|
|
|
|
|
|
|
; grid logically split from
|
|
|
|
; -hlimit to 0 and 0 to sy
|
|
|
|
|
|
|
|
; ALWAYS fill with default
|
|
|
|
|
|
|
|
const struct grid_cell *grid_get(int x, int y);
|
|
|
|
void grid_set(int x, int y, const struct grid_cell *cell);
|
|
|
|
|
|
|
|
void grid_resize()
|
|
|
|
void grid_shift() /* shift lines into history */
|
|
|
|
|
|
|
|
struct grid_view {
|
|
|
|
int ox;
|
|
|
|
int oy;
|
|
|
|
|
|
|
|
int sx;
|
|
|
|
int sy;
|
|
|
|
|
|
|
|
struct grid_data *gdata;
|
|
|
|
struct grid_view *parent;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct grid_cell *grid_view_get_cell(int x, int y)
|
|
|
|
void grid_view_set_cell(int x, int y, const struct grid_cell *cell);
|
|
|
|
|
|
|
|
int grid_view_absolute_x(int x);
|
|
|
|
int grid_view_absolute_y(int y);
|
|
|
|
|
|
|
|
int grid_view_relative_x(int x);
|
|
|
|
int grid_view_relative_y(int y);
|
|
|
|
|
|
|
|
void grid_view_delete_lines(int y, int ny)
|
|
|
|
void grid_view_insert_lines(int y, int ny)
|
|
|
|
void grid_view_clear_lines(int y, int ny)
|
|
|
|
void grid_view_fill_lines(int y, int ny, const struct grid_cell *cell)
|
|
|
|
|
|
|
|
void grid_view_delete_cells(int x, int y, int nx)
|
|
|
|
void grid_view_insert_cells(int x, int y, int nx)
|
|
|
|
void grid_view_clear_cells(int x, int y, int nx)
|
|
|
|
void grid_view_fill_cells(int x, int nx, const struct grid_cell *cell)
|
|
|
|
|
|
|
|
void grid_view_clear_area(int x, int y, int nx, int ny)
|
|
|
|
void grid_view_fill_area(int x, int y, int nx, int ny, const struct grid_cell *cell)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
screen has two (both grid_view):
|
|
|
|
base and overlay
|
|
|
|
|
|
|
|
---
|
|
|
|
screen_write writes into overlay if it exists and then base, also optionally to tty
|
|
|
|
screen_draw draws overlay + base to display
|
|
|
|
---
|
|
|
|
|
2008-09-10 00:16:37 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
Would it be better to just expand char to 16-bits and use it as an index only
|
|
|
|
for >2-byte characters? or - better - don't support entire UTF range? only the BMP?
|
|
|
|
this would get rid of UTF table and limits, but still leave double-width character annoyances
|
|
|
|
also would double memory usage
|
|
|
|
----
|
|
|
|
|
2008-09-08 19:40:51 +02:00
|
|
|
21:09 < merdely> NicM: if I run 'tmux attach -t main' and there is no tmux session named main, start a new one.
|
2008-06-27 19:10:01 +02:00
|
|
|
- commands: save-buffer -b number filename
|
2008-06-25 21:12:30 +02:00
|
|
|
load-buffer -b number filename
|
2008-06-30 20:27:14 +02:00
|
|
|
copy-buffer -s src-session -t dst-session
|
|
|
|
-a src-index -b dst-index
|
|
|
|
(copy from other session)
|
2008-06-16 22:26:48 +02:00
|
|
|
- clear EOL etc CANNOT rely on term using the current colour/attr and probably
|
|
|
|
should not emulate it doing so
|
|
|
|
- activity/bell should be per-window not per-link? what if it is cur win in
|
|
|
|
session not being watched?
|
2008-06-19 20:27:55 +02:00
|
|
|
- tidy up window modes
|
2008-06-19 23:45:46 +02:00
|
|
|
- support \033_string\033\\ for window title too
|
2008-06-20 00:04:02 +02:00
|
|
|
- list-keys should be sorted
|
2008-06-21 12:19:36 +02:00
|
|
|
- problems with force-width when wrapping line in emacs?
|
2008-06-24 00:42:04 +02:00
|
|
|
- command history for command-prompt. better tab completion (use options too)
|
|
|
|
- window options should be done similarly to standard options
|
2008-06-25 09:30:08 +02:00
|
|
|
- next prev word etc in command prompt
|
2008-07-25 00:21:28 +02:00
|
|
|
- many more info() displays for various things
|
2008-07-02 23:22:57 +02:00
|
|
|
- document mode-keys
|
2008-07-02 23:25:58 +02:00
|
|
|
- vi half page scroll
|
2008-09-08 19:40:51 +02:00
|
|
|
- bugs with 256 colour test perl script...
|