Bare metal VGA: implement "status report" escape codes (#613)

* Bare metal VGA: implement "status report" escape codes
* Minor fix to pseudoteletypewriter code

Co-authored-by: tkchia <tkchia-cosmo@gmx.com>
This commit is contained in:
tkchia 2022-09-13 17:14:10 +08:00 committed by GitHub
parent e0fabd1d49
commit df08b541af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 113 additions and 10 deletions

View file

@ -641,15 +641,18 @@ static void PtyDeleteLines(struct Pty *pty) {
}
static void PtyReportDeviceStatus(struct Pty *pty) {
PtyWriteInput(pty, "\e[0n", 4);
static const char report[] = "\e[0n";
PtyWriteInput(pty, report, strlen(report));
}
static void PtyReportPreferredVtType(struct Pty *pty) {
PtyWriteInput(pty, "\e[?1;0c", 4);
static const char report[] = "\e[?1;0c";
PtyWriteInput(pty, report, strlen(report));
}
static void PtyReportPreferredVtIdentity(struct Pty *pty) {
PtyWriteInput(pty, "\e/Z", 4);
static const char report[] = "\e/Z";
PtyWriteInput(pty, report, strlen(report));
}
static void PtyBell(struct Pty *pty) {