@@ -129,7 +129,7 @@ uint8_t cmd_history_size(uint8_t max);
129
129
* \param fmt console print function (like printf)
130
130
*/
131
131
#if defined(__GNUC__ ) || defined(__CC_ARM )
132
- void cmd_printf (const char * fmt , ...) __attribute__ ((__format__ (__printf__ , 1 , 2 )));
132
+ void cmd_printf (const char * fmt , ...) __attribute__((__format__ (__printf__ , 1 , 2 )));
133
133
#else
134
134
void cmd_printf (const char * fmt , ...);
135
135
#endif
@@ -139,7 +139,7 @@ void cmd_printf(const char *fmt, ...);
139
139
* \param ap list of parameters needed by format string. This must correspond properly with the conversion specifier.
140
140
*/
141
141
#if defined(__GNUC__ ) || defined(__CC_ARM )
142
- void cmd_vprintf (const char * fmt , va_list ap ) __attribute__ ((__format__ (__printf__ , 1 , 0 )));
142
+ void cmd_vprintf (const char * fmt , va_list ap ) __attribute__((__format__ (__printf__ , 1 , 0 )));
143
143
#else
144
144
void cmd_vprintf (const char * fmt , va_list ap );
145
145
#endif
@@ -273,6 +273,26 @@ void cmd_alias_add(const char *alias, const char *value);
273
273
* \param value Value for variable. Values can contains white spaces and '"' or '"' characters.
274
274
*/
275
275
void cmd_variable_add (char * variable , char * value );
276
+ /**
277
+ * Add integer variable to interpreter.
278
+ * Variables are replaced with values before executing a command.
279
+ * \code
280
+ cmd_variable_add_int("world", 2);
281
+ cmd_exe("echo $world"); // this is now same as 'echo 2' .
282
+ * \endcode
283
+ * \param variable Variable name, which will be replaced in interpreter.
284
+ * \param value Value for variable
285
+
286
+ */
287
+ void cmd_variable_add_int (char * variable , int value );
288
+ /**
289
+ * Request screen size from host
290
+ * Response are stored to variables:
291
+ * COLUMNS and LINES - as integer values.
292
+ * Note: Require terminal that handle request codes, like screen.
293
+ */
294
+ void cmd_request_screen_size (void );
295
+
276
296
277
297
/** find command parameter index by key.
278
298
* e.g.
0 commit comments