Commit Graph

  • f88269fb22 Don't send funky escape sequences as keypresses Christian Rocha 2020-02-18 15:33:06 -05:00
  • 3c6a2c1a52 Properly catch shift+tab Christian Rocha 2020-02-18 14:52:57 -05:00
  • d38a22380b Revert shift+tab fix because it broke sequences like left/right Christian Rocha 2020-02-18 11:06:57 -05:00
  • 645a88ca26 Export alias for Tab key Christian Rocha 2020-02-18 11:06:37 -05:00
  • 73d773109f Fix a bug where shift+tab would make inputs wig out Christian Rocha 2020-02-17 19:58:32 -05:00
  • 82af5a5cb5 Update example modules Christian Rocha 2020-02-12 17:48:14 -05:00
  • 5b001ee17f Spinner example Christian Rocha 2020-02-10 12:46:12 -05:00
  • 02d3086885 Fix typos in comments Christian Rocha 2020-02-10 12:44:04 -05:00
  • 2e6babae9e Add placeholder text to input example Christian Rocha 2020-02-01 22:28:31 -05:00
  • 5383f5a61e Wrap termenv altscreen functions to make things simpler for the end user Christian Rocha 2020-02-01 21:02:12 -05:00
  • f94701aff3 I think the cursor move to 1,1 is implicit via altscreen Christian Rocha 2020-02-01 21:00:03 -05:00
  • f382f4db4a Move ansi helpers to termenv Christian Muehlhaeuser 2020-01-31 13:47:36 +01:00
  • bb06373836 Whoops, accidentally commited this new Sub type idea Christian Rocha 2020-01-29 21:37:37 -05:00
  • 4b4655b14a Note about project being a pre-release Christian Rocha 2020-01-27 21:27:20 -05:00
  • 91271cacab Fill out constants and strings for control keys Christian Rocha 2020-01-26 16:46:30 -05:00
  • 84c9ca54bc Add missing control keys Christian Rocha 2020-01-26 15:39:54 -05:00
  • 29799c3151 Go mod tidy Christian Rocha 2020-01-25 22:22:28 -05:00
  • 887eb4bd99 Update example in README as well as the README in general Christian Rocha 2020-01-25 21:40:14 -05:00
  • 651b881a02 Update examples to use new subscription model Christian Rocha 2020-01-25 21:27:43 -05:00
  • 444c36b31f Rework subscriptions, allowing for them to be easily managed by the developer Christian Rocha 2020-01-25 21:16:41 -05:00
  • f64f86f183 Add missing comment Christian Rocha 2020-01-25 16:34:00 -05:00
  • ad60e6ad16 Add GitHub workflow Christian Muehlhaeuser 2020-01-25 07:17:37 +01:00
  • 1c98700015 syslog is only available on unix systems Christian Muehlhaeuser 2020-01-25 07:15:56 +01:00
  • bc67e3896b Add platform-specific terminal init & restore Christian Muehlhaeuser 2020-01-25 07:15:29 +01:00
  • 47bfe2b5df Simplify IsRune() Christian Muehlhaeuser 2020-01-25 06:56:53 +01:00
  • 4eff2d0ccc Add MIT license Christian Rocha 2020-01-24 15:05:25 -05:00
  • 79af4ad6d5 More functional rendering approach Christian Rocha 2020-01-22 16:15:30 -08:00
  • 8c9360ec24 Use local copy of Tea when building examples Christian Rocha 2020-01-22 16:08:44 -08:00
  • a9f5eaf673 Ignore any example binaries Christian Rocha 2020-01-22 13:32:39 -08:00
  • 1e39676087 Update example go.mod/sum Christian Rocha 2020-01-20 11:07:04 -08:00
  • 524cf2cffd convenience function for creating an ErrMsg from an error Christian Rocha 2020-01-20 10:54:58 -08:00
  • e1d4a14345 Commands should probably receive the model as an arg, right? Christian Rocha 2020-01-20 10:35:03 -08:00
  • 5156905c3e Add HTTP example demonstrating I/O Christian Rocha 2020-01-19 19:52:28 -08:00
  • a318d24593 Fix a bug where the initial command wasn't running Christian Rocha 2020-01-19 00:46:14 -05:00
  • 824703a661 Remove stray log that was making rendering weird Christian Rocha 2020-01-19 00:13:19 -05:00
  • 6a0489592f Programs should take an init type/function as the first argument Christian Rocha 2020-01-18 22:18:19 -05:00
  • 068c7291fb Document simple example to hopefully explain how things work Christian Rocha 2020-01-18 11:42:19 -05:00
  • fac654d7ef Fix incorrect line feed value + also listen for tab Christian Rocha 2020-01-18 11:20:26 -05:00
  • 768462afb3 Update tea imports in examples Christian Rocha 2020-01-18 11:15:55 -05:00
  • 1695d9682b Remove input module (moved to another repo) and update input example Christian Rocha 2020-01-18 11:04:09 -05:00
  • df52853f9d Use canonical module name and clean up go.mod/sum Christian Rocha 2020-01-18 10:45:46 -05:00
  • 23645933bc More accurate description, I think Christian Rocha 2020-01-18 10:41:01 -05:00
  • 11006d0a90 Move last render height info to the program level Christian Rocha 2020-01-18 10:36:39 -05:00
  • b72cce8f00 Make a comment a little clearer Christian Rocha 2020-01-18 10:34:28 -05:00
  • cfb899789e Move ANSI stuff into its own file Christian Rocha 2020-01-18 10:33:43 -05:00
  • d976902768 Okay, I think that's how error handling should work Christian Rocha 2020-01-18 10:13:44 -05:00
  • 9909356eb7 Left/right arrows move the text input cursor Christian Rocha 2020-01-18 00:10:03 -05:00
  • 4b64a7cbde Blink cursor Christian Rocha 2020-01-17 23:27:54 -05:00
  • 923390de7a Fix index out of range error when using backspace Christian Rocha 2020-01-17 22:28:17 -05:00
  • d8b3dcd05f First pass at text input Christian Rocha 2020-01-17 22:21:51 -05:00
  • 32dc19b3d3 Fix a bug where control keys weren't being properly mapped Christian Rocha 2020-01-17 22:21:17 -05:00
  • 208f421470 Refactor the keybinding stuff + add backspace Christian Rocha 2020-01-17 20:46:34 -05:00
  • 051a370769 Utility function for logging to the system log Christian Rocha 2020-01-17 16:38:25 -05:00
  • 4f42c502ed Fullscreen mode via altscreen + fullscreen example Christian Rocha 2020-01-17 15:37:04 -05:00
  • c1b4d6a515 Remove an extraneous argument and auto-add a trailing newline to views Christian Rocha 2020-01-16 14:47:44 -05:00
  • e92a2fe783 Better link to The Elm Architecture Christian Rocha 2020-01-15 23:40:50 -05:00
  • 31dc4fd0da Remove superfluous comma in README Christian Rocha 2020-01-15 23:31:01 -05:00
  • f13ba01ff0 Fix a bug where the top line wasn't being cleared on render Christian Rocha 2020-01-15 23:28:49 -05:00
  • da9de0c42b More accurate names for prev/next line movement functions Christian Rocha 2020-01-15 23:18:45 -05:00
  • 0c8e2ea5a0 Add next line function in case we need it later Christian Rocha 2020-01-15 23:04:53 -05:00
  • fe42b5c4a7 Clear necessary lines before rendering Christian Rocha 2020-01-15 22:41:45 -05:00
  • 7c7c8f7c86 Let's start a README Christian Rocha 2020-01-15 16:58:41 -05:00
  • c15b863c39 Add simple, minimal example Christian Rocha 2020-01-15 16:44:11 -05:00
  • 7f3506eedc Whoops, fix framerate in example so it running at 60fps Christian Rocha 2020-01-15 16:06:14 -05:00
  • c7f1302943 Remove extraneous select{} and improve comments Christian Rocha 2020-01-14 17:19:44 -05:00
  • 466d16b5a4 Let's call sequences what they really are Christian Rocha 2020-01-14 17:15:17 -05:00
  • 8df1395e0a Exit example after pretend loading is completed Christian Rocha 2020-01-14 16:24:01 -05:00
  • 5999ff458c Refactor subscription implementation Christian Rocha 2020-01-14 16:13:13 -05:00
  • b6c8792309 Multi-view example with progress bar Christian Rocha 2020-01-14 13:47:36 -05:00
  • edb6c58f1a Exit demo after 10 seconds to demonstrate command usage Christian Rocha 2020-01-13 19:07:04 -05:00
  • 147c8df2ee Implement subscriptions, and update example accordingly Christian Rocha 2020-01-13 17:10:23 -05:00
  • 97bbcdd5fb Catch Ctrl+C Christian Rocha 2020-01-11 11:15:01 -05:00
  • d9cf7d1477 Print error (and exit) if there's trouble when starting the example program Christian Rocha 2020-01-11 10:45:15 -05:00
  • 293c2f6696 Also use escape to quit Christian Rocha 2020-01-10 23:46:46 -05:00
  • c7d28354f7 Also use arrow keys in example Christian Rocha 2020-01-10 23:12:25 -05:00
  • bee32ca733 Initial commit. First pass. Christian Rocha 2020-01-10 16:02:04 -05:00