Commit Graph

9 Commits

Author SHA1 Message Date
Tedd Ho-Jeong An
f22f166d6e client: Add SPDX License Identifier
This patch adds SPDX License Identifier and removes the license text.

-------------------------------------
       License            COUNT
-------------------------------------
 GPL-2.0-or-later     :      11

License: GPL-2.0-or-later
   client/adv_monitor.c
   client/adv_monitor.h
   client/advertising.h
   client/display.c
   client/main.c
   client/display.h
   client/agent.h
   client/gatt.c
   client/agent.c
   client/advertising.c
   client/gatt.h
2020-09-21 16:19:33 -07:00
Luiz Augusto von Dentz
21ec1b5105 client: Add generic way to request input from user
This adds rl_prompt_input which can be used by different parts to ask
user input.
2017-06-30 12:12:43 +03:00
Luiz Augusto von Dentz
044ff5e4cd client/display: Add rl_hexdump 2015-02-10 13:15:58 +02:00
Alex Deymo
4b30052265 client: Agent's DisplayPasskey implementation
Implements the DisplayPasskey(object device, uint32 passkey, uint16 entered)
method.
2013-03-25 12:57:03 +02:00
Alex Deymo
82e49df634 client: Right prompt management on agent input
Registering an agent shares the user input interface with the normal console
command interface. The way it is implemented (using rl_message, rl_save_prompt
and rl_restore_prompt) conflicts with the rl_printf calls that may appear
while waiting for user input, loosing the [bluetooth]# prompt.
This patch fixes this and makes clear if the expected input is a command or an
agent reply changing the color and text of the prompt.
2013-03-25 12:54:48 +02:00
Alex Deymo
f037e82669 client: Add color modifiers to NEW, CHG and DEL events.
Events like [NEW], [CHG] and [DEL] can appear in the command console at
any time, even when the user is typing a command. The last line is kept
making the event line appear just before it, something that can be
unnoticed. This patch add meaningful colors for those three event to make
it easier to see them.
2013-03-25 12:53:48 +02:00
Marcel Holtmann
fca6774a33 client: Remove broken helper for message blocks 2012-12-18 15:03:58 +01:00
Marcel Holtmann
fc7ae83f91 client: Add helper function for readline async printing 2012-12-18 04:17:45 +01:00
Marcel Holtmann
420d1e997e client: Use common header for display functions 2012-12-14 23:25:08 +01:00