Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|