Age | Commit message (Collapse) | Author | Files | Lines |
|
win32 insert/delete fix to avoid assertion failure
Accept linefeed as enter
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Update to version:
https://github.com/msteveb/linenoise/commit/174a404dfa323a17852414dfc70b36976eddf6f3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Update to version:
https://github.com/msteveb/linenoise/commit/d7bcf93d4de7581e043283ab461eca2310dd8fdc
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Updated to:
https://github.com/msteveb/linenoise/commit/ad5172e99520e2fe2a35b4bbd7fbc74d9df36df1
Now supports multiline mode (by setting $history::multiline to 1)
Improved windows support
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
From https://github.com/msteveb/linenoise/commit/a4545af5e3766c58100be6bf406b9a0d2049090f
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Update to match linenoise.git
Signed-off-by: Steve Bennett <steveb@workware.net.au>
diff --git a/linenoise.c b/linenoise.c
index 091d197..171dcef 100644
--- a/linenoise.c
+++ b/linenoise.c
@@ -116,7 +116,7 @@
#else
#include <termios.h>
#include <sys/ioctl.h>
-#include <sys/poll.h>
+#include <poll.h>
#define USE_TERMIOS
#define HAVE_UNISTD_H
#endif
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reported-by: Andy <jimdevel@hummypkg.org.uk>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
For the following change:
Fix a couple of compiler warnings
With the colour prompt support.
Also recognize '\e[m' as an escape sequence.
Simplify countColorControlChars().
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
From git://github.com/msteveb/linenoise.git
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
From git://github.com/msteveb/linenoise.git
Allow tab-completion only at the end of line
Replace magic number 9 with '\t' in linenoisePrompt()
Fix several warnings from gcc.
Fix first-chance exceptions in Windows - WriteConsoleOutputCharacter() didn't have its final parameter set
Add MSVC support - Test for _WIN32 to check for building for Windows.
|
|
This includes minicom, which doesn't support hpa (CHA), only cuf.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If the buffer is too big to fit in the window and the cursor
would move off the left edge of the windows, the display
is not shown correctly.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Update comments, copyright, etc.
Handle additional home, end sequences
Don't add duplicate lines into history
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Separate out the termios-specific code
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
From github:
- CHA is 1-based
- Added some casts to make it easier to include in a c++
- const correctness
- chars are unsigned if not utf-8
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Faster, simpler auto-configuration
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And also a potentially undefined integer left shift
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
From https://github.com/msteveb/linenoise with minor changes.
- Optimise common insert/remove char cases
- Add completion framework (unused in Jim Tcl)
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If TIOCGWINSZ doesn't work, try to query the window width
with escape sequences.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Sometimes TIOCGWINSZ succeeds but returns columns=0
This makes line editing work rather badly.
If this occurs, just behave as though TIOCGWINSZ had failed
and assume 80 columns.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also, don't define _XOPEN_SOURCE if already defined
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Use default readline/bash behaviour of deleting char to
the right, unless the line is empty. Then it is EOF.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Plus general improvements, including:
- Allow pasting newlines to linenoise. Use TCSADRAIN, not TCAFLUSH
so that unused input is not flushed
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Enabled by default, but can be disabled with --disable-lineedit
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|