sob, branch HEAD simple output bar 377313c0f8f0b901fe2f34c9f9d5891c2b98cd2a 2019-11-22T16:00:53Z 2019-11-22T16:00:53Z code-style and change EXIT_* back to the standard code Hiltjo Posthuma hiltjo@codemadness.org commit 377313c0f8f0b901fe2f34c9f9d5891c2b98cd2a parent 8a367ec398a999499a34d773f67cc6a6834b8a56 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 22 Nov 2019 17:00:53 +0100 code-style and change EXIT_* back to the standard code 8a367ec398a999499a34d773f67cc6a6834b8a56 2019-11-22T15:58:59Z 2019-11-22T15:58:59Z update LICENSE (MIT->ISC) and README tweaks Hiltjo Posthuma hiltjo@codemadness.org commit 8a367ec398a999499a34d773f67cc6a6834b8a56 parent b3741d9b801de57de4bff7e91bf2f88064b8b411 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 22 Nov 2019 16:58:59 +0100 update LICENSE (MIT->ISC) and README tweaks b3741d9b801de57de4bff7e91bf2f88064b8b411 2019-11-22T15:57:58Z 2019-11-22T15:57:58Z improve Makefile Hiltjo Posthuma hiltjo@codemadness.org commit b3741d9b801de57de4bff7e91bf2f88064b8b411 parent bfe40b1849339039727903c1037db44c59580e6e Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 22 Nov 2019 16:57:58 +0100 improve Makefile - add make dist rule. - add README to install rule. - remove config.mk - cleanup bfe40b1849339039727903c1037db44c59580e6e 2015-09-04T09:34:46Z 2015-09-04T09:34:46Z remove unneeded (wrong) line, timeval is already cleared Hiltjo Posthuma hiltjo@codemadness.org commit bfe40b1849339039727903c1037db44c59580e6e parent 011c246b6b581fb3a64c69be9ab6b31ba012a7bd Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 4 Sep 2015 11:34:46 +0200 remove unneeded (wrong) line, timeval is already cleared 011c246b6b581fb3a64c69be9ab6b31ba012a7bd 2014-11-09T14:59:58Z 2014-11-09T15:00:14Z scripts/history: show in reverse order (newest first). Hiltjo Posthuma hiltjo@codemadness.org commit 011c246b6b581fb3a64c69be9ab6b31ba012a7bd parent e0cb947ff6f99ab3423e45bc681fd2ab67d4379b Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 9 Nov 2014 14:59:58 +0000 scripts/history: show in reverse order (newest first). e0cb947ff6f99ab3423e45bc681fd2ab67d4379b 2014-11-09T14:23:48Z 2014-11-09T14:40:47Z scripts: update complete_nick Hiltjo Posthuma hiltjo@codemadness.org commit e0cb947ff6f99ab3423e45bc681fd2ab67d4379b parent 215516a8bfac89528bcdee472b89d18546504515 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 9 Nov 2014 14:23:48 +0000 scripts: update complete_nick 215516a8bfac89528bcdee472b89d18546504515 2014-10-31T13:37:45Z 2014-10-31T13:37:45Z complete_nick: be compatible with default ii out format Hiltjo Posthuma hiltjo@codemadness.org commit 215516a8bfac89528bcdee472b89d18546504515 parent 86488a280037b6fe03a9311ca34ad9ccff3a1814 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 31 Oct 2014 13:37:45 +0000 complete_nick: be compatible with default ii out format 86488a280037b6fe03a9311ca34ad9ccff3a1814 2014-10-31T13:36:43Z 2014-10-31T13:36:43Z config: add emacs word-movement keybind (alt+f, alt+b) Hiltjo Posthuma hiltjo@codemadness.org commit 86488a280037b6fe03a9311ca34ad9ccff3a1814 parent 74da8c1cfc20e7ea947d7d6fb1c97258a3e65b21 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 31 Oct 2014 13:36:43 +0000 config: add emacs word-movement keybind (alt+f, alt+b) 74da8c1cfc20e7ea947d7d6fb1c97258a3e65b21 2014-10-31T13:36:03Z 2014-10-31T13:36:03Z line_cursor_move: more portable, dont use c99 size_t format string Hiltjo Posthuma hiltjo@codemadness.org commit 74da8c1cfc20e7ea947d7d6fb1c97258a3e65b21 parent 527078b1efa4cc09042c4521e07ff7dc8c5d6c8e Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 31 Oct 2014 13:36:03 +0000 line_cursor_move: more portable, dont use c99 size_t format string 527078b1efa4cc09042c4521e07ff7dc8c5d6c8e 2014-10-31T13:35:26Z 2014-10-31T13:35:26Z draw slightly more efficient, hide cursor first Hiltjo Posthuma hiltjo@codemadness.org commit 527078b1efa4cc09042c4521e07ff7dc8c5d6c8e parent 1f4f2ea75cfe5cbbb84daa016d14dca907584e62 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 31 Oct 2014 13:35:26 +0000 draw slightly more efficient, hide cursor first 1f4f2ea75cfe5cbbb84daa016d14dca907584e62 2014-10-26T19:10:38Z 2014-10-26T19:10:38Z update TODO Hiltjo Posthuma hiltjo@codemadness.org commit 1f4f2ea75cfe5cbbb84daa016d14dca907584e62 parent 6d27363d00b6e9901126df2f4a70b8ba93bc1602 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 26 Oct 2014 19:10:38 +0000 update TODO 6d27363d00b6e9901126df2f4a70b8ba93bc1602 2014-10-26T19:05:06Z 2014-10-26T19:05:06Z various improvements and cleanup: Hiltjo Posthuma hiltjo@codemadness.org commit 6d27363d00b6e9901126df2f4a70b8ba93bc1602 parent 7c32499ad075426acaa9f44813059b630aa52a12 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 26 Oct 2014 19:05:06 +0000 various improvements and cleanup: - rework read and write from pipe. - unify pipe_read and normal input / output handling. - allow to specify to not read from the pipe, this fixes an issue with xclip / xsel which forks to the background and blocks reads forever. - cleanup setup() code a bit. 7c32499ad075426acaa9f44813059b630aa52a12 2014-10-26T14:35:59Z 2014-10-26T14:35:59Z improve readfd and writefd (blocking) Hiltjo Posthuma hiltjo@codemadness.org commit 7c32499ad075426acaa9f44813059b630aa52a12 parent fe1be9488f907f205711eda02c47a5b9aab08fd2 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 26 Oct 2014 14:35:59 +0000 improve readfd and writefd (blocking) fe1be9488f907f205711eda02c47a5b9aab08fd2 2014-10-26T12:31:01Z 2014-10-26T12:31:01Z config: ctrl-c is special-case, dont define it in config Hiltjo Posthuma hiltjo@codemadness.org commit fe1be9488f907f205711eda02c47a5b9aab08fd2 parent fb069221b7b7433cbccc6144388d7f5c3179a44a Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 26 Oct 2014 12:31:01 +0000 config: ctrl-c is special-case, dont define it in config fb069221b7b7433cbccc6144388d7f5c3179a44a 2014-10-26T12:30:44Z 2014-10-26T12:30:44Z README: add more usage info Hiltjo Posthuma hiltjo@codemadness.org commit fb069221b7b7433cbccc6144388d7f5c3179a44a parent 088944cffaac6c5ae538ad8f611a48d54f90783c Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 26 Oct 2014 12:30:44 +0000 README: add more usage info 088944cffaac6c5ae538ad8f611a48d54f90783c 2014-10-26T12:30:01Z 2014-10-26T12:30:01Z restore term attributes on SIGINT (Ctrl-c) properly Hiltjo Posthuma hiltjo@codemadness.org commit 088944cffaac6c5ae538ad8f611a48d54f90783c parent 6f02addad1b6c1f13090d951703a00edba6662c3 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 26 Oct 2014 12:30:01 +0000 restore term attributes on SIGINT (Ctrl-c) properly 6f02addad1b6c1f13090d951703a00edba6662c3 2014-10-26T12:01:22Z 2014-10-26T12:01:22Z default to character width 1 Hiltjo Posthuma hiltjo@codemadness.org commit 6f02addad1b6c1f13090d951703a00edba6662c3 parent 74676ddd350816d7c6bdd5ef274a8c66ae49d105 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 26 Oct 2014 12:01:22 +0000 default to character width 1 if wcwidth() == -1, default to character width 1 (usual case). with glibc: printf '\xd4\xa4' | sob 74676ddd350816d7c6bdd5ef274a8c66ae49d105 2014-10-25T15:28:47Z 2014-10-25T15:28:47Z POSIX.1-2001 defines the value of EWOULDBLOCK and EAGAIN can be different Hiltjo Posthuma hiltjo@codemadness.org commit 74676ddd350816d7c6bdd5ef274a8c66ae49d105 parent fbf256e42d9229923c4e8e15974966efd6bc6384 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 25 Oct 2014 15:28:47 +0000 POSIX.1-2001 defines the value of EWOULDBLOCK and EAGAIN can be different fbf256e42d9229923c4e8e15974966efd6bc6384 2014-10-25T11:15:38Z 2014-10-25T11:15:38Z update TODO Hiltjo Posthuma hiltjo@codemadness.org commit fbf256e42d9229923c4e8e15974966efd6bc6384 parent 7a89c043b1e2c774e6522b3b1b3a4114354ee0fd Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 25 Oct 2014 11:15:38 +0000 update TODO 7a89c043b1e2c774e6522b3b1b3a4114354ee0fd 2014-10-25T11:12:50Z 2014-10-25T11:12:50Z improve tcgetattr and setup() Hiltjo Posthuma hiltjo@codemadness.org commit 7a89c043b1e2c774e6522b3b1b3a4114354ee0fd parent 7eae1acf0a7d4644114e30f6f3bfc2143954518c Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 25 Oct 2014 11:12:50 +0000 improve tcgetattr and setup() - don't restore attributes if tcgetattr failed. - tcgetattr indicates if it's isatty(). 7eae1acf0a7d4644114e30f6f3bfc2143954518c 2014-10-25T11:12:16Z 2014-10-25T11:12:16Z default to cols 79, rows 24 Hiltjo Posthuma hiltjo@codemadness.org commit 7eae1acf0a7d4644114e30f6f3bfc2143954518c parent d93375e2c9949610df34b5220fdef0ce7dffd10a Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 25 Oct 2014 11:12:16 +0000 default to cols 79, rows 24 d93375e2c9949610df34b5220fdef0ce7dffd10a 2014-10-25T10:24:20Z 2014-10-25T10:24:20Z config.mk: wextra for release too, x_open_source=700 for POSIX 2008 Hiltjo Posthuma hiltjo@codemadness.org commit d93375e2c9949610df34b5220fdef0ce7dffd10a parent 87edcaa976f44a0058d14a9c5c1185ed8c4f2111 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 25 Oct 2014 10:24:20 +0000 config.mk: wextra for release too, x_open_source=700 for POSIX 2008 87edcaa976f44a0058d14a9c5c1185ed8c4f2111 2014-10-25T10:23:11Z 2014-10-25T10:23:11Z complete_nick: if there is one match, just print it Hiltjo Posthuma hiltjo@codemadness.org commit 87edcaa976f44a0058d14a9c5c1185ed8c4f2111 parent 0623bdc3978eb327390c15de16deb991299e8b31 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 25 Oct 2014 10:23:11 +0000 complete_nick: if there is one match, just print it 0623bdc3978eb327390c15de16deb991299e8b31 2014-10-25T10:22:51Z 2014-10-25T10:22:51Z fix readfd check, below case !r was never executed Hiltjo Posthuma hiltjo@codemadness.org commit 0623bdc3978eb327390c15de16deb991299e8b31 parent fee669cbaa9c842d18ed53838ea84b05335e40bc Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 25 Oct 2014 10:22:51 +0000 fix readfd check, below case !r was never executed fee669cbaa9c842d18ed53838ea84b05335e40bc 2014-10-25T10:22:27Z 2014-10-25T10:22:27Z use ssize_t for read() and write(), style Hiltjo Posthuma hiltjo@codemadness.org commit fee669cbaa9c842d18ed53838ea84b05335e40bc parent bdbc1fb6cd9b3396216dce195cb939aeecb0a29e Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 25 Oct 2014 10:22:27 +0000 use ssize_t for read() and write(), style bdbc1fb6cd9b3396216dce195cb939aeecb0a29e 2014-10-25T10:21:07Z 2014-10-25T10:21:07Z copy word cursor: null terminate properly (off by one). Hiltjo Posthuma hiltjo@codemadness.org commit bdbc1fb6cd9b3396216dce195cb939aeecb0a29e parent 0b974dd40e0a43e83656172f1af3067a438b86c4 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 25 Oct 2014 10:21:07 +0000 copy word cursor: null terminate properly (off by one). 0b974dd40e0a43e83656172f1af3067a438b86c4 2014-10-24T22:46:27Z 2014-10-24T22:46:27Z signed, unsigned fix Hiltjo Posthuma hiltjo@codemadness.org commit 0b974dd40e0a43e83656172f1af3067a438b86c4 parent 611985a88db127b299c44e334577c447457d4fd3 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 22:46:27 +0000 signed, unsigned fix 611985a88db127b299c44e334577c447457d4fd3 2014-10-24T22:35:29Z 2014-10-24T22:35:29Z scripts/history: dont use histfile var (history for shells) Hiltjo Posthuma hiltjo@codemadness.org commit 611985a88db127b299c44e334577c447457d4fd3 parent 5155d5feca8a8c6b6045a8ec392d3fc300eac23f Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 22:35:29 +0000 scripts/history: dont use histfile var (history for shells) 5155d5feca8a8c6b6045a8ec392d3fc300eac23f 2014-10-24T22:35:05Z 2014-10-24T22:35:05Z sob scripts: dont show errors in cli Hiltjo Posthuma hiltjo@codemadness.org commit 5155d5feca8a8c6b6045a8ec392d3fc300eac23f parent c336d9a1b5bc4763a15b91c40b92f5c951dca2fd Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 22:35:05 +0000 sob scripts: dont show errors in cli c336d9a1b5bc4763a15b91c40b92f5c951dca2fd 2014-10-24T22:30:38Z 2014-10-24T22:30:38Z simplify, also dont call cleanup twice on sigterm Hiltjo Posthuma hiltjo@codemadness.org commit c336d9a1b5bc4763a15b91c40b92f5c951dca2fd parent 78f53b2adb9100baf25a415db34884dc11c82d6d Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 22:30:38 +0000 simplify, also dont call cleanup twice on sigterm 78f53b2adb9100baf25a415db34884dc11c82d6d 2014-10-24T22:25:35Z 2014-10-24T22:25:35Z config.mk: xopen_source=500 is enough Hiltjo Posthuma hiltjo@codemadness.org commit 78f53b2adb9100baf25a415db34884dc11c82d6d parent 9e7f1e78806716bc893701b50b29cd791489015d Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 22:25:35 +0000 config.mk: xopen_source=500 is enough 9e7f1e78806716bc893701b50b29cd791489015d 2014-10-24T22:12:47Z 2014-10-24T22:12:47Z restore terminal attribute before reopen with initial input just to be sure Hiltjo Posthuma hiltjo@codemadness.org commit 9e7f1e78806716bc893701b50b29cd791489015d parent 874a6329096155b854a387dcc1a5d73f738cdff0 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 22:12:47 +0000 restore terminal attribute before reopen with initial input just to be sure 874a6329096155b854a387dcc1a5d73f738cdff0 2014-10-24T21:40:51Z 2014-10-24T21:40:51Z config: c-c is exit Hiltjo Posthuma hiltjo@codemadness.org commit 874a6329096155b854a387dcc1a5d73f738cdff0 parent 737f0d5f6529ce15b4064b05b0b1aba2b928a3ab Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 21:40:51 +0000 config: c-c is exit 737f0d5f6529ce15b4064b05b0b1aba2b928a3ab 2014-10-24T21:40:30Z 2014-10-24T21:40:30Z fix build on openbsd, bump version Hiltjo Posthuma hiltjo@codemadness.org commit 737f0d5f6529ce15b4064b05b0b1aba2b928a3ab parent c23c38f4c93e5a386469a52a5874e402fe25b7b8 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 21:40:30 +0000 fix build on openbsd, bump version c23c38f4c93e5a386469a52a5874e402fe25b7b8 2014-10-24T21:40:02Z 2014-10-24T21:40:02Z small code-style improvement Hiltjo Posthuma hiltjo@codemadness.org commit c23c38f4c93e5a386469a52a5874e402fe25b7b8 parent 36443394896a5ed94fa7d8dfdb45066a476dd99e Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 21:40:02 +0000 small code-style improvement 36443394896a5ed94fa7d8dfdb45066a476dd99e 2014-10-24T21:39:44Z 2014-10-24T21:39:44Z increase line buffer size Hiltjo Posthuma hiltjo@codemadness.org commit 36443394896a5ed94fa7d8dfdb45066a476dd99e parent 9a49b5fe634dad242bf637d99902abea6ff81c72 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 21:39:44 +0000 increase line buffer size 9a49b5fe634dad242bf637d99902abea6ff81c72 2014-10-24T21:37:33Z 2014-10-24T21:37:33Z remove -i and -l flag Hiltjo Posthuma hiltjo@codemadness.org commit 9a49b5fe634dad242bf637d99902abea6ff81c72 parent 3bf4efd89a43d94ad46bdda31137a3bc9404ed8c Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 21:37:33 +0000 remove -i and -l flag it is now possible to do: printf 'bla' | sob, this will be used as the initial input. the input will be handled like actual input so escape codes work too (this is a feature). 3bf4efd89a43d94ad46bdda31137a3bc9404ed8c 2014-10-24T21:35:06Z 2014-10-24T21:35:06Z rework read/write fd code, sleep when there are too much timeouts Hiltjo Posthuma hiltjo@codemadness.org commit 3bf4efd89a43d94ad46bdda31137a3bc9404ed8c parent 32e1b3714fc4c84188673f668fca121b7c9e9256 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Oct 2014 21:35:06 +0000 rework read/write fd code, sleep when there are too much timeouts 32e1b3714fc4c84188673f668fca121b7c9e9256 2014-10-13T00:30:17Z 2014-10-13T00:30:17Z separate dirtylen from line so its not cleared Hiltjo Posthuma hiltjo@codemadness.org commit 32e1b3714fc4c84188673f668fca121b7c9e9256 parent 1ab0f13c8f9a8de7f3f0adb586cd1b22fc6f1023 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 13 Oct 2014 00:30:17 +0000 separate dirtylen from line so its not cleared 1ab0f13c8f9a8de7f3f0adb586cd1b22fc6f1023 2014-10-12T23:58:29Z 2014-10-12T23:58:29Z remove leftover strlcpy and util stuff Hiltjo Posthuma hiltjo@codemadness.org commit 1ab0f13c8f9a8de7f3f0adb586cd1b22fc6f1023 parent 739f0257360815ab73257e8b1f682567a140f781 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Oct 2014 23:58:29 +0000 remove leftover strlcpy and util stuff 739f0257360815ab73257e8b1f682567a140f781 2014-10-12T22:39:16Z 2014-10-12T22:39:16Z scripts: resize: always resize the proper pane Hiltjo Posthuma hiltjo@codemadness.org commit 739f0257360815ab73257e8b1f682567a140f781 parent 97f351910969f50f9b33a9af848453b73842cb2f Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Oct 2014 22:39:16 +0000 scripts: resize: always resize the proper pane 97f351910969f50f9b33a9af848453b73842cb2f 2014-10-12T22:31:13Z 2014-10-12T22:31:13Z remove strlcpy, it's unused Hiltjo Posthuma hiltjo@codemadness.org commit 97f351910969f50f9b33a9af848453b73842cb2f parent b68741f2fe59eb350edf3dca744ad26800013893 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Oct 2014 22:31:13 +0000 remove strlcpy, it's unused b68741f2fe59eb350edf3dca744ad26800013893 2014-10-12T22:07:39Z 2014-10-12T22:07:39Z improve handleinput: match escape (0x1b) and control chars (includes 127==del) Hiltjo Posthuma hiltjo@codemadness.org commit b68741f2fe59eb350edf3dca744ad26800013893 parent 5cfc09e6af0a5fec859dc9938210646ea97da167 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Oct 2014 22:07:39 +0000 improve handleinput: match escape (0x1b) and control chars (includes 127==del) 5cfc09e6af0a5fec859dc9938210646ea97da167 2014-10-12T22:05:51Z 2014-10-12T22:05:51Z add total length argument to pipe callback... Hiltjo Posthuma hiltjo@codemadness.org commit 5cfc09e6af0a5fec859dc9938210646ea97da167 parent 47706e9bc61a337498f43c7053048932ce617b75 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Oct 2014 22:05:51 +0000 add total length argument to pipe callback... ... so callbacks can detect a first read and do an action like clear the line, word or other things. 47706e9bc61a337498f43c7053048932ce617b75 2014-10-12T22:05:12Z 2014-10-12T22:05:12Z optimize line_draw, reduces flicker in some terminals Hiltjo Posthuma hiltjo@codemadness.org commit 47706e9bc61a337498f43c7053048932ce617b75 parent 34be376a9445ac7283268a5cdd7c07dee65e576d Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Oct 2014 22:05:12 +0000 optimize line_draw, reduces flicker in some terminals 34be376a9445ac7283268a5cdd7c07dee65e576d 2014-10-12T22:00:26Z 2014-10-12T22:00:26Z config.h: add another del key (in linux console) Hiltjo Posthuma hiltjo@codemadness.org commit 34be376a9445ac7283268a5cdd7c07dee65e576d parent 7afed68f4206f4ec42a64635120162970a38a11a Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Oct 2014 22:00:26 +0000 config.h: add another del key (in linux console) 7afed68f4206f4ec42a64635120162970a38a11a 2014-10-12T21:59:51Z 2014-10-12T21:59:51Z make utf check a macro: ISUTF8 Hiltjo Posthuma hiltjo@codemadness.org commit 7afed68f4206f4ec42a64635120162970a38a11a parent b46f6c23707a2270319dbe3ba9b20129b8f8d823 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Oct 2014 21:59:51 +0000 make utf check a macro: ISUTF8 b46f6c23707a2270319dbe3ba9b20129b8f8d823 2014-10-11T00:46:59Z 2014-10-11T00:46:59Z config.mk: remove ncurses library to link Hiltjo Posthuma hiltjo@codemadness.org commit b46f6c23707a2270319dbe3ba9b20129b8f8d823 parent 839fb50286a96f1deef6c4a53e59d83d23d2a78e Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 11 Oct 2014 00:46:59 +0000 config.mk: remove ncurses library to link 839fb50286a96f1deef6c4a53e59d83d23d2a78e 2014-10-11T00:46:30Z 2014-10-11T00:46:30Z code style: wrap to max 79 chars Hiltjo Posthuma hiltjo@codemadness.org commit 839fb50286a96f1deef6c4a53e59d83d23d2a78e parent b2be349090eddfd8f22c3c7efed4428ffbb188d9 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 11 Oct 2014 00:46:30 +0000 code style: wrap to max 79 chars b2be349090eddfd8f22c3c7efed4428ffbb188d9 2014-10-11T00:17:52Z 2014-10-11T00:17:52Z update TODO Hiltjo Posthuma hiltjo@codemadness.org commit b2be349090eddfd8f22c3c7efed4428ffbb188d9 parent ecbcb2bbd312eba1c8dcd5194c253c2d1da448da Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 11 Oct 2014 00:17:52 +0000 update TODO ecbcb2bbd312eba1c8dcd5194c253c2d1da448da 2014-10-10T22:54:29Z 2014-10-10T22:54:29Z simplify line_cursor_move a bit Hiltjo Posthuma hiltjo@codemadness.org commit ecbcb2bbd312eba1c8dcd5194c253c2d1da448da parent 2d13beded20b1db3647de8a233c1d5b2ae2b4053 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 22:54:29 +0000 simplify line_cursor_move a bit 2d13beded20b1db3647de8a233c1d5b2ae2b4053 2014-10-10T22:45:57Z 2014-10-10T22:45:57Z fix delwordcursor and do some extra checks Hiltjo Posthuma hiltjo@codemadness.org commit 2d13beded20b1db3647de8a233c1d5b2ae2b4053 parent a9ae8a05932a697db41b90346be70cdab1e6031d Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 22:45:57 +0000 fix delwordcursor and do some extra checks a9ae8a05932a697db41b90346be70cdab1e6031d 2014-10-10T21:59:22Z 2014-10-10T21:59:22Z scripts: remove newline, else this would "autoaccept" the input Hiltjo Posthuma hiltjo@codemadness.org commit a9ae8a05932a697db41b90346be70cdab1e6031d parent 5b6101b590a15002552cab3590d01ed5294bd81e Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 21:59:22 +0000 scripts: remove newline, else this would "autoaccept" the input 5b6101b590a15002552cab3590d01ed5294bd81e 2014-10-10T21:56:45Z 2014-10-10T21:56:45Z manpage: change -l to -i Hiltjo Posthuma hiltjo@codemadness.org commit 5b6101b590a15002552cab3590d01ed5294bd81e parent 94943b8e5e88cd90374abc46d954657c6fc63f51 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 21:56:45 +0000 manpage: change -l to -i 94943b8e5e88cd90374abc46d954657c6fc63f51 2014-10-10T21:54:57Z 2014-10-10T21:54:57Z make input handling more flexible Hiltjo Posthuma hiltjo@codemadness.org commit 94943b8e5e88cd90374abc46d954657c6fc63f51 parent 0d01477d561d460a40b68ec469b23d9edb2e88a0 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 21:54:57 +0000 make input handling more flexible - improve non-blocked reads. - allow to pipe multiple lines using callbacks (same as handleinput for cb_* callbacks). - change -l to -i, because input can now be more than just text. 0d01477d561d460a40b68ec469b23d9edb2e88a0 2014-10-10T20:59:17Z 2014-10-10T20:59:17Z improve handleinput: dont handle rest of input if escape code is unhandled Hiltjo Posthuma hiltjo@codemadness.org commit 0d01477d561d460a40b68ec469b23d9edb2e88a0 parent 39be364f31f527b59f6280d37eaa88e70fe79712 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 20:59:17 +0000 improve handleinput: dont handle rest of input if escape code is unhandled 39be364f31f527b59f6280d37eaa88e70fe79712 2014-10-10T20:36:33Z 2014-10-10T20:36:33Z improve handleinput for reads containing multiple keys Hiltjo Posthuma hiltjo@codemadness.org commit 39be364f31f527b59f6280d37eaa88e70fe79712 parent 4509683dafe3ff6f26d5dd19e4a2ad892e63d5d0 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 20:36:33 +0000 improve handleinput for reads containing multiple keys 4509683dafe3ff6f26d5dd19e4a2ad892e63d5d0 2014-10-10T20:05:29Z 2014-10-10T20:05:29Z handle > 0 reads Hiltjo Posthuma hiltjo@codemadness.org commit 4509683dafe3ff6f26d5dd19e4a2ad892e63d5d0 parent 82305fc9b1dac9d1bd37b294923a7a036e09ace4 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 20:05:29 +0000 handle > 0 reads 82305fc9b1dac9d1bd37b294923a7a036e09ace4 2014-10-10T20:03:18Z 2014-10-10T20:03:18Z remove debuginput Hiltjo Posthuma hiltjo@codemadness.org commit 82305fc9b1dac9d1bd37b294923a7a036e09ace4 parent a7c93e01ca67a6fd1fcb9aa81f448f27b9d87526 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 20:03:18 +0000 remove debuginput a7c93e01ca67a6fd1fcb9aa81f448f27b9d87526 2014-10-10T20:02:34Z 2014-10-10T20:02:34Z fflush after clear Hiltjo Posthuma hiltjo@codemadness.org commit a7c93e01ca67a6fd1fcb9aa81f448f27b9d87526 parent 5036846948d44ae0c3ba47da9d26d527ecaa0cfb Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 20:02:34 +0000 fflush after clear 5036846948d44ae0c3ba47da9d26d527ecaa0cfb 2014-10-10T20:02:19Z 2014-10-10T20:02:19Z simplify and reduce a draw Hiltjo Posthuma hiltjo@codemadness.org commit 5036846948d44ae0c3ba47da9d26d527ecaa0cfb parent ea01e94bd58fb239ee51da4d6543c415e3841a49 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 20:02:19 +0000 simplify and reduce a draw ea01e94bd58fb239ee51da4d6543c415e3841a49 2014-10-10T19:03:44Z 2014-10-10T19:03:44Z make: enable release cflags and ldflags Hiltjo Posthuma hiltjo@codemadness.org commit ea01e94bd58fb239ee51da4d6543c415e3841a49 parent 098c6bb48f3cf7f254df4eb405f6981ab9cd8f7c Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 19:03:44 +0000 make: enable release cflags and ldflags 098c6bb48f3cf7f254df4eb405f6981ab9cd8f7c 2014-10-10T19:03:13Z 2014-10-10T19:03:13Z remove unused macros Hiltjo Posthuma hiltjo@codemadness.org commit 098c6bb48f3cf7f254df4eb405f6981ab9cd8f7c parent 176397bb009b98fc1a69fe487cb4df374bdebe0e Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 19:03:13 +0000 remove unused macros 176397bb009b98fc1a69fe487cb4df374bdebe0e 2014-10-10T18:57:22Z 2014-10-10T18:57:22Z change wrong comment Hiltjo Posthuma hiltjo@codemadness.org commit 176397bb009b98fc1a69fe487cb4df374bdebe0e parent 88b89ef7b2ca23aaa444507ba388d05a5d52fe7c Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 18:57:22 +0000 change wrong comment 88b89ef7b2ca23aaa444507ba388d05a5d52fe7c 2014-10-10T18:57:02Z 2014-10-10T18:57:02Z wchar: make glibc happy Hiltjo Posthuma hiltjo@codemadness.org commit 88b89ef7b2ca23aaa444507ba388d05a5d52fe7c parent 953439a2efe7bf8be200be0d384377d1d96f4d48 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 18:57:02 +0000 wchar: make glibc happy 953439a2efe7bf8be200be0d384377d1d96f4d48 2014-10-10T18:47:55Z 2014-10-10T18:47:55Z add support for characters that are bigger than 1 column Hiltjo Posthuma hiltjo@codemadness.org commit 953439a2efe7bf8be200be0d384377d1d96f4d48 parent 4f2bc0ed04d5afc5dfd11651fe84747eb3ec55bb Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 18:47:55 +0000 add support for characters that are bigger than 1 column 4f2bc0ed04d5afc5dfd11651fe84747eb3ec55bb 2014-10-10T14:08:10Z 2014-10-10T14:08:10Z config: add a comment about the prompt format Hiltjo Posthuma hiltjo@codemadness.org commit 4f2bc0ed04d5afc5dfd11651fe84747eb3ec55bb parent a887d6f07bb03b0d3276485d03b827f6cd908ccd Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 14:08:10 +0000 config: add a comment about the prompt format a887d6f07bb03b0d3276485d03b827f6cd908ccd 2014-10-10T14:05:25Z 2014-10-10T14:05:25Z consistency Hiltjo Posthuma hiltjo@codemadness.org commit a887d6f07bb03b0d3276485d03b827f6cd908ccd parent d89e9df43c6b3966fc438d925680ac8ff25f6e2f Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 10 Oct 2014 14:05:25 +0000 consistency d89e9df43c6b3966fc438d925680ac8ff25f6e2f 2014-10-04T12:36:27Z 2014-10-04T12:36:27Z fix delcharnext string length Hiltjo Posthuma hiltjo@codemadness.org commit d89e9df43c6b3966fc438d925680ac8ff25f6e2f parent 44fdd353a9864ddb98cf5ef72f57936c42805038 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 4 Oct 2014 12:36:27 +0000 fix delcharnext string length 44fdd353a9864ddb98cf5ef72f57936c42805038 2014-10-04T12:36:16Z 2014-10-04T12:36:16Z do some extra checks to be safe Hiltjo Posthuma hiltjo@codemadness.org commit 44fdd353a9864ddb98cf5ef72f57936c42805038 parent f9bbf270b93c85592b54d7d2c6b4cb769feecc64 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 4 Oct 2014 12:36:16 +0000 do some extra checks to be safe f9bbf270b93c85592b54d7d2c6b4cb769feecc64 2014-10-04T01:32:45Z 2014-10-04T01:32:45Z cast to size_t and use size_t specified for format string Hiltjo Posthuma hiltjo@codemadness.org commit f9bbf270b93c85592b54d7d2c6b4cb769feecc64 parent 3f4c6b998c638451e897785ea499b23395180c08 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 4 Oct 2014 01:32:45 +0000 cast to size_t and use size_t specified for format string 3f4c6b998c638451e897785ea499b23395180c08 2014-10-04T01:32:12Z 2014-10-04T01:32:12Z use STDIN_FILENO, fd_in was uninitialized Hiltjo Posthuma hiltjo@codemadness.org commit 3f4c6b998c638451e897785ea499b23395180c08 parent 9da70a634b2e6b31026cf4dc619e54fa58ecb128 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 4 Oct 2014 01:32:12 +0000 use STDIN_FILENO, fd_in was uninitialized 9da70a634b2e6b31026cf4dc619e54fa58ecb128 2014-10-03T23:53:20Z 2014-10-03T23:53:20Z scripts/history: fix file test Hiltjo Posthuma hiltjo@codemadness.org commit 9da70a634b2e6b31026cf4dc619e54fa58ecb128 parent b857574ff5aad8444c5c84b02129dbeeab47df0b Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 3 Oct 2014 23:53:20 +0000 scripts/history: fix file test b857574ff5aad8444c5c84b02129dbeeab47df0b 2014-10-03T23:49:22Z 2014-10-03T23:49:22Z update TODO Hiltjo Posthuma hiltjo@codemadness.org commit b857574ff5aad8444c5c84b02129dbeeab47df0b parent 517a1cac03d09213419cabd41dc481c08ad16c9d Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 3 Oct 2014 23:49:22 +0000 update TODO 517a1cac03d09213419cabd41dc481c08ad16c9d 2014-10-03T23:49:15Z 2014-10-03T23:49:15Z support utf8 input and output Hiltjo Posthuma hiltjo@codemadness.org commit 517a1cac03d09213419cabd41dc481c08ad16c9d parent d52ae758f565c6a59c5ddb96995b2e364c507c4f Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 3 Oct 2014 23:49:15 +0000 support utf8 input and output d52ae758f565c6a59c5ddb96995b2e364c507c4f 2014-10-03T23:48:11Z 2014-10-03T23:48:11Z fix arrow keys in csi-mode Hiltjo Posthuma hiltjo@codemadness.org commit d52ae758f565c6a59c5ddb96995b2e364c507c4f parent c02257b852543ca38d39f9c2ae1654adecb398fb Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 3 Oct 2014 23:48:11 +0000 fix arrow keys in csi-mode c02257b852543ca38d39f9c2ae1654adecb398fb 2014-10-02T21:32:13Z 2014-10-02T21:32:13Z fix crash with memmove and cols == 0 Hiltjo Posthuma hiltjo@codemadness.org commit c02257b852543ca38d39f9c2ae1654adecb398fb parent 12656a030acf296f0b6299175f982a6eae630646 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 2 Oct 2014 21:32:13 +0000 fix crash with memmove and cols == 0 12656a030acf296f0b6299175f982a6eae630646 2014-10-02T20:55:49Z 2014-10-02T21:00:50Z rework some things: Hiltjo Posthuma hiltjo@codemadness.org commit 12656a030acf296f0b6299175f982a6eae630646 parent b072bb3bd5fdff06b0a12cd7bc6a8f94962ab97d Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 2 Oct 2014 20:55:49 +0000 rework some things: - remove dependency on ncurses. - just use stdout for output instead of -f, this makes using it with tee trivial. use stderr for the "interface". - fix resize bug select() == 1 with errno EINTR. b072bb3bd5fdff06b0a12cd7bc6a8f94962ab97d 2014-10-02T11:27:59Z 2014-10-02T11:27:59Z consistency: make resize a bindable function Hiltjo Posthuma hiltjo@codemadness.org commit b072bb3bd5fdff06b0a12cd7bc6a8f94962ab97d parent 13970fc40d3282194523858158507d5592123512 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 2 Oct 2014 11:27:59 +0000 consistency: make resize a bindable function make resize a script, remove resizecmd. 13970fc40d3282194523858158507d5592123512 2014-10-02T01:31:43Z 2014-10-02T01:31:43Z code style Hiltjo Posthuma hiltjo@codemadness.org commit 13970fc40d3282194523858158507d5592123512 parent 9de4bb2f6a8ec555ef56e447e6e7eec995f57873 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 2 Oct 2014 01:31:43 +0000 code style 9de4bb2f6a8ec555ef56e447e6e7eec995f57873 2014-10-02T01:28:25Z 2014-10-02T01:28:25Z move some functions to make it more clear how to configure custom functions. Hiltjo Posthuma hiltjo@codemadness.org commit 9de4bb2f6a8ec555ef56e447e6e7eec995f57873 parent e2dc0e68998bb673bfe3d57aa0149cfb28a85c2b Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 2 Oct 2014 01:28:25 +0000 move some functions to make it more clear how to configure custom functions. e2dc0e68998bb673bfe3d57aa0149cfb28a85c2b 2014-10-02T01:19:19Z 2014-10-02T01:19:19Z remove delwordcursor keybind Hiltjo Posthuma hiltjo@codemadness.org commit e2dc0e68998bb673bfe3d57aa0149cfb28a85c2b parent a48d9425805d5d8029aa8e63cdbf52a50b6baec2 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 2 Oct 2014 01:19:19 +0000 remove delwordcursor keybind a48d9425805d5d8029aa8e63cdbf52a50b6baec2 2014-10-02T01:19:07Z 2014-10-02T01:19:07Z dont double close fd_out in some case Hiltjo Posthuma hiltjo@codemadness.org commit a48d9425805d5d8029aa8e63cdbf52a50b6baec2 parent 9016f01349bd3d07d8bd208cc3144116d0961d63 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 2 Oct 2014 01:19:07 +0000 dont double close fd_out in some case 9016f01349bd3d07d8bd208cc3144116d0961d63 2014-10-02T01:07:00Z 2014-10-02T01:07:00Z update TODO Hiltjo Posthuma hiltjo@codemadness.org commit 9016f01349bd3d07d8bd208cc3144116d0961d63 parent becbbb1ea807edd361472632cb1571b5c492c41f Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 2 Oct 2014 01:07:00 +0000 update TODO becbbb1ea807edd361472632cb1571b5c492c41f 2014-10-02T01:05:42Z 2014-10-02T01:05:42Z update for irc + ii Hiltjo Posthuma hiltjo@codemadness.org commit becbbb1ea807edd361472632cb1571b5c492c41f parent c7bf0604ba222bf9437b3500c27e5d7a14f9f25a Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 2 Oct 2014 01:05:42 +0000 update for irc + ii c7bf0604ba222bf9437b3500c27e5d7a14f9f25a 2014-10-02T01:01:58Z 2014-10-02T01:01:58Z export line and write str as env Hiltjo Posthuma hiltjo@codemadness.org commit c7bf0604ba222bf9437b3500c27e5d7a14f9f25a parent a4b4f1c4dada4128c004a959c5dd1f40ec340a6e Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 2 Oct 2014 01:01:58 +0000 export line and write str as env a4b4f1c4dada4128c004a959c5dd1f40ec340a6e 2014-10-02T01:01:44Z 2014-10-02T01:01:44Z terminate buffer if size = 0 Hiltjo Posthuma hiltjo@codemadness.org commit a4b4f1c4dada4128c004a959c5dd1f40ec340a6e parent 12d2c2bd8352b53400a7808b51ffdc2aa757c753 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 2 Oct 2014 01:01:44 +0000 terminate buffer if size = 0 12d2c2bd8352b53400a7808b51ffdc2aa757c753 2014-10-01T23:15:55Z 2014-10-01T23:15:55Z remove id parameter Hiltjo Posthuma hiltjo@codemadness.org commit 12d2c2bd8352b53400a7808b51ffdc2aa757c753 parent c724e2f7987bba8b9b9c52ebb3ff77721786d2a6 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 1 Oct 2014 23:15:55 +0000 remove id parameter this can just be set with an envionment variable for example to identify per sob 'session'. c724e2f7987bba8b9b9c52ebb3ff77721786d2a6 2014-10-01T23:14:31Z 2014-10-01T23:14:31Z config: use scripts in $HOME Hiltjo Posthuma hiltjo@codemadness.org commit c724e2f7987bba8b9b9c52ebb3ff77721786d2a6 parent 99d263504572720db6a3a78f1d1b7e0b50060ca7 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 1 Oct 2014 23:14:31 +0000 config: use scripts in $HOME 99d263504572720db6a3a78f1d1b7e0b50060ca7 2014-10-01T22:45:24Z 2014-10-01T22:45:24Z initial version Hiltjo Posthuma hiltjo@codemadness.org commit 99d263504572720db6a3a78f1d1b7e0b50060ca7 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 1 Oct 2014 22:45:24 +0000 initial version