diff options
author | Ron Yorston <rmy@pobox.com> | 2020-04-13 13:13:01 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-04-13 13:35:49 +0100 |
commit | 026bf90b29314486d64f93c0633dffda8ac58379 (patch) | |
tree | 3624c2be4bae9038eeaf49c5e80ceef5030d1390 /include | |
parent | 10e14d5ebdfdfe3acd1cd60692d9cffd07de04e2 (diff) | |
download | busybox-w32-026bf90b29314486d64f93c0633dffda8ac58379.tar.gz busybox-w32-026bf90b29314486d64f93c0633dffda8ac58379.tar.bz2 busybox-w32-026bf90b29314486d64f93c0633dffda8ac58379.zip |
ash: reset ANSI emulation when BB_SKIP_ANSI_EMULATION changes
Update the skip status on the first call to skip_ansi_emulation()
and whenever the BB_SKIP_ANSI_EMULATION variable changes.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 1 | ||||
-rw-r--r-- | include/mingw.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 8979665b2..7077f0e0d 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -2215,6 +2215,7 @@ extern const char bb_busybox_exec_path[] ALIGN1; | |||
2215 | #define BB_PATH_ROOT_PATH "PATH=/sbin;/usr/sbin;/bin;/usr/bin" BB_ADDITIONAL_PATH | 2215 | #define BB_PATH_ROOT_PATH "PATH=/sbin;/usr/sbin;/bin;/usr/bin" BB_ADDITIONAL_PATH |
2216 | #define PATH_SEP ';' | 2216 | #define PATH_SEP ';' |
2217 | #define PATH_SEP_STR ";" | 2217 | #define PATH_SEP_STR ";" |
2218 | extern const char bb_skip_ansi_emulation[] ALIGN1; | ||
2218 | #endif | 2219 | #endif |
2219 | extern const char bb_PATH_root_path[] ALIGN1; /* BB_PATH_ROOT_PATH */ | 2220 | extern const char bb_PATH_root_path[] ALIGN1; /* BB_PATH_ROOT_PATH */ |
2220 | #define bb_default_root_path (bb_PATH_root_path + sizeof("PATH")) | 2221 | #define bb_default_root_path (bb_PATH_root_path + sizeof("PATH")) |
diff --git a/include/mingw.h b/include/mingw.h index 3516cd31c..0fead43c9 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -538,3 +538,4 @@ char *xabsolute_path(char *path); | |||
538 | char *get_drive_cwd(const char *path, char *buffer, int size); | 538 | char *get_drive_cwd(const char *path, char *buffer, int size); |
539 | void fix_path_case(char *path); | 539 | void fix_path_case(char *path); |
540 | void seek_sparse(int fd, size_t size); | 540 | void seek_sparse(int fd, size_t size); |
541 | int skip_ansi_emulation(int reset); | ||