| 324 | } |
| 325 | |
| 326 | void ShowHelpConsole(void) |
| 327 | { |
| 328 | CLockObject lock(g_outputMutex); |
| 329 | std::cout << std::endl << |
| 330 | "================================================================================" << std::endl << |
| 331 | "Available commands:" << std::endl << |
| 332 | std::endl << |
| 333 | "[tx] {bytes} transfer bytes over the CEC line." << std::endl << |
| 334 | "[txn] {bytes} transfer bytes but don't wait for transmission ACK." << std::endl << |
| 335 | "[on] {address} power on the device with the given logical address." << std::endl << |
| 336 | "[standby] {address} put the device with the given address in standby mode." << std::endl << |
| 337 | "[la] {logical address} change the logical address of the CEC adapter." << std::endl << |
| 338 | "[p] {device} {port} change the HDMI port number of the CEC adapter." << std::endl << |
| 339 | "[pa] {physical address} change the physical address of the CEC adapter." << std::endl << |
| 340 | "[as] make the CEC adapter the active source." << std::endl << |
| 341 | "[is] mark the CEC adapter as inactive source." << std::endl << |
| 342 | "[ea] enable system audio mode." << std::endl << |
| 343 | "[da] disable system audio mode." << std::endl << |
| 344 | "[gas] get audio status." << std::endl << |
| 345 | "[gsam] get system audio mode status." << std::endl << |
| 346 | "[osd] {addr} {string} set OSD message on the specified device." << std::endl << |
| 347 | "[ver] {addr} get the CEC version of the specified device." << std::endl << |
| 348 | "[ven] {addr} get the vendor ID of the specified device." << std::endl << |
| 349 | "[lang] {addr} get the menu language of the specified device." << std::endl << |
| 350 | "[pow] {addr} get the power status of the specified device." << std::endl << |
| 351 | "[name] {addr} get the OSD name of the specified device." << std::endl << |
| 352 | "[poll] {addr} poll the specified device." << std::endl << |
| 353 | "[lad] lists active devices on the bus" << std::endl << |
| 354 | "[ad] {addr} checks whether the specified device is active." << std::endl << |
| 355 | "[at] {type} checks whether the specified device type is active." << std::endl << |
| 356 | "[sp] {addr} makes the specified physical address active." << std::endl << |
| 357 | "[spl] {addr} makes the specified logical address active." << std::endl << |
| 358 | "[volup] send a volume up command to the amp if present" << std::endl << |
| 359 | "[voldown] send a volume down command to the amp if present" << std::endl << |
| 360 | "[mute] send a mute/unmute command to the amp if present" << std::endl << |
| 361 | "[self] show the list of addresses controlled by libCEC" << std::endl << |
| 362 | "[scan] scan the CEC bus and display device info" << std::endl << |
| 363 | "[mon] {1|0} enable or disable CEC bus monitoring." << std::endl << |
| 364 | "[log] {1 - 31} change the log level. see cectypes.h for values." << std::endl << |
| 365 | "[ping] send a ping command to the CEC adapter." << std::endl << |
| 366 | "[bl] to let the adapter enter the bootloader, to upgrade" << std::endl << |
| 367 | " the flash rom." << std::endl << |
| 368 | "[r] reconnect to the CEC adapter." << std::endl << |
| 369 | "[h] or [help] show this help." << std::endl << |
| 370 | "[q] or [quit] to quit the CEC test client and switch off all" << std::endl << |
| 371 | " connected CEC devices." << std::endl << |
| 372 | "================================================================================" << std::endl; |
| 373 | } |
| 374 | |
| 375 | bool ProcessCommandSELF(ICECAdapter *parser, const std::string &command, std::string & UNUSED(arguments)) |
| 376 | { |