Commit Graph

23 Commits

Author SHA1 Message Date
4343251629 Removed spin because the "eval" part of it was broken and it adds
unnecessary complexity.
2019-11-04 15:28:00 +01:00
b4c23f2409 Consolidated winwidth/winheight into winsize variable, which makes
things a little more straightforward.
2019-11-01 17:19:25 +01:00
6f78e214a0 Version bump 2019-11-01 17:11:17 +01:00
478e6a9023 Cleanup/overhaul of how symlinks are handled and how paths are parsed.
Now `bb` will fail on `bb nonexistant/..` and will display
`/foo/baz/atfoo/` as `/foo/` if `atfoo` is a symlink to `/foo`
2019-11-01 16:46:39 +01:00
954c42df0c Minor version bump. 2019-11-01 14:54:34 +01:00
3fd5ed860d Moved dirty from being a bit on bb to being a global, which
simplifies the code a bit, plus some other minor cleanups.
2019-11-01 14:50:44 +01:00
55d3f0e160 Mostly finalized working version of better signal handling, including
allowing for suspended/resuming processes (bb +fg) and cleaner linked
list handling code.
2019-10-27 14:58:23 -07:00
c9d45599cc Minor version bump 2019-10-13 21:21:20 -07:00
ff8c2f9c62 More code cleanup: consolidating cd_to() and populate_files() into just
populate_files(), cleaner startup behavior, less duplicative environment
variable setting, misc.
2019-10-13 21:20:00 -07:00
55daca6a2f More code cleanup, including tweaking matches_cmd() to figure out if
there are required arguments or not, and refactoring run_bbcmd() to no
longer return a value (which was ignored), but instead just spit out error messages to
stderr if necessary.
2019-10-13 19:34:16 -07:00
6ffe39308b Deprecated support for piping commands in to bb at startup (undocumented). Users should use xargs if they want to do that sort of thing. 2019-10-13 18:41:48 -07:00
e40feed849 Cleaned up the command parsing code a bit to be slightly more correct
and more compact. Now uses if-else-if chain instead of nested switch
statements. This may be very slightly less performant, but probably not
noticeable and much cleaner code.
2019-10-13 18:33:46 -07:00
9e4e0ee314 verhaul of terminal keypress handling and labeling to support more
functionality for mouse clicking/dragging/left clicking/middle
clicking/double clicking and to have more standardized behavior for key
names and better handling of key modifiers (Ctrl, Alt, Meta, Shift).
Also moved Ctrl-c and Ctrl-z to custom key bindings with (bb +kill and
bb +suspend). Mouse clicking is now also handled in key bindings.
2019-10-12 16:04:19 -07:00
e9c75a7837 Use tput cvvis and tput civis for cursor visibility and fix for >
shell mode not showing cursor.
2019-10-11 19:07:05 -07:00
9a1599e728 Moved bbstartup search to a loop. 2019-10-09 15:01:50 -07:00
c4620ece60 Version bump 2019-10-03 15:51:17 -07:00
7f0fcdeea4 Removed some unnecessary +refreshes, no longer enable cursor by default,
but instead have ask() etc. make the cursor visible. Also cleaned up
some of the failure cases for better feedback.
2019-10-03 14:57:34 -07:00
38497d5619 Overhaul/cleanup of command line argument parsing. Now properly handles
startup commands in the order: bbstartup.sh, bb +cmd, echo +cmd | bb
2019-10-03 13:26:31 -07:00
f0016a2d10 Removed BB_QUIT 2019-10-02 13:08:07 -07:00
c7e08b884a Fix for some messed up behavior for Escape key and for passing vararg
commands to bb
2019-10-02 01:40:40 -07:00
f0e37a95f1 Fixed an issue with /etc/bb instead of /etc/xdg/bb and moved the startup
command into bb.h with the other bb shell script stuff.
2019-09-30 17:22:17 -07:00
3fd603c607 Fix for pause having both bold+faint text instead of just faint. 2019-09-30 17:08:59 -07:00
3daa54df98 Moved config.h -> bb.h and did some cleanup, moving function
declarations and constants out of bb.c and into bb.h. Also
re-alphabetized the functions and updated the docs.
2019-09-30 17:06:27 -07:00