Skip to content

Commit 7d2411c

Browse files
committed
return a constant ctermid for now
1 parent 4fb63f4 commit 7d2411c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,4 +1863,13 @@ String getStrError(int errno) {
18631863
return result;
18641864
}
18651865
}
1866+
1867+
@Builtin(name = "ctermid", fixedNumOfPositionalArgs = 0)
1868+
@GenerateNodeFactory
1869+
abstract static class CtermId extends PythonBuiltinNode {
1870+
@Specialization
1871+
String ctermid() {
1872+
return "/dev/tty";
1873+
}
1874+
}
18661875
}

0 commit comments

Comments
 (0)