Commit Graph

142 Commits

Author SHA1 Message Date
Jari Vetoniemi
014c20099d Refactor code to snake_style, turn renderers into plugins, and start
wayland (cairo) renderer.
2014-10-22 22:46:51 +03:00
Jari Vetoniemi
33aedfe237 Skip whitespace when tokenizing too. 2014-08-21 02:10:56 +03:00
Jari Vetoniemi
6e99ec2b61 No developer activity, so simplifying to just master branch. 2014-08-21 01:48:55 +03:00
Jari Vetoniemi
f1bb87a808 Merge branch 'develop' 2014-08-21 01:47:30 +03:00
Jari Vetoniemi
536eee6d0b Skip leading whitespace. 2014-08-21 01:45:52 +03:00
Jari Vetoniemi
4ce638eb3a Length check is fragile and breaking behaviour. 2014-05-14 20:50:32 +03:00
Jari Vetoniemi
953c61f4ad Support older ncurses. 2014-04-15 20:34:21 +03:00
Jari Vetoniemi
8e415197d2 This is not used 2014-04-15 20:31:10 +03:00
Jari Vetoniemi
88590ddcfe Don't use the enumerator variable. 2014-04-15 20:14:42 +03:00
Jari Vetoniemi
f77ae857b1 It's better to guard whole function. 2014-04-15 20:07:47 +03:00
Jari Vetoniemi
cf27013c1d Print the missing function and from what library in case of exception. 2014-04-15 20:06:51 +03:00
Jari Vetoniemi
5556779dd2 Consistency. 2014-04-14 21:18:50 +03:00
Jari Vetoniemi
d36f4039d9 Identation. 2014-04-14 20:46:15 +03:00
Jari Vetoniemi
5165a42ecb Support disco parameter. 2014-04-14 20:43:01 +03:00
Jari Vetoniemi
77f2c264e7 Make version function exit itself. 2014-04-14 20:42:10 +03:00
Jari Vetoniemi
5dda1e46e9 Print usage on wrong options. 2014-04-14 19:39:41 +03:00
Jari Vetoniemi
ce46a04999 Add break for no reason. 2014-04-14 19:39:29 +03:00
Jari Vetoniemi
14a1644085 Useless whitespace. 2014-04-14 19:39:20 +03:00
Jari Vetoniemi
7533cebfe5 Tell curses to use terminal default colors 2014-04-14 19:33:50 +03:00
Jari Vetoniemi
617c4ab827 Add selection wrapping (-w). 2014-04-14 19:25:16 +03:00
Jari Vetoniemi
4f72d188ad Fix documentation. 2014-04-14 19:25:04 +03:00
Jari Vetoniemi
bcda540401 Hide title if more than NCOLS 2014-04-14 19:14:30 +03:00
Jari Vetoniemi
9df8716cb8 Handle window resize. 2014-04-14 19:11:26 +03:00
Jari Vetoniemi
5b873de2de Better input scroll logic. 2014-04-14 19:00:15 +03:00
Jari Vetoniemi
066c5c2e61 Make sure text fits tightly terminal + simplified logic 2014-04-14 19:00:03 +03:00
Jari Vetoniemi
f410a5e391 Make sure the text is null terminated. 2014-04-14 18:10:01 +03:00
Jari Vetoniemi
0f34b70c90 Move this check before allocation. 2014-04-14 18:08:13 +03:00
Jari Vetoniemi
850a8335d5 Flush input buffer after showing menu first time. 2014-04-13 04:16:23 +03:00
Jari Vetoniemi
66a6f08c8a vsnprintf is not on same headers on darwin. 2014-04-13 03:23:11 +03:00
Jari Vetoniemi
239259aebf Unfortunately we can't test curses on cronjob 2014-04-13 03:15:18 +03:00
Jari Vetoniemi
c2bed7689d Enable cursor (hidden when launched by vim) 2014-04-13 03:00:34 +03:00
Jari Vetoniemi
9c0b25f6a9 Enable noecho and raw mode. 2014-04-13 02:47:54 +03:00
Jari Vetoniemi
60c1ab88cc Store old actions to seperate actions. 2014-04-13 01:39:31 +03:00
Jari Vetoniemi
83d67f80c0 Handle -l option by ignoring it 2014-04-13 01:26:53 +03:00
Jari Vetoniemi
fc6539c101 Buffer as format is dangerous, this functions seems to be VA one. 2014-04-13 01:22:49 +03:00
Jari Vetoniemi
5251ef6ac0 Fix bad syntax, and add defgroup for library. 2014-04-13 00:12:31 +03:00
Martin Langasek
8e1ff89f9c Fix typo in Mainpage.dox 2014-04-12 23:05:12 +02:00
Jari Vetoniemi
7da3ebe423 Scrollable curses input \o/ 2014-04-12 23:58:01 +03:00
Jari Vetoniemi
d22612899a Curses really does not like tabs. 2014-04-12 23:21:43 +03:00
Jari Vetoniemi
f722f247fc Xterm does not feed S+pgup/pgdown but does so for Ctrl combination 2014-04-12 23:20:53 +03:00
Jari Vetoniemi
994d6074bc Stop assuming filter is static array anymore. 2014-04-12 23:09:35 +03:00
Jari Vetoniemi
3f0f507e4f Improve CMakeLists and make stuff installable. 2014-04-12 22:42:37 +03:00
Jari Vetoniemi
27b71db67a Add TODO about options. 2014-04-12 22:15:46 +03:00
Jari Vetoniemi
06972a3579 CLI interface, aka option parsing. 2014-04-12 22:12:44 +03:00
Jari Vetoniemi
01ff5f48ed The list will be copied now. 2014-04-12 20:56:00 +03:00
Jari Vetoniemi
ab54f2bc07 Here be dragons comments. 2014-04-12 20:55:45 +03:00
Jari Vetoniemi
f03e03cdd9 Make filter to pointer. 2014-04-12 20:52:29 +03:00
Jari Vetoniemi
5599e1aa8e Store tmp to tokv in for loop, so we can free it if something fails. 2014-04-12 20:52:01 +03:00
Jari Vetoniemi
6692f73c5c Meh, no (null) it's empty if it's empty. 2014-04-12 20:51:32 +03:00
Jari Vetoniemi
bfc53136c8 Add print attribute and fix warning it catched. 2014-04-12 20:21:40 +03:00