[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 12/35: [grotty]: Warn of unrecognized device commands.
From: |
G. Branden Robinson |
Subject: |
[groff] 12/35: [grotty]: Warn of unrecognized device commands. |
Date: |
Mon, 21 Feb 2022 06:15:54 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 8571e2d05d6b657471d5cfbf7938fd1c8ecf0ee4
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Feb 16 14:48:17 2022 +1100
[grotty]: Warn of unrecognized device commands.
* src/devices/grotty/tty.cpp (tty_printer::special): Warn upon
encountering unrecognized device control commands using the 'tty:'
tag.
---
ChangeLog | 6 ++++++
src/devices/grotty/tty.cpp | 2 ++
2 files changed, 8 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 97b9cd8a..87e6ca4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-02-16 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/devices/grotty/tty.cpp (tty_printer::special): Warn upon
+ encountering unrecognized device control commands using the
+ 'tty:' tag.
+
2022-02-16 G. Branden Robinson <g.branden.robinson@gmail.com>
[grotty]: Remove 'sgr' device control command.
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index 5d94310a..eced8e60 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -447,6 +447,8 @@ void tty_printer::special(char *arg, const environment
*env, char type)
}
if (strncmp(command, "link", p - command) == 0)
special_link(p, env);
+ else
+ warning("unrecognized X command '%1' ignored", command);
}
// Produce an OSC 8 hyperlink. Given ditroff input of the form:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 12/35: [grotty]: Warn of unrecognized device commands.,
G. Branden Robinson <=