File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1188,6 +1188,18 @@ int shell_insert_mode_set(const struct shell *shell, bool val);
1188
1188
*/
1189
1189
int shell_use_colors_set (const struct shell * shell , bool val );
1190
1190
1191
+ /**
1192
+ * @brief Allow application to control whether terminal is using vt100 commands.
1193
+ * Value is modified atomically and the previous value is returned.
1194
+ *
1195
+ * @param[in] sh Pointer to the shell instance.
1196
+ * @param[in] val vt100 mode.
1197
+ *
1198
+ * @retval 0 or 1: previous value
1199
+ * @retval -EINVAL if shell is NULL.
1200
+ */
1201
+ int shell_use_vt100_set (const struct shell * sh , bool val );
1202
+
1191
1203
/**
1192
1204
* @brief Allow application to control whether user input is echoed back.
1193
1205
* Value is modified atomically and the previous value is returned.
Original file line number Diff line number Diff line change @@ -1658,6 +1658,15 @@ int shell_use_colors_set(const struct shell *shell, bool val)
1658
1658
return (int )z_flag_use_colors_set (shell , val );
1659
1659
}
1660
1660
1661
+ int shell_use_vt100_set (const struct shell * sh , bool val )
1662
+ {
1663
+ if (sh == NULL ) {
1664
+ return - EINVAL ;
1665
+ }
1666
+
1667
+ return (int )z_flag_use_vt100_set (sh , val );
1668
+ }
1669
+
1661
1670
int shell_echo_set (const struct shell * shell , bool val )
1662
1671
{
1663
1672
if (shell == NULL ) {
You can’t perform that action at this time.
0 commit comments