diff options
author | Ron Yorston <rmy@pobox.com> | 2024-04-09 08:58:58 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-04-09 08:58:58 +0100 |
commit | fcf3ec2877f042c6957d808e562807089e23ebe6 (patch) | |
tree | 02fc4bf8d6fd8284564d3cf27cbd17482b8f5744 /include | |
parent | 55ecf3a746db5131ca078875168a59feab8b26f1 (diff) | |
download | busybox-w32-fcf3ec2877f042c6957d808e562807089e23ebe6.tar.gz busybox-w32-fcf3ec2877f042c6957d808e562807089e23ebe6.tar.bz2 busybox-w32-fcf3ec2877f042c6957d808e562807089e23ebe6.zip |
ash: add title built-in
Implement a 'title' built-in for ash. It's very simple-minded,
performs almost no error checking and is completely non-portable.
- With no arguments it prints the current console title.
- If arguments are provided the *first only* is set as the console
title.
Costs 88-116 bytes.
(GitHub issue #401)
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index 4abdcf459..41d4cd940 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -158,6 +158,7 @@ BOOL conToCharA(LPSTR d); | |||
158 | BOOL readConsoleInput_utf8(HANDLE h, INPUT_RECORD *r, DWORD len, DWORD *got); | 158 | BOOL readConsoleInput_utf8(HANDLE h, INPUT_RECORD *r, DWORD len, DWORD *got); |
159 | 159 | ||
160 | void set_title(const char *str); | 160 | void set_title(const char *str); |
161 | int get_title(char *buf, int len); | ||
161 | void move_cursor_row(int n); | 162 | void move_cursor_row(int n); |
162 | void reset_screen(void); | 163 | void reset_screen(void); |
163 | int winansi_putchar(int c); | 164 | int winansi_putchar(int c); |