comparison cmd.h @ 16:a07665727c19

Add status command Add status command to redisplay an error message of the previous command and unsaved changes. Add pwm_err function to display and save error messages.
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Tue, 08 Aug 2017 10:47:04 +0200
parents a7e41e1a79c8
children 5c6155c8e9b6
comparison
equal deleted inserted replaced
15:3380c8fd9776 16:a07665727c19
1 /* 1 /*
2 * Copyright (C) 2016 Guido Berhoerster <guido+pwm@berhoerster.name> 2 * Copyright (C) 2017 Guido Berhoerster <guido+pwm@berhoerster.name>
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining 4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the 5 * a copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including 6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish, 7 * without limitation the rights to use, copy, modify, merge, publish,
26 26
27 #include "pwm.h" 27 #include "pwm.h"
28 28
29 enum cmd_return { 29 enum cmd_return {
30 CMD_OK, 30 CMD_OK,
31 CMD_STATUS,
31 CMD_ERR, 32 CMD_ERR,
32 CMD_USAGE, 33 CMD_USAGE,
33 CMD_QUIT 34 CMD_QUIT
34 }; 35 };
35 36