Bruno Pena
4401f60d91
Escape single quotes inside double quote.
...
Signed-off-by: Bruno Pena <brunompena@gmail.com>
2018-02-27 23:18:57 +01:00
Bruno Pena
ad8063166e
Added logic for single quote arguments (verbatim).
...
This can then be used to quote Windows paths that are passed to mspdebug
by Energia:
> mspdebug ... "prog 'C:\Users\Path with Spaces\...\file.hex'"
Signed-off-by: Bruno Pena <brunompena@gmail.com>
2018-02-27 22:55:05 +01:00
Tamas TEVESZ
16a25f206a
Rework Unix delay_s()/delay_ms()
...
Make delay_ms() sleep through the entire specified interval unless
Ctrl-C is pressed;
Using this feature, simplify Ctrl-C checking in places.
2013-12-07 10:16:41 +13:00
Daniel Beer
277a795f01
Add power sample output.
2012-10-24 09:37:46 +13:00
Daniel Beer
18cf2a561f
Separate and clean up break handling.
...
Ctrl+C handling is done in ctrlc.c, and a break condition now persists
until the interactive reader begins to process the next command. The
condition is cleared by calling ctrlc_clear().
2012-10-09 09:55:48 +13:00
Daniel Beer
6455164138
MinGW: treat Ctrl+Break as Ctrl+C.
2012-10-04 14:50:25 +12:00
Daniel Beer
e4f582b0d7
Fix Ctrl+C handling under Cygwin.
2012-10-04 14:45:57 +12:00
Daniel Beer
29dfb4da84
Stop using usleep().
...
Use nanosleep() on Unix-like systems, and Sleep() on Windows.
2012-08-14 15:51:22 +12:00
Daniel Beer
a914bc732d
Add support for building on Cygwin.
...
The symbol __Windows__ is defined when building a native (non-Cygwin)
binary.
2012-04-25 11:02:22 +12:00
Tamas TEVESZ
e014e4c6d5
Modernise decl styles
2011-11-16 08:42:45 +13:00
Tamas TEVESZ
d98d990752
Kill unused variables
...
Mark those that are unused but can't be killed accordingly.
2011-11-15 09:26:35 +13:00
Daniel Beer
2528e2a752
expand_tilde: use strdup() instead of malloc()/strcpy().
...
The OpenBSD linker complains about the reference to strcpy(). Pointed
out by Jasper Lievisse Adriaanse <jasper@openbsd.org>.
2011-10-04 10:28:24 +13:00
Daniel Beer
b3ffff5945
win32: protect access to ctrlc_flag with critical section.
...
On Windows, console handlers are run in a separate thread, without
actually interrupting the main thread.
2011-09-19 04:33:58 +12:00
Daniel Beer
d4fee98904
Restructuring: moved low-level utility code to util/
2011-09-14 16:19:30 +12:00