From: Francois Fleuret Date: Wed, 20 May 2009 05:49:35 +0000 (+0200) Subject: Initial commit. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=bec26d870448d683faade4d90b6d5eec4e25ae8d;p=selector.git Initial commit. --- diff --git a/TODO.txt b/TODO.txt new file mode 100644 index 0000000..3e525b0 --- /dev/null +++ b/TODO.txt @@ -0,0 +1,47 @@ + + BUGS + + * Display of the modeline when the pattern is too long + + * Control characters are converted to printable ones in the returned + string. + + WISHES + + * Should allow to provide for every line one string to return and one + string to display, which could be different. + + * Limitate the bandwidth use by using the scrolling capabilities of + curses + + int scrl(int n); + + For positive n, the scrl and wscrl routines scroll the window up n + lines (line i+n becomes i); otherwise scroll the window down n + lines. This involves moving the lines in the window character + image structure. The current cursor position is not changed. + + For these functions to work, scrolling must be enabled via + scrollok. + + int scrollok(WINDOW *win, bool bf); + + A default window called stdscr, which is the size of the terminal + screen, is supplied. + + * Handle widechars for decent internationalization. + + widechar: read using get_wch etc, keep a wchar_t* instead of a + char*, and use things like addwstr to print + + wcsstr instead of strstr + + <\amethyst> you'll have to convert it to a multibyte character + string before writing it + + <\amethyst> with wcstombs + + <\amethyst> wcs are arrays of wchar_t, which are usually 16- or + 32-bit [22:40] + + <\amethyst> mbs is a char string in a multibyte encoding like UTF-8