diff options
Diffstat (limited to 'client/cmd.cpp')
| -rw-r--r-- | client/cmd.cpp | 14 | 
1 files changed, 13 insertions, 1 deletions
| diff --git a/client/cmd.cpp b/client/cmd.cpp index ab101e9..2871daf 100644 --- a/client/cmd.cpp +++ b/client/cmd.cpp @@ -1,9 +1,11 @@  #include <cstdio>  #include <cstdlib> +#include <readline/readline.h>  #include <string.h>  #include "cmd.h"  #include "i2ctcpv1.h" +#include "rl.h"  #include "sock.h"  #include "parse.h" @@ -35,7 +37,8 @@ void cmd_help(char*) {  	printf(  		"\n" -		"You can also use the TAB key to autocomplete commands\n" +		"See man pbc(1) for more info about specific commands\n" +		"Hint: you can use the TAB key to autocomplete commands\n"  	);  } @@ -83,6 +86,15 @@ void cmd_reset(char*) {  	i2c_send(BUSADDR_MAIN, msg, sizeof(msg));  } +void cmd_skip(char*) { +	const char msg[] = { +		PB_CMD_WRITE, +		0x00, +		PB_GS_SOLVED, +	}; +	i2c_send(BUSADDR_MAIN, msg, sizeof(msg)); +} +  void cmd_ls(char*) {  	return;  	const char msg[] = { |