@@ -259,3 +259,11 @@ VAL idris_getString(VM* vm, void* buffer) {
259 free(sb);
259 free(sb);
260 return str;
260 return str;
263+VAL idris_currentDir() {
265+ if (getcwd(cwd, sizeof(cwd)) != NULL)
266+ return MKSTR(get_vm(),cwd);
268+ return MKSTR(get_vm(),"");