We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71d4934 + 1b5b7ff commit 8f3d584Copy full SHA for 8f3d584
terminal.d
@@ -388,6 +388,16 @@ version(Posix) {
388
389
import core.sys.posix.sys.ioctl;
390
}
391
+version(CRuntime_Musl) {
392
+ // Druntime currently doesn't have bindings for termios on Musl.
393
+ // We define our own bindings whenever the import fails.
394
+ // When druntime catches up, this block can slowly be removed,
395
+ // although for backward compatibility we might want to keep it.
396
+ static if (!__traits(compiles, import core.sys.posix.termios : tcgetattr)) {
397
+ int tcgetattr (int, struct termios *);
398
+ int tcsetattr (int, int, const struct termios *);
399
+ }
400
+}
401
402
version(VtEscapeCodes) {
403
0 commit comments