Commit Graph

436 Commits

Author SHA1 Message Date
Raymond Pasco
71d8f1228d Make sure specified pill exists 2016-01-26 16:36:22 -05:00
Raymond Pasco
02f656b233 sanity check -B option 2016-01-26 16:31:26 -05:00
Raymond Pasco
c9c09bf99e Stub in -B bootstrap location option 2016-01-26 12:50:32 -05:00
Dan Haffey
5a23bbfda1 No signals on the spinner thread. 2015-12-16 23:40:34 -08:00
Dan Haffey
0ab8ad4ff5 No spinner delay for %ret. 2015-12-13 13:20:56 -08:00
Dan Haffey
2acf161381 Cursor spinner while processing events for more than 500ms. (#599)
The spinner is a simple |/-\ at the current cursor position. For non-terminal
events, the root of the event's wire is also displayed to the right of the
spinner to give some indication of what's causing an unresponsive terminal.

I used the simplest synchronization strategy I could think of: u3_utat.mex_u is
a mutex that serializes access to a terminal's state. The main thread holds it
at all times except when processing events. When a terminal receives a %bee blit
with a non-nul bulb (the event ovum), it releases the mutex to let the spinner
thread do its thing. A %bee with a nul bulb halts the spinner by grabbing the
mutex and refreshing the input line.

Off-thread console writes are directly against the underlying fd to avoid
trashing non-thread-safe libuv state. Given the simple locking pattern, calling
libuv from the spinner thread might be fine, but I didn't feel like auditing
vere to rule out concurrent calls. It worked when I tried it, but... threads.

I didn't look into supporting anything other than the main terminal, so
currently it's the only one that receives %bee blits. In daemon mode, the
spinner is disabled entirely and no additional thread is started.
2015-12-12 20:42:33 -08:00
Dan Haffey
d2391e78f8 Restore terminal line length and cursor position on refresh.
This keeps printfs from blowing away the line state (M-m M-m
won't erase your prompt).
2015-12-07 20:48:39 -08:00
C. Guy Yarvin
9083af04df Terminate on SIGTSTP. 2015-11-27 10:52:24 -08:00
C. Guy Yarvin
69b8603fa2 URL printing; doc and usability fixes. 2015-11-20 18:10:45 -05:00
Raymond Pasco
2830d2cddb Allow optional pier directory argument with -w -t 2015-11-19 16:01:58 -05:00
Charlie Cummings
66e2eb985e ignore dropped requests 2015-11-18 21:36:38 -05:00
John Franklin
1d79185707 Print libuv version in report(). 2015-11-16 17:34:49 -05:00
John Franklin
8201592594 Add command line option to report urbit build info. 2015-11-16 17:34:49 -05:00
Charlie Cummings
82359145dd more args 2015-11-16 17:34:49 -05:00
John Franklin
48c0e6e149 Print normal usage command when trying to create an existing planet/comet. 2015-11-10 15:12:03 -05:00
vere
7f1b5d2ae8 Proper double-word merge. 2015-11-06 22:08:58 +00:00
C. Guy Yarvin
1fedcb9b72 Profiling fix 2015-10-26 17:51:46 -04:00
C. Guy Yarvin
1ba234cee2 Fix typos. 2015-10-19 13:59:09 -07:00
C. Guy Yarvin
04d916aa59 Eliminate hasty chroot. 2015-10-17 20:29:59 -07:00
C. Guy Yarvin
1a47b2d5b8 Merge cgyarvin fixes into test. 2015-10-17 13:01:38 -07:00
John Franklin
d73fdfae61 Generalize the message if trying to use -c or -w on an existing pier. 2015-10-12 23:32:16 -05:00
C. Guy Yarvin
02277f6ca0 Merge branch 'test' of https://github.com/urbit/urbit into karpi
Conflicts:
	urb/urbit.pill
2015-10-12 17:10:56 -07:00
C. Guy Yarvin
e92012984c Doc fixes and changes to match. 2015-10-09 18:31:07 -07:00
Raymond Pasco
26e0060cd1 C89 compatible for loop 2015-10-08 13:17:15 -04:00
chc4
f265f80ab3 Update usage
I didn't list most of the ones that I never heard about before (-r, -l, -b)
2015-10-07 00:39:38 -04:00
Raymond Pasco
829d65b40a Check if directory already exists when using -c 2015-10-01 13:23:29 -04:00
Raymond Pasco
48865ce5f9 Merge remote-tracking branch 'burtonsamograd/ignore-emacs-temp-files' into test 2015-09-28 21:23:50 -04:00
Burton Samograd
f870a09d9d Tabs -> spaces. 2015-09-28 19:10:22 -06:00
Burton Samograd
56b0892ba9 Ignore #file#, which are emacs temp work files. 2015-09-28 19:07:28 -06:00
Charlie Cummings
2f2144e8c5 Ask for ticket, close #366 2015-09-27 19:07:26 -04:00
Charlie Cummings
98760f8e38 hide libuv socket errors 2015-09-04 18:49:09 -04:00
Charlie Cummings
ea3b2a3f83 optional sig 2015-08-24 19:23:13 -04:00
Philip C Monk
7cce82059d off-by-one error when checking for deleted childs
fixes #365
2015-07-14 17:07:12 -04:00
Anton Dyudin
c428adedaa aesthetic improvement 2015-07-13 17:46:37 -07:00
Anton Dyudin
cfe0339761 Rename %time to %behn, tym to now; closes #334 2015-06-24 12:50:30 -07:00
Philip C Monk
9edda1bb73 descriptive names for c files
fixes #294
2015-06-23 21:29:11 -04:00