Commit Graph

49 Commits

Author SHA1 Message Date
sloum 38e7ccea52 Adds license info and copyright statement to each source file 2022-10-08 20:43:47 +00:00
asdf 2f8eedded7 Handle input errors while returning to correct terminal mode 2020-09-08 13:41:52 +10:00
Hannu Hartikainen e3e2afc4fc Replace calls to `stty` with syscalls
- Move termios-related functionality to its own package
- Reimplement stty calls using ioctl calls
- Add per-platform constants for linux and non-linux because the ioctl
  enums are different. The enums in Darwin seem to come from BSD and so
  I'm assuming they might also work for other operating systems. If not,
  we'll need to add other build-constrained const files.

This code has been tested on Darwin and will be tested on Linux before
merging.
2020-05-24 09:25:38 +03:00
sloum cdfec887fd Solves the issue where line wrapping is not turned back on 2020-04-14 18:26:03 +00:00
Sloom Sloum Sluom IV 6c634415d8 Merge branch 'window-title' of sloum/bombadillo into develop 2020-01-04 14:26:21 -05:00
sloumdrone f68996decf Beginnings of text search... semi-working 2019-12-16 22:18:28 -08:00
sloumdrone 4182619a78 Adds flag for displaying title and adds documentation 2019-12-16 19:40:52 -08:00
sloumdrone aeee577e24 Adds title change escapes to cui 2019-12-15 11:00:39 -08:00
sloumdrone fde463be0f Removes unnecessary variable from exit routine 2019-12-05 22:01:22 -08:00
sloumdrone 6f0be3b4e4 Adds visible error handling for bad exits and improves exit code use 2019-12-05 21:46:31 -08:00
sloumdrone 3a33320ec5 Removed dead code and empty file 2019-11-10 14:14:45 -08:00
sloumdrone e4f7147e4f Ran format on each file 2019-11-10 10:41:12 -08:00
asdf e32ba04a1a Missed the for loop...plus some documentation 2019-10-24 13:42:38 +11:00
asdf a393b00ad1 Handle more signals without breaking terminal 2019-10-24 13:25:31 +11:00
sloumdrone e68dc3b414 Fixes merge conflicts and removes dead files 2019-09-23 09:02:48 -07:00
sloumdrone 19f210f243 Renames a cui function to be more appropriate and adds command line flag for version number 2019-09-20 09:18:16 -07:00
sloumdrone fdaf6312ab Adds a terminal mode change to disallow line wrapping by the terminal, also fixes a resize scroll issue and disallows escape characters in text files 2019-09-19 20:29:17 -07:00
sloumdrone 21fe5714a3 Bookmarks can be scrolled when focused 2019-09-16 19:38:07 -07:00
sloumdrone bccca61ec2 Some level of screen draw now works 2019-09-11 22:53:36 -07:00
sloumdrone a6d1f45be8 Added clarifying comments 2019-09-10 20:23:44 -07:00
Sloom Sloum Sluom IV 2641b03295 Merge branch 'line_wrapping_alignment' of asdf/bombadillo into master
This keeps proper spaces, including multiple spaces in a row, when wrapping text. This is a big improvement.

TODO in a future PR:
- Wrap long lines with no spaces properly
- Handle multispace characters (unicode) properly
- Handle tabs
- Handle extra indent of wrapped link lines on gophermaps
2019-09-10 11:16:11 -04:00
asdf 0894827563 simple line wrapping and associated unit tests 2019-09-10 20:24:16 +10:00
asdf ea096af511 simple line wrapping that does not mangle spaces 2019-09-10 20:19:45 +10:00
asdf 3e8587f039 using strings.SplitAfter in wrapLines 2019-09-07 23:04:20 +10:00
asdf a9d5651e3c added test for a specific line wrapping issue 2019-09-06 20:18:03 +10:00
asdf be34a9a809 identified more issues, added tests 2019-09-05 21:52:12 +10:00
asdf 319138b189 Addtional test for benchmarking the wrapLines() function 2019-09-05 10:48:47 +10:00
asdf fb2130518c first attempt on line wrapping indents issue 2019-09-04 22:57:26 +10:00
sloumdrone adf29bda02 Should solve tab in url issue re msg bar overflowing onto second line 2019-09-03 20:18:02 -07:00
sloumdrone 70ad392945 Simplified method code 2019-05-31 22:41:48 -07:00
sloumdrone 43b9953c80 Clarifying comment 2019-05-31 22:34:59 -07:00
sloumdrone 5a82541dee Minor reworking of the draw system. Should create less screen flicker. 2019-05-31 21:50:05 -07:00
sloumdrone 55d163ce5b Ran go fmt to clean up formating issues 2019-05-28 19:02:46 -07:00
sloumdrone 63df316b96 Ugly fix, but does work. Alleviates issue of resize landing you in deadspace that you should not be able to get to. 2019-05-28 18:57:50 -07:00
Brian Evans 4e27c44061 Rough changes to allow for full scroll on resize to small screen. Needs review. 2019-05-28 14:23:35 -07:00
sloumdrone a19bc2c6d8 Added page up, page down, home, and end to hot keys 2019-05-24 20:49:37 -07:00
Justin Overfelt 509e5d81a1 allow graceful fallback when we don't have an alternate screen 2019-05-07 16:12:16 -04:00
Justin Overfelt ee0f2e3e9b change openBrowser to use conditional compilation rather than a runtime switch 2019-05-06 18:33:18 -04:00
sloumdrone 288e1acf62 Merge branch 'master' of https://tildegit.org/sloum/Bombadillo 2019-05-03 20:59:47 -07:00
sloumdrone 34db0ca9ee Now uses alternate screen buffer if available 2019-05-03 20:58:55 -07:00
Justin Overfelt 27c1e0572a change cbreak functions to panic rather than return an error on failure 2019-05-01 18:25:45 -04:00
Justin Overfelt 6ea5754e57 improve error handling 2019-04-30 20:22:55 -04:00
Justin Overfelt 701753b890 Gofmt all code, switch to canonical function naming, add a go.mod file for use with the latest go version 2019-04-28 15:46:47 -04:00
sloumdrone 88898c5b4a Added focus shifting between windows redid how draws work 2019-04-10 22:29:10 -07:00
sloumdrone aafc9654bb Fixed inconsistency in down arrow logic 2019-03-26 20:34:08 -07:00
sloumdrone 26f80dafbc Updated notes, added auto-download for binary files, and added comments 2019-03-20 22:29:09 -07:00
sloumdrone 8fb26329ee Fixed fatal error on load as well as osx compatible stty command structure 2019-03-18 20:11:02 -07:00
sloumdrone 80ab652448 Apparently added a ridiculous mess since last commit 2019-03-17 09:58:39 -07:00
sloumdrone a28fc00550 Functional browser added notes 2019-03-04 23:05:43 -08:00