Commit Graph

86 Commits

Author SHA1 Message Date
Christian Rocha
cd63ed1e44
Stop old subscription when it becomes reassigned as nil 2020-04-02 12:10:10 -04:00
Christian Rocha
2e509ad32c
Don't do command batching if the batch is 0 items long 2020-04-01 12:05:05 -04:00
Christian Rocha
1bf93b1ccf
Provisionally add CmdMap and SubMap functions 2020-03-31 16:28:16 -04:00
Christian Rocha
6e769686f1
Add support for command batching 2020-03-31 16:08:03 -04:00
Christian Rocha
58a047c2ac
Bump termenv to v0.5.0 2020-03-31 11:18:42 -04:00
Christian Rocha
87ff36e345
Bump termenv dependency 2020-03-27 12:14:23 -04:00
Christian Rocha
23432f30dd
Add TODO + comment 2020-02-19 22:23:54 -05:00
Christian Rocha
abf5c6e845
Also catch home/end/pgup/pgdown on urxvt 2020-02-19 22:18:04 -05:00
Christian Rocha
0cb138f63d
Catch a bunch of outlier alt-prefixed keystokes + home/end/pgup/pgdown 2020-02-19 21:06:57 -05:00
Christian Rocha
eefa9c7aa3
Catch the alt key modifier 2020-02-19 18:35:34 -05:00
Christian Rocha
f88269fb22
Don't send funky escape sequences as keypresses 2020-02-18 15:33:06 -05:00
Christian Rocha
3c6a2c1a52
Properly catch shift+tab 2020-02-18 14:52:57 -05:00
Christian Rocha
d38a22380b
Revert shift+tab fix because it broke sequences like left/right 2020-02-18 11:06:57 -05:00
Christian Rocha
645a88ca26
Export alias for Tab key 2020-02-18 11:06:37 -05:00
Christian Rocha
73d773109f
Fix a bug where shift+tab would make inputs wig out 2020-02-17 19:58:32 -05:00
Christian Rocha
82af5a5cb5
Update example modules 2020-02-12 17:48:32 -05:00
Christian Rocha
5b001ee17f
Spinner example 2020-02-10 16:35:29 -05:00
Christian Rocha
02d3086885
Fix typos in comments 2020-02-10 12:44:04 -05:00
Christian Rocha
2e6babae9e
Add placeholder text to input example 2020-02-01 22:28:31 -05:00
Christian Rocha
5383f5a61e
Wrap termenv altscreen functions to make things simpler for the end user 2020-02-01 21:07:35 -05:00
Christian Rocha
f94701aff3
I think the cursor move to 1,1 is implicit via altscreen 2020-02-01 21:07:35 -05:00
Christian Muehlhaeuser
f382f4db4a
Move ansi helpers to termenv 2020-01-31 13:52:20 +01:00
Christian Rocha
bb06373836
Whoops, accidentally commited this new Sub type idea 2020-01-29 21:37:37 -05:00
Christian Rocha
4b4655b14a
Note about project being a pre-release 2020-01-27 21:27:20 -05:00
Christian Rocha
91271cacab
Fill out constants and strings for control keys 2020-01-26 16:46:30 -05:00
Christian Rocha
84c9ca54bc
Add missing control keys 2020-01-26 15:39:54 -05:00
Christian Rocha
29799c3151
Go mod tidy 2020-01-25 22:22:28 -05:00
Christian Rocha
887eb4bd99
Update example in README as well as the README in general 2020-01-25 21:42:27 -05:00
Christian Rocha
651b881a02
Update examples to use new subscription model 2020-01-25 21:28:16 -05:00
Christian Rocha
444c36b31f
Rework subscriptions, allowing for them to be easily managed by the developer 2020-01-25 21:28:16 -05:00
Christian Rocha
f64f86f183
Add missing comment 2020-01-25 16:34:00 -05:00
Christian Muehlhaeuser
ad60e6ad16
Add GitHub workflow 2020-01-25 07:17:37 +01:00
Christian Muehlhaeuser
1c98700015
syslog is only available on unix systems 2020-01-25 07:15:56 +01:00
Christian Muehlhaeuser
bc67e3896b
Add platform-specific terminal init & restore 2020-01-25 07:15:29 +01:00
Christian Muehlhaeuser
47bfe2b5df
Simplify IsRune() 2020-01-25 06:56:53 +01:00
Christian Rocha
4eff2d0ccc
Add MIT license 2020-01-24 15:07:54 -05:00
Christian Rocha
79af4ad6d5
More functional rendering approach 2020-01-22 16:15:30 -08:00
Christian Rocha
8c9360ec24
Use local copy of Tea when building examples 2020-01-22 16:08:44 -08:00
Christian Rocha
a9f5eaf673
Ignore any example binaries 2020-01-22 13:32:39 -08:00
Christian Rocha
1e39676087
Update example go.mod/sum 2020-01-20 11:07:04 -08:00
Christian Rocha
524cf2cffd
convenience function for creating an ErrMsg from an error 2020-01-20 10:54:58 -08:00
Christian Rocha
e1d4a14345
Commands should probably receive the model as an arg, right? 2020-01-20 10:35:03 -08:00
Christian Rocha
5156905c3e
Add HTTP example demonstrating I/O 2020-01-19 19:52:28 -08:00
Christian Rocha
a318d24593
Fix a bug where the initial command wasn't running 2020-01-19 00:46:14 -05:00
Christian Rocha
824703a661
Remove stray log that was making rendering weird 2020-01-19 00:13:19 -05:00
Christian Rocha
6a0489592f
Programs should take an init type/function as the first argument
This is in line with the way Elm works. Also update examples.
2020-01-18 22:22:04 -05:00
Christian Rocha
068c7291fb
Document simple example to hopefully explain how things work 2020-01-18 11:44:28 -05:00
Christian Rocha
fac654d7ef
Fix incorrect line feed value + also listen for tab 2020-01-18 11:20:26 -05:00
Christian Rocha
768462afb3
Update tea imports in examples 2020-01-18 11:15:55 -05:00
Christian Rocha
1695d9682b
Remove input module (moved to another repo) and update input example
The input module is now in github.com/charmbracelet/teaparty/input
2020-01-18 11:04:09 -05:00