sob, branch HEADsimple output bar
377313c0f8f0b901fe2f34c9f9d5891c2b98cd2a2019-11-22T16:00:53Z2019-11-22T16:00:53Zcode-style and change EXIT_* back to the standard codeHiltjo Posthumahiltjo@codemadness.orgcommit 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
8a367ec398a999499a34d773f67cc6a6834b8a562019-11-22T15:58:59Z2019-11-22T15:58:59Zupdate LICENSE (MIT->ISC) and README tweaksHiltjo Posthumahiltjo@codemadness.orgcommit 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
b3741d9b801de57de4bff7e91bf2f88064b8b4112019-11-22T15:57:58Z2019-11-22T15:57:58Zimprove MakefileHiltjo Posthumahiltjo@codemadness.orgcommit 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
bfe40b1849339039727903c1037db44c59580e6e2015-09-04T09:34:46Z2015-09-04T09:34:46Zremove unneeded (wrong) line, timeval is already clearedHiltjo Posthumahiltjo@codemadness.orgcommit 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
011c246b6b581fb3a64c69be9ab6b31ba012a7bd2014-11-09T14:59:58Z2014-11-09T15:00:14Zscripts/history: show in reverse order (newest first).Hiltjo Posthumahiltjo@codemadness.orgcommit 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).
e0cb947ff6f99ab3423e45bc681fd2ab67d4379b2014-11-09T14:23:48Z2014-11-09T14:40:47Zscripts: update complete_nickHiltjo Posthumahiltjo@codemadness.orgcommit e0cb947ff6f99ab3423e45bc681fd2ab67d4379b
parent 215516a8bfac89528bcdee472b89d18546504515
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 9 Nov 2014 14:23:48 +0000
scripts: update complete_nick
215516a8bfac89528bcdee472b89d185465045152014-10-31T13:37:45Z2014-10-31T13:37:45Zcomplete_nick: be compatible with default ii out formatHiltjo Posthumahiltjo@codemadness.orgcommit 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
86488a280037b6fe03a9311ca34ad9ccff3a18142014-10-31T13:36:43Z2014-10-31T13:36:43Zconfig: add emacs word-movement keybind (alt+f, alt+b)Hiltjo Posthumahiltjo@codemadness.orgcommit 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)
74da8c1cfc20e7ea947d7d6fb1c97258a3e65b212014-10-31T13:36:03Z2014-10-31T13:36:03Zline_cursor_move: more portable, dont use c99 size_t format stringHiltjo Posthumahiltjo@codemadness.orgcommit 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
527078b1efa4cc09042c4521e07ff7dc8c5d6c8e2014-10-31T13:35:26Z2014-10-31T13:35:26Zdraw slightly more efficient, hide cursor firstHiltjo Posthumahiltjo@codemadness.orgcommit 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
1f4f2ea75cfe5cbbb84daa016d14dca907584e622014-10-26T19:10:38Z2014-10-26T19:10:38Zupdate TODOHiltjo Posthumahiltjo@codemadness.orgcommit 1f4f2ea75cfe5cbbb84daa016d14dca907584e62
parent 6d27363d00b6e9901126df2f4a70b8ba93bc1602
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 26 Oct 2014 19:10:38 +0000
update TODO
6d27363d00b6e9901126df2f4a70b8ba93bc16022014-10-26T19:05:06Z2014-10-26T19:05:06Zvarious improvements and cleanup:Hiltjo Posthumahiltjo@codemadness.orgcommit 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.
7c32499ad075426acaa9f44813059b630aa52a122014-10-26T14:35:59Z2014-10-26T14:35:59Zimprove readfd and writefd (blocking)Hiltjo Posthumahiltjo@codemadness.orgcommit 7c32499ad075426acaa9f44813059b630aa52a12
parent fe1be9488f907f205711eda02c47a5b9aab08fd2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 26 Oct 2014 14:35:59 +0000
improve readfd and writefd (blocking)
fe1be9488f907f205711eda02c47a5b9aab08fd22014-10-26T12:31:01Z2014-10-26T12:31:01Zconfig: ctrl-c is special-case, dont define it in configHiltjo Posthumahiltjo@codemadness.orgcommit 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
fb069221b7b7433cbccc6144388d7f5c3179a44a2014-10-26T12:30:44Z2014-10-26T12:30:44ZREADME: add more usage infoHiltjo Posthumahiltjo@codemadness.orgcommit fb069221b7b7433cbccc6144388d7f5c3179a44a
parent 088944cffaac6c5ae538ad8f611a48d54f90783c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 26 Oct 2014 12:30:44 +0000
README: add more usage info
088944cffaac6c5ae538ad8f611a48d54f90783c2014-10-26T12:30:01Z2014-10-26T12:30:01Zrestore term attributes on SIGINT (Ctrl-c) properlyHiltjo Posthumahiltjo@codemadness.orgcommit 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
6f02addad1b6c1f13090d951703a00edba6662c32014-10-26T12:01:22Z2014-10-26T12:01:22Zdefault to character width 1Hiltjo Posthumahiltjo@codemadness.orgcommit 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
74676ddd350816d7c6bdd5ef274a8c66ae49d1052014-10-25T15:28:47Z2014-10-25T15:28:47ZPOSIX.1-2001 defines the value of EWOULDBLOCK and EAGAIN can be differentHiltjo Posthumahiltjo@codemadness.orgcommit 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
fbf256e42d9229923c4e8e15974966efd6bc63842014-10-25T11:15:38Z2014-10-25T11:15:38Zupdate TODOHiltjo Posthumahiltjo@codemadness.orgcommit fbf256e42d9229923c4e8e15974966efd6bc6384
parent 7a89c043b1e2c774e6522b3b1b3a4114354ee0fd
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 25 Oct 2014 11:15:38 +0000
update TODO
7a89c043b1e2c774e6522b3b1b3a4114354ee0fd2014-10-25T11:12:50Z2014-10-25T11:12:50Zimprove tcgetattr and setup()Hiltjo Posthumahiltjo@codemadness.orgcommit 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().
7eae1acf0a7d4644114e30f6f3bfc2143954518c2014-10-25T11:12:16Z2014-10-25T11:12:16Zdefault to cols 79, rows 24Hiltjo Posthumahiltjo@codemadness.orgcommit 7eae1acf0a7d4644114e30f6f3bfc2143954518c
parent d93375e2c9949610df34b5220fdef0ce7dffd10a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 25 Oct 2014 11:12:16 +0000
default to cols 79, rows 24
d93375e2c9949610df34b5220fdef0ce7dffd10a2014-10-25T10:24:20Z2014-10-25T10:24:20Zconfig.mk: wextra for release too, x_open_source=700 for POSIX 2008Hiltjo Posthumahiltjo@codemadness.orgcommit 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
87edcaa976f44a0058d14a9c5c1185ed8c4f21112014-10-25T10:23:11Z2014-10-25T10:23:11Zcomplete_nick: if there is one match, just print itHiltjo Posthumahiltjo@codemadness.orgcommit 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
0623bdc3978eb327390c15de16deb991299e8b312014-10-25T10:22:51Z2014-10-25T10:22:51Zfix readfd check, below case !r was never executedHiltjo Posthumahiltjo@codemadness.orgcommit 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
fee669cbaa9c842d18ed53838ea84b05335e40bc2014-10-25T10:22:27Z2014-10-25T10:22:27Zuse ssize_t for read() and write(), styleHiltjo Posthumahiltjo@codemadness.orgcommit 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
bdbc1fb6cd9b3396216dce195cb939aeecb0a29e2014-10-25T10:21:07Z2014-10-25T10:21:07Zcopy word cursor: null terminate properly (off by one).Hiltjo Posthumahiltjo@codemadness.orgcommit 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).
0b974dd40e0a43e83656172f1af3067a438b86c42014-10-24T22:46:27Z2014-10-24T22:46:27Zsigned, unsigned fixHiltjo Posthumahiltjo@codemadness.orgcommit 0b974dd40e0a43e83656172f1af3067a438b86c4
parent 611985a88db127b299c44e334577c447457d4fd3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 24 Oct 2014 22:46:27 +0000
signed, unsigned fix
611985a88db127b299c44e334577c447457d4fd32014-10-24T22:35:29Z2014-10-24T22:35:29Zscripts/history: dont use histfile var (history for shells)Hiltjo Posthumahiltjo@codemadness.orgcommit 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)
5155d5feca8a8c6b6045a8ec392d3fc300eac23f2014-10-24T22:35:05Z2014-10-24T22:35:05Zsob scripts: dont show errors in cliHiltjo Posthumahiltjo@codemadness.orgcommit 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
c336d9a1b5bc4763a15b91c40b92f5c951dca2fd2014-10-24T22:30:38Z2014-10-24T22:30:38Zsimplify, also dont call cleanup twice on sigtermHiltjo Posthumahiltjo@codemadness.orgcommit 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
78f53b2adb9100baf25a415db34884dc11c82d6d2014-10-24T22:25:35Z2014-10-24T22:25:35Zconfig.mk: xopen_source=500 is enoughHiltjo Posthumahiltjo@codemadness.orgcommit 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
9e7f1e78806716bc893701b50b29cd791489015d2014-10-24T22:12:47Z2014-10-24T22:12:47Zrestore terminal attribute before reopen with initial input just to be sureHiltjo Posthumahiltjo@codemadness.orgcommit 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
874a6329096155b854a387dcc1a5d73f738cdff02014-10-24T21:40:51Z2014-10-24T21:40:51Zconfig: c-c is exitHiltjo Posthumahiltjo@codemadness.orgcommit 874a6329096155b854a387dcc1a5d73f738cdff0
parent 737f0d5f6529ce15b4064b05b0b1aba2b928a3ab
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 24 Oct 2014 21:40:51 +0000
config: c-c is exit
737f0d5f6529ce15b4064b05b0b1aba2b928a3ab2014-10-24T21:40:30Z2014-10-24T21:40:30Zfix build on openbsd, bump versionHiltjo Posthumahiltjo@codemadness.orgcommit 737f0d5f6529ce15b4064b05b0b1aba2b928a3ab
parent c23c38f4c93e5a386469a52a5874e402fe25b7b8
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 24 Oct 2014 21:40:30 +0000
fix build on openbsd, bump version
c23c38f4c93e5a386469a52a5874e402fe25b7b82014-10-24T21:40:02Z2014-10-24T21:40:02Zsmall code-style improvementHiltjo Posthumahiltjo@codemadness.orgcommit c23c38f4c93e5a386469a52a5874e402fe25b7b8
parent 36443394896a5ed94fa7d8dfdb45066a476dd99e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 24 Oct 2014 21:40:02 +0000
small code-style improvement
36443394896a5ed94fa7d8dfdb45066a476dd99e2014-10-24T21:39:44Z2014-10-24T21:39:44Zincrease line buffer sizeHiltjo Posthumahiltjo@codemadness.orgcommit 36443394896a5ed94fa7d8dfdb45066a476dd99e
parent 9a49b5fe634dad242bf637d99902abea6ff81c72
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 24 Oct 2014 21:39:44 +0000
increase line buffer size
9a49b5fe634dad242bf637d99902abea6ff81c722014-10-24T21:37:33Z2014-10-24T21:37:33Zremove -i and -l flagHiltjo Posthumahiltjo@codemadness.orgcommit 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).
3bf4efd89a43d94ad46bdda31137a3bc9404ed8c2014-10-24T21:35:06Z2014-10-24T21:35:06Zrework read/write fd code, sleep when there are too much timeoutsHiltjo Posthumahiltjo@codemadness.orgcommit 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
32e1b3714fc4c84188673f668fca121b7c9e92562014-10-13T00:30:17Z2014-10-13T00:30:17Zseparate dirtylen from line so its not clearedHiltjo Posthumahiltjo@codemadness.orgcommit 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
1ab0f13c8f9a8de7f3f0adb586cd1b22fc6f10232014-10-12T23:58:29Z2014-10-12T23:58:29Zremove leftover strlcpy and util stuffHiltjo Posthumahiltjo@codemadness.orgcommit 1ab0f13c8f9a8de7f3f0adb586cd1b22fc6f1023
parent 739f0257360815ab73257e8b1f682567a140f781
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Oct 2014 23:58:29 +0000
remove leftover strlcpy and util stuff
739f0257360815ab73257e8b1f682567a140f7812014-10-12T22:39:16Z2014-10-12T22:39:16Zscripts: resize: always resize the proper paneHiltjo Posthumahiltjo@codemadness.orgcommit 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
97f351910969f50f9b33a9af848453b73842cb2f2014-10-12T22:31:13Z2014-10-12T22:31:13Zremove strlcpy, it's unusedHiltjo Posthumahiltjo@codemadness.orgcommit 97f351910969f50f9b33a9af848453b73842cb2f
parent b68741f2fe59eb350edf3dca744ad26800013893
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Oct 2014 22:31:13 +0000
remove strlcpy, it's unused
b68741f2fe59eb350edf3dca744ad268000138932014-10-12T22:07:39Z2014-10-12T22:07:39Zimprove handleinput: match escape (0x1b) and control chars (includes 127==del)Hiltjo Posthumahiltjo@codemadness.orgcommit 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)
5cfc09e6af0a5fec859dc9938210646ea97da1672014-10-12T22:05:51Z2014-10-12T22:05:51Zadd total length argument to pipe callback...Hiltjo Posthumahiltjo@codemadness.orgcommit 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.
47706e9bc61a337498f43c7053048932ce617b752014-10-12T22:05:12Z2014-10-12T22:05:12Zoptimize line_draw, reduces flicker in some terminalsHiltjo Posthumahiltjo@codemadness.orgcommit 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
34be376a9445ac7283268a5cdd7c07dee65e576d2014-10-12T22:00:26Z2014-10-12T22:00:26Zconfig.h: add another del key (in linux console)Hiltjo Posthumahiltjo@codemadness.orgcommit 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)
7afed68f4206f4ec42a64635120162970a38a11a2014-10-12T21:59:51Z2014-10-12T21:59:51Zmake utf check a macro: ISUTF8Hiltjo Posthumahiltjo@codemadness.orgcommit 7afed68f4206f4ec42a64635120162970a38a11a
parent b46f6c23707a2270319dbe3ba9b20129b8f8d823
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Oct 2014 21:59:51 +0000
make utf check a macro: ISUTF8
b46f6c23707a2270319dbe3ba9b20129b8f8d8232014-10-11T00:46:59Z2014-10-11T00:46:59Zconfig.mk: remove ncurses library to linkHiltjo Posthumahiltjo@codemadness.orgcommit 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
839fb50286a96f1deef6c4a53e59d83d23d2a78e2014-10-11T00:46:30Z2014-10-11T00:46:30Zcode style: wrap to max 79 charsHiltjo Posthumahiltjo@codemadness.orgcommit 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
b2be349090eddfd8f22c3c7efed4428ffbb188d92014-10-11T00:17:52Z2014-10-11T00:17:52Zupdate TODOHiltjo Posthumahiltjo@codemadness.orgcommit b2be349090eddfd8f22c3c7efed4428ffbb188d9
parent ecbcb2bbd312eba1c8dcd5194c253c2d1da448da
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 11 Oct 2014 00:17:52 +0000
update TODO
ecbcb2bbd312eba1c8dcd5194c253c2d1da448da2014-10-10T22:54:29Z2014-10-10T22:54:29Zsimplify line_cursor_move a bitHiltjo Posthumahiltjo@codemadness.orgcommit ecbcb2bbd312eba1c8dcd5194c253c2d1da448da
parent 2d13beded20b1db3647de8a233c1d5b2ae2b4053
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 10 Oct 2014 22:54:29 +0000
simplify line_cursor_move a bit
2d13beded20b1db3647de8a233c1d5b2ae2b40532014-10-10T22:45:57Z2014-10-10T22:45:57Zfix delwordcursor and do some extra checksHiltjo Posthumahiltjo@codemadness.orgcommit 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
a9ae8a05932a697db41b90346be70cdab1e6031d2014-10-10T21:59:22Z2014-10-10T21:59:22Zscripts: remove newline, else this would "autoaccept" the inputHiltjo Posthumahiltjo@codemadness.orgcommit 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
5b6101b590a15002552cab3590d01ed5294bd81e2014-10-10T21:56:45Z2014-10-10T21:56:45Zmanpage: change -l to -iHiltjo Posthumahiltjo@codemadness.orgcommit 5b6101b590a15002552cab3590d01ed5294bd81e
parent 94943b8e5e88cd90374abc46d954657c6fc63f51
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 10 Oct 2014 21:56:45 +0000
manpage: change -l to -i
94943b8e5e88cd90374abc46d954657c6fc63f512014-10-10T21:54:57Z2014-10-10T21:54:57Zmake input handling more flexibleHiltjo Posthumahiltjo@codemadness.orgcommit 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.
0d01477d561d460a40b68ec469b23d9edb2e88a02014-10-10T20:59:17Z2014-10-10T20:59:17Zimprove handleinput: dont handle rest of input if escape code is unhandledHiltjo Posthumahiltjo@codemadness.orgcommit 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
39be364f31f527b59f6280d37eaa88e70fe797122014-10-10T20:36:33Z2014-10-10T20:36:33Zimprove handleinput for reads containing multiple keysHiltjo Posthumahiltjo@codemadness.orgcommit 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
4509683dafe3ff6f26d5dd19e4a2ad892e63d5d02014-10-10T20:05:29Z2014-10-10T20:05:29Zhandle > 0 readsHiltjo Posthumahiltjo@codemadness.orgcommit 4509683dafe3ff6f26d5dd19e4a2ad892e63d5d0
parent 82305fc9b1dac9d1bd37b294923a7a036e09ace4
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 10 Oct 2014 20:05:29 +0000
handle > 0 reads
82305fc9b1dac9d1bd37b294923a7a036e09ace42014-10-10T20:03:18Z2014-10-10T20:03:18Zremove debuginputHiltjo Posthumahiltjo@codemadness.orgcommit 82305fc9b1dac9d1bd37b294923a7a036e09ace4
parent a7c93e01ca67a6fd1fcb9aa81f448f27b9d87526
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 10 Oct 2014 20:03:18 +0000
remove debuginput
a7c93e01ca67a6fd1fcb9aa81f448f27b9d875262014-10-10T20:02:34Z2014-10-10T20:02:34Zfflush after clearHiltjo Posthumahiltjo@codemadness.orgcommit a7c93e01ca67a6fd1fcb9aa81f448f27b9d87526
parent 5036846948d44ae0c3ba47da9d26d527ecaa0cfb
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 10 Oct 2014 20:02:34 +0000
fflush after clear
5036846948d44ae0c3ba47da9d26d527ecaa0cfb2014-10-10T20:02:19Z2014-10-10T20:02:19Zsimplify and reduce a drawHiltjo Posthumahiltjo@codemadness.orgcommit 5036846948d44ae0c3ba47da9d26d527ecaa0cfb
parent ea01e94bd58fb239ee51da4d6543c415e3841a49
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 10 Oct 2014 20:02:19 +0000
simplify and reduce a draw
ea01e94bd58fb239ee51da4d6543c415e3841a492014-10-10T19:03:44Z2014-10-10T19:03:44Zmake: enable release cflags and ldflagsHiltjo Posthumahiltjo@codemadness.orgcommit ea01e94bd58fb239ee51da4d6543c415e3841a49
parent 098c6bb48f3cf7f254df4eb405f6981ab9cd8f7c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 10 Oct 2014 19:03:44 +0000
make: enable release cflags and ldflags
098c6bb48f3cf7f254df4eb405f6981ab9cd8f7c2014-10-10T19:03:13Z2014-10-10T19:03:13Zremove unused macrosHiltjo Posthumahiltjo@codemadness.orgcommit 098c6bb48f3cf7f254df4eb405f6981ab9cd8f7c
parent 176397bb009b98fc1a69fe487cb4df374bdebe0e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 10 Oct 2014 19:03:13 +0000
remove unused macros
176397bb009b98fc1a69fe487cb4df374bdebe0e2014-10-10T18:57:22Z2014-10-10T18:57:22Zchange wrong commentHiltjo Posthumahiltjo@codemadness.orgcommit 176397bb009b98fc1a69fe487cb4df374bdebe0e
parent 88b89ef7b2ca23aaa444507ba388d05a5d52fe7c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 10 Oct 2014 18:57:22 +0000
change wrong comment
88b89ef7b2ca23aaa444507ba388d05a5d52fe7c2014-10-10T18:57:02Z2014-10-10T18:57:02Zwchar: make glibc happyHiltjo Posthumahiltjo@codemadness.orgcommit 88b89ef7b2ca23aaa444507ba388d05a5d52fe7c
parent 953439a2efe7bf8be200be0d384377d1d96f4d48
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 10 Oct 2014 18:57:02 +0000
wchar: make glibc happy
953439a2efe7bf8be200be0d384377d1d96f4d482014-10-10T18:47:55Z2014-10-10T18:47:55Zadd support for characters that are bigger than 1 columnHiltjo Posthumahiltjo@codemadness.orgcommit 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
4f2bc0ed04d5afc5dfd11651fe84747eb3ec55bb2014-10-10T14:08:10Z2014-10-10T14:08:10Zconfig: add a comment about the prompt formatHiltjo Posthumahiltjo@codemadness.orgcommit 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
a887d6f07bb03b0d3276485d03b827f6cd908ccd2014-10-10T14:05:25Z2014-10-10T14:05:25ZconsistencyHiltjo Posthumahiltjo@codemadness.orgcommit a887d6f07bb03b0d3276485d03b827f6cd908ccd
parent d89e9df43c6b3966fc438d925680ac8ff25f6e2f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 10 Oct 2014 14:05:25 +0000
consistency
d89e9df43c6b3966fc438d925680ac8ff25f6e2f2014-10-04T12:36:27Z2014-10-04T12:36:27Zfix delcharnext string lengthHiltjo Posthumahiltjo@codemadness.orgcommit d89e9df43c6b3966fc438d925680ac8ff25f6e2f
parent 44fdd353a9864ddb98cf5ef72f57936c42805038
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 4 Oct 2014 12:36:27 +0000
fix delcharnext string length
44fdd353a9864ddb98cf5ef72f57936c428050382014-10-04T12:36:16Z2014-10-04T12:36:16Zdo some extra checks to be safeHiltjo Posthumahiltjo@codemadness.orgcommit 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
f9bbf270b93c85592b54d7d2c6b4cb769feecc642014-10-04T01:32:45Z2014-10-04T01:32:45Zcast to size_t and use size_t specified for format stringHiltjo Posthumahiltjo@codemadness.orgcommit 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
3f4c6b998c638451e897785ea499b23395180c082014-10-04T01:32:12Z2014-10-04T01:32:12Zuse STDIN_FILENO, fd_in was uninitializedHiltjo Posthumahiltjo@codemadness.orgcommit 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
9da70a634b2e6b31026cf4dc619e54fa58ecb1282014-10-03T23:53:20Z2014-10-03T23:53:20Zscripts/history: fix file testHiltjo Posthumahiltjo@codemadness.orgcommit 9da70a634b2e6b31026cf4dc619e54fa58ecb128
parent b857574ff5aad8444c5c84b02129dbeeab47df0b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 3 Oct 2014 23:53:20 +0000
scripts/history: fix file test
b857574ff5aad8444c5c84b02129dbeeab47df0b2014-10-03T23:49:22Z2014-10-03T23:49:22Zupdate TODOHiltjo Posthumahiltjo@codemadness.orgcommit b857574ff5aad8444c5c84b02129dbeeab47df0b
parent 517a1cac03d09213419cabd41dc481c08ad16c9d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 3 Oct 2014 23:49:22 +0000
update TODO
517a1cac03d09213419cabd41dc481c08ad16c9d2014-10-03T23:49:15Z2014-10-03T23:49:15Zsupport utf8 input and outputHiltjo Posthumahiltjo@codemadness.orgcommit 517a1cac03d09213419cabd41dc481c08ad16c9d
parent d52ae758f565c6a59c5ddb96995b2e364c507c4f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 3 Oct 2014 23:49:15 +0000
support utf8 input and output
d52ae758f565c6a59c5ddb96995b2e364c507c4f2014-10-03T23:48:11Z2014-10-03T23:48:11Zfix arrow keys in csi-modeHiltjo Posthumahiltjo@codemadness.orgcommit d52ae758f565c6a59c5ddb96995b2e364c507c4f
parent c02257b852543ca38d39f9c2ae1654adecb398fb
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 3 Oct 2014 23:48:11 +0000
fix arrow keys in csi-mode
c02257b852543ca38d39f9c2ae1654adecb398fb2014-10-02T21:32:13Z2014-10-02T21:32:13Zfix crash with memmove and cols == 0Hiltjo Posthumahiltjo@codemadness.orgcommit 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
12656a030acf296f0b6299175f982a6eae6306462014-10-02T20:55:49Z2014-10-02T21:00:50Zrework some things:Hiltjo Posthumahiltjo@codemadness.orgcommit 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.
b072bb3bd5fdff06b0a12cd7bc6a8f94962ab97d2014-10-02T11:27:59Z2014-10-02T11:27:59Zconsistency: make resize a bindable functionHiltjo Posthumahiltjo@codemadness.orgcommit 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.
13970fc40d3282194523858158507d55921235122014-10-02T01:31:43Z2014-10-02T01:31:43Zcode styleHiltjo Posthumahiltjo@codemadness.orgcommit 13970fc40d3282194523858158507d5592123512
parent 9de4bb2f6a8ec555ef56e447e6e7eec995f57873
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 2 Oct 2014 01:31:43 +0000
code style
9de4bb2f6a8ec555ef56e447e6e7eec995f578732014-10-02T01:28:25Z2014-10-02T01:28:25Zmove some functions to make it more clear how to configure custom functions.Hiltjo Posthumahiltjo@codemadness.orgcommit 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.
e2dc0e68998bb673bfe3d57aa0149cfb28a85c2b2014-10-02T01:19:19Z2014-10-02T01:19:19Zremove delwordcursor keybindHiltjo Posthumahiltjo@codemadness.orgcommit e2dc0e68998bb673bfe3d57aa0149cfb28a85c2b
parent a48d9425805d5d8029aa8e63cdbf52a50b6baec2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 2 Oct 2014 01:19:19 +0000
remove delwordcursor keybind
a48d9425805d5d8029aa8e63cdbf52a50b6baec22014-10-02T01:19:07Z2014-10-02T01:19:07Zdont double close fd_out in some caseHiltjo Posthumahiltjo@codemadness.orgcommit 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
9016f01349bd3d07d8bd208cc3144116d0961d632014-10-02T01:07:00Z2014-10-02T01:07:00Zupdate TODOHiltjo Posthumahiltjo@codemadness.orgcommit 9016f01349bd3d07d8bd208cc3144116d0961d63
parent becbbb1ea807edd361472632cb1571b5c492c41f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 2 Oct 2014 01:07:00 +0000
update TODO
becbbb1ea807edd361472632cb1571b5c492c41f2014-10-02T01:05:42Z2014-10-02T01:05:42Zupdate for irc + iiHiltjo Posthumahiltjo@codemadness.orgcommit becbbb1ea807edd361472632cb1571b5c492c41f
parent c7bf0604ba222bf9437b3500c27e5d7a14f9f25a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 2 Oct 2014 01:05:42 +0000
update for irc + ii
c7bf0604ba222bf9437b3500c27e5d7a14f9f25a2014-10-02T01:01:58Z2014-10-02T01:01:58Zexport line and write str as envHiltjo Posthumahiltjo@codemadness.orgcommit 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
a4b4f1c4dada4128c004a959c5dd1f40ec340a6e2014-10-02T01:01:44Z2014-10-02T01:01:44Zterminate buffer if size = 0Hiltjo Posthumahiltjo@codemadness.orgcommit a4b4f1c4dada4128c004a959c5dd1f40ec340a6e
parent 12d2c2bd8352b53400a7808b51ffdc2aa757c753
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 2 Oct 2014 01:01:44 +0000
terminate buffer if size = 0
12d2c2bd8352b53400a7808b51ffdc2aa757c7532014-10-01T23:15:55Z2014-10-01T23:15:55Zremove id parameterHiltjo Posthumahiltjo@codemadness.orgcommit 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'.
c724e2f7987bba8b9b9c52ebb3ff77721786d2a62014-10-01T23:14:31Z2014-10-01T23:14:31Zconfig: use scripts in $HOMEHiltjo Posthumahiltjo@codemadness.orgcommit c724e2f7987bba8b9b9c52ebb3ff77721786d2a6
parent 99d263504572720db6a3a78f1d1b7e0b50060ca7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 1 Oct 2014 23:14:31 +0000
config: use scripts in $HOME
99d263504572720db6a3a78f1d1b7e0b50060ca72014-10-01T22:45:24Z2014-10-01T22:45:24Zinitial versionHiltjo Posthumahiltjo@codemadness.orgcommit 99d263504572720db6a3a78f1d1b7e0b50060ca7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 1 Oct 2014 22:45:24 +0000
initial version