Commit Graph

12 Commits

Author SHA1 Message Date
Jerzy Kasenberg
037632dc24 android/client: Add prompting for answer
This patch allows to switch to prompt mode where user will be asked
to supply some information.
2013-11-08 15:13:03 +02:00
Jerzy Kasenberg
b07cff3c6b android/client: Split terminal_process_char
This patch changes the way input characters are handled in function
terminal_process_char from big switch statement to smaller functions.
No functionality is changed in this patch.
Splitting to smaller functions will make easier to change behaviour
of terminal for prompt handling when user will be asked for something
and history substitution or auto completion will not be used.
2013-11-08 15:13:01 +02:00
Jerzy Kasenberg
c73ddc609b android/client: Fix style and typos
Fixes spelling errors and white space style errors.
2013-11-05 12:31:25 +02:00
Jerzy Kasenberg
fe552a1a5d android/client: Fix annoying delay in command line
Move fflush(stdout) to after prints and user input.
This removes delay of showing prompt.
2013-11-04 21:14:35 +02:00
Jerzy Kasenberg
5b5f62794e android/client: Add clear screen on Cltr-L
This patch allows to clear screen on Ctrl-L.
2013-10-28 14:57:56 +02:00
Jerzy Kasenberg
81e2fa91a3 android/client: Fix various coding style issues
Mostly indentation of arguments in functions and calls.
Prefix p remove from puser/penum_func.
Some empty lines added after closing } when needed.
Magic number for string length changed to preprocessor define.
Added spaces after casts.
2013-10-25 11:12:37 +03:00
Jerzy Kasenberg
25d154a94f android: Add handling of Ctrl-c to haltest
This patch adds handling of Ctrl-C so it does not break tool.
To exit tool Ctrl-D is used on empty command line.
Ctrl-D on not empty command line works like Delete key.
2013-10-22 11:02:15 +03:00
Jerzy Kasenberg
ae76520deb android: Add space in prompt in haltest
This patch makes prompt more consistent with other bluez tools.
This also fixes small issue when prompt was printed twice.
2013-10-21 19:07:32 +03:00
Jerzy Kasenberg
4246516c87 android: Fix error in draw line in haltest tool
This fixes small error that showed up when tab completion inserted
characters before end of line.
Cursor in line was not moved correctly.
2013-10-18 16:43:21 +03:00
Jerzy Kasenberg
50fcb041aa android: Add tab completion to haltest
This patch adds tab completion to interfaces, methods and parameters
in haltest.
2013-10-18 16:43:18 +03:00
Jerzy Kasenberg
8c9d7f5362 android: Add history to line editor in haltest
Added simple history to editor to save time.
2013-10-16 18:32:51 +03:00
Jerzy Kasenberg
bc381adcc5 android: Add line editing to haltest
Android does not have readline.
This patch allows to edit command line.
2013-10-16 18:32:51 +03:00