70322ae3 |
1 | TODO list for agedu |
2 | =================== |
3 | |
cfe942fb |
4 | Future possibilities: |
70322ae3 |
5 | |
9c6e61f2 |
6 | - integrate more usefully with the output of configure. It's |
7 | generating oodles of automatic boilerplate in config.h and I'm |
8 | sure three quarters of it _ought_ to be usable to add |
9 | portability, if only I had the gumption to actually pay attention |
10 | to all those HAVE_FOO macros it's defined for me. |
11 | |
1e8d78b9 |
12 | - IPv6 support in the HTTP server |
cfe942fb |
13 | * of course, Linux magic auth can still work in this context; we |
14 | merely have to be prepared to open one of /proc/net/tcp or |
15 | /proc/net/tcp6 as appropriate. |
1e8d78b9 |
16 | |
70322ae3 |
17 | - run-time configuration in the HTTP server |
18 | * I think this probably works by having a configuration form, or |
19 | a link pointing to one, somewhere on the report page. If you |
20 | want to reconfigure anything, you fill in and submit the form; |
21 | the web server receives HTTP GET with parameters and a |
22 | referer, adjusts its internal configuration, and returns an |
23 | HTTP redirect back to the referring page - which it then |
24 | re-renders in accordance with the change. |
25 | * All the same options should have their starting states |
26 | configurable on the command line too. |
27 | |
70322ae3 |
28 | - curses-ish equivalent of the web output |
29 | + try using xterm 256-colour mode. Can (n)curses handle that? If |
30 | not, try doing it manually. |
f2e52893 |
31 | + I think my current best idea is to bypass ncurses and go |
32 | straight to terminfo: generate lines of attribute-interleaved |
33 | text and display them, so we only really need the sequences |
34 | "go here and display stuff", "scroll up", "scroll down". |
f2e52893 |
35 | + Infrastructure work before doing any of this would be to split |
36 | html.c into two: one part to prepare an abstract data |
37 | structure describing an HTML-like report (in particular, all |
38 | the index lookups, percentage calculation, vector arithmetic |
39 | and line sorting), and another part to generate the literal |
40 | HTML. Then the former can be reused to produce very similar |
41 | reports in coloured plain text. |
70322ae3 |
42 | |
f2e52893 |
43 | - http://msdn.microsoft.com/en-us/library/ms724290.aspx suggest |
44 | modern Windowses support atime-equivalents, so a Windows port is |
373a02e5 |
45 | possible in principle. |
46 | + For a full Windows port, would need to modify the current |
47 | structure a lot, to abstract away (at least) memory-mapping of |
48 | files, details of disk scan procedure, networking for httpd. |
49 | Unclear what the right UI would be on Windows, too; |
50 | command-line exactly as now might be considered just a |
51 | _little_ unfriendly. Or perhaps not. |
52 | + Alternatively, a much easier approach would be to write a |
53 | Windows version of just the --scan-dump mode, which does a |
54 | filesystem scan via the Windows API and generates a valid |
55 | agedu dump file on standard output. Then one would simply feed |
56 | that over the network connection of one's choice to the rest |
57 | of agedu running on Unix as usual. |