mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-04 11:42:28 +00:00
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:
parent
e0fabd1d49
commit
df08b541af
8 changed files with 113 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue