aboutsummaryrefslogtreecommitdiff
path: root/linenoise.c
AgeCommit message (Collapse)AuthorFilesLines
2011-06-09Use autosetup instead of autoconfSteve Bennett1-1/+1
Faster, simpler auto-configuration Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-07Ensure that linenoise history is only freed onceSteve Bennett1-0/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-03Fix some clang warningsSteve Bennett1-0/+4
And also a potentially undefined integer left shift Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-08Update linenoise to the latest versionSteve Bennett1-113/+266
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>
2011-04-08Add linenoise support for ^LSteve Bennett1-0/+18
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-05Better line editing on serial terminalsSteve Bennett1-10/+56
If TIOCGWINSZ doesn't work, try to query the window width with escape sequences. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-05Fix line editing when columns unavailableSteve Bennett1-1/+1
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>
2010-12-21Minor compiler warning fixesSteve Bennett1-5/+8
Also, don't define _XOPEN_SOURCE if already defined Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Linenoise improvement for ^DSteve Bennett1-4/+13
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>
2010-11-17Minor cleanupsSteve Bennett1-1/+0
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add utf-8 support to linenoise.cSteve Bennett1-171/+387
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>
2010-11-17Add command line editing with linenoiseSteve Bennett1-0/+742
Enabled by default, but can be disabled with --disable-lineedit Signed-off-by: Steve Bennett <steveb@workware.net.au>