Commit Graph

1337 Commits

Author SHA1 Message Date
Nicholas Marriott
c64cf68244 Cut memory consumption by only allocating lines when there is actually data on them, and only as much as the right-most data. Everything else is filled in at runtime. 2007-11-21 22:20:44 +00:00
Nicholas Marriott
1e5cb8d2e4 Free entire screen when destroyed. 2007-11-21 21:28:58 +00:00
Nicholas Marriott
f8686f126d Document scroll-mode. 2007-11-21 20:26:51 +00:00
Nicholas Marriott
edca8aec0f Don't switch to scroll mode unless no other mode. 2007-11-21 20:06:48 +00:00
Nicholas Marriott
ce90f1bddb The CLIENT_HOLD hack can go bye-bye. 2007-11-21 20:04:37 +00:00
Nicholas Marriott
d0984b890b Sort out cursors with a new flag - BACKGROUND - for window modes. Free text on more exit. 2007-11-21 19:53:57 +00:00
Nicholas Marriott
acb3661b66 Scrollable win for command output. 2007-11-21 19:44:05 +00:00
Nicholas Marriott
24c39950ff Redo screen.c functions to make them readable and more flexible. Make scroll mode only redraw waht it needs. 2007-11-21 18:24:49 +00:00
Nicholas Marriott
df158734c2 Fast up/down line scroll. 2007-11-21 15:55:02 +00:00
Nicholas Marriott
d5edaf988e Horizontal history/scrolling. 2007-11-21 15:35:53 +00:00
Nicholas Marriott
e4f01009a3 Wipe curw so last doesn't end up as deleted. 2007-11-21 15:05:53 +00:00
Nicholas Marriott
ad1541913f Fix use-after-free. 2007-11-21 14:57:08 +00:00
Nicholas Marriott
ef18b7d637 Move from the right place. 2007-11-21 14:55:31 +00:00
Nicholas Marriott
2cdc75fa4e Fix clear. 2007-11-21 14:50:41 +00:00
Nicholas Marriott
4f8ed29022 Only redraw if offset changed. 2007-11-21 14:39:46 +00:00
Nicholas Marriott
08a0c5e661 Use screen_* versions to avoid range checks (s->dy may be wrong), fix miscalculated free. 2007-11-21 14:30:15 +00:00
Nicholas Marriott
c424ef37d0 Scroll data should be per-window not global. 2007-11-21 14:01:53 +00:00
Nicholas Marriott
9a6e47cfa8 Initial history support. 2007-11-21 13:11:41 +00:00
Nicholas Marriott
9b9ceac657 Damnit, wrong variable name.. 2007-11-20 21:45:53 +00:00
Nicholas Marriott
f53b917367 Oops, mustn't forget this. 2007-11-20 21:45:26 +00:00
Nicholas Marriott
ceab127fac Mass screen.c rename/tidy. Add a actual size (ysize) as distinct from display size (now dx,dy). Move functions which work on the displayed area into screen-display.c and tidy. Use macros consistently when accessing screen data (may want to move everything about again later!). This the first step on the road to scrollback. 2007-11-20 21:42:29 +00:00
Nicholas Marriott
0be6a3041f Style: ry_* -> r* 2007-11-20 18:46:32 +00:00
Nicholas Marriott
c0572ea992 Fix a format string bug and sprinkle some printflikes. 2007-11-20 18:11:37 +00:00
Nicholas Marriott
b04bffc9c9 +index.html.in 2007-11-20 17:01:38 +00:00
Nicholas Marriott
da21ac965d Work around Linux realpath breakage. 2007-11-20 12:59:27 +00:00
Nicholas Marriott
14627f5421 Note about default colours. 2007-11-20 12:09:13 +00:00
Nicholas Marriott
0d9ebaafb1 dist target. 2007-11-20 12:00:16 +00:00
Nicholas Marriott
1717764134 Oops, no $SESSION now. 2007-11-17 08:29:33 +00:00
Nicholas Marriott
60501ec040 Sync. 2007-11-17 08:28:48 +00:00
Nicholas Marriott
958cd9cb94 -k on link-window to kill dest window if it exists. 2007-11-17 08:21:54 +00:00
Nicholas Marriott
54d01c1a5f Two-column display for on-line print. 2007-11-16 22:06:45 +00:00
Nicholas Marriott
6859306235 Ooops use ->client here, not cmdclient. 2007-11-16 21:43:43 +00:00
Nicholas Marriott
85e4e820b6 Sync. 2007-11-16 21:38:00 +00:00
Nicholas Marriott
6e04524596 switch-client command. 2007-11-16 21:31:03 +00:00
Nicholas Marriott
b359f9b594 Add -c option to specify client, and move detach/refresh to client rather than session. 2007-11-16 21:12:31 +00:00
Nicholas Marriott
86b73cec72 Check for scrolling when _cursor_ is inside region, not number of lines. Duh. 2007-11-16 16:28:14 +00:00
Nicholas Marriott
ce5f02fc9e Report available commands on ambiguous commands. Tidy TODO a bit. 2007-11-16 13:23:59 +00:00
Nicholas Marriott
eb72bede47 Sync. 2007-11-14 08:44:25 +00:00
Nicholas Marriott
7e3cc5fd12 Use ctx->client/ctx->session inline instead of temporary variables which were
being reused and causing confusion and problems.
2007-11-13 09:53:47 +00:00
Nicholas Marriott
89d298d4c7 Tweak. 2007-11-12 20:59:33 +00:00
Nicholas Marriott
4a419bbc9a This stuff should be Ic not Ar. 2007-11-12 20:46:46 +00:00
Nicholas Marriott
d72f2bef62 Mention TERM=screen requirement. 2007-11-12 20:42:53 +00:00
Nicholas Marriott
dc8fb1e1dc Force default colours if terminal supports it. 2007-11-12 20:29:43 +00:00
Nicholas Marriott
a3c89d7671 clietns -> clients. 2007-11-12 19:15:29 +00:00
Nicholas Marriott
e95ed600c9 Nuke stray ). 2007-11-12 16:40:56 +00:00
Nicholas Marriott
765a224b30 Double-free on session destroy. 2007-11-12 16:39:30 +00:00
Nicholas Marriott
577bd45719 Tweak. 2007-11-12 16:13:49 +00:00
Nicholas Marriott
23e9acdcb2 Erp, ^B not ^A. 2007-11-12 16:11:57 +00:00
Nicholas Marriott
e79a41cff9 Finish off man page. 2007-11-12 16:09:08 +00:00
Nicholas Marriott
4309d65475 realpath the socket path; also sprinkle some const. 2007-11-12 15:12:08 +00:00