https://github.com/skulpt/skulpt/issues/685

Yes, you need to pass in your own function during the configuration.

Example:

Sk.configure({
inputfun: yourFunction,
inputfunTakesPrompt: true /* then you need to output the prompt yourself */
}); // example function with promise function yourFunction(prompt) {
return new Promise((resolve, reject) => {
// ToDo: output prompt
// ToDo: get input string
let input = "hm";
resolve(input);
};
}

https://github.com/skulpt/skulpt/issues/685的更多相关文章

  1. fatal: could not read Username for 'https://github.com': No such file or directo

    Git push origin master报错 fatal: could not read Username for 'https://github.com': No such file or di ...

  2. https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory报错解决方式

    ――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ### Command ``` /U ...

  3. https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/connections.py

    # Python implementation of the MySQL client-server protocol # http://dev.mysql.com/doc/internals/en/ ...

  4. https://github.com/mvf/svn_wfx

    https://github.com/mvf/svn_wfx 2003.net对应的vc是7.0版本.需要更高的. 在哪里可以下载呢 https://www.tjupt.org/没有校外种子 Proj ...

  5. 转载请注明出处: https://github.com/qiu-deqing/FE-interview

    转载请注明出处: https://github.com/qiu-deqing/FE-interview Table of Contents generated with DocToc FE-inter ...

  6. https://github.com/chenghuige/tensorflow-exp/blob/master/examples/sparse-tensor-classification/

        https://github.com/chenghuige/tensorflow-exp/blob/master/examples/sparse-tensor-classification/ ...

  7. 结合个人经历总结的前端入门方法 (转自https://github.com/qiu-deqing/FE-learning)

    结合个人经历总结的前端入门方法 (https://github.com/qiu-deqing/FE-learning),里面有很详细的介绍. 之前一直想学习前端的,都不知道怎么下手都一年了啥也没学到, ...

  8. (2016 年) githup 博客地址 : https://github.com/JMWY/MyBlog

    githup 博客地址 : https://github.com/JMWY/MyBlog

  9. MJExtension的使用:https://github.com/CoderMJLee/MJExtension

    MJExtension能做什么? MJExtension是一套字典和模型之间互相转换的超轻量级框架 MJExtension能完成的功能 字典(JSON) --> 模型(Model) 模型(Mod ...

  10. MBProgressHUD框架的使用:https://github.com/jdg/MBProgressHUD

    MBProgressHUD是一个开源类库,实现了各种样式的提示框, 下载地址:https://github.com/jdg/MBProgressHUD,然后把两个MBProgressHUD.h和MBP ...

随机推荐

  1. 干货|EasyMR 基于 Kubernetes 应用的监控实践

    在之前的内容中,我们深入探讨了 EasyMR 如何利用 Kubernetes 进行部署.大家已经了解到,在 EasyMR 的整体架构中,我们使用 Prometheus 进行节点和服务监控数据的采集.查 ...

  2. memcached学习手记1-windows下xampp安装配置memcached-1.4.13-win32-bin, 及php_memcache.dll(php5.4)

    1. 下载memcache的windows版, 解压放某个盘下面, 比如在D:\memcached下载地址:http://code.jellycan.com/files/memcached-1.2.6 ...

  3. A2A MCP AG2 智能代理示例

    项目介绍 本项目展示了如何使用 AG2(前身为 AutoGen)框架构建一个支持 MCP(Model Context Protocol)的智能代理,并通过 A2A(Agent to Agent)协议进 ...

  4. SqlServer 查看所有触发器信息的命令

    https://blog.csdn.net/chenghaibing2008/article/details/45332993 SELECT       object_name(a.parent_ob ...

  5. es6的迭代器和生成器

    迭代器es6新增的特性,之前没有,其语法借鉴了Python. Java. C++. Iterator(迭代器)不是一个集合,它是一种用于访问集合的方法,可用于迭代List 和 Set 等集合. 实现了 ...

  6. BIO 和 NIO AIO

    简介 BIO Blocking IO 阻塞IO 简单来说, 就是服务器对每一个接收数据请求, 开启一个线程进行对于数据和逻辑的处理, 但是能创建的线程数量有限. 很多处理逻辑开启的线程处于阻塞状态. ...

  7. opengl 学习 之 12 lesson

    opengl 学习 之 12 lesson 简介 扩展函数值DEBUG!!! link http://www.opengl-tutorial.org/uncategorized/2017/06/07/ ...

  8. SciTech-BigDataAIML-Algorithm-Heuristic启发式- 带weight(权重)的Graph(无向图)最优路线规划 : Dijkstra Algorithm(迪杰斯特拉算法)"由"边线加权"的Graph"得出"Routing Table(最优路由表)"

    Dijkstra迪杰斯特拉算法 用"Graph"作出简图: 图例: "选定起点"的Routing Table(路由表) 行号 节点 最短距离 前一节点 已访问完 ...

  9. SciTech-BigDataAIML-TensorFlow-Model的Goal目标 + Principle原理 + Design设计 + Compile编译:设置(LossFunction+Optimizer+Metrics)与编译

    model模型 What是什么 社会化大生产角度:Model模型 是"劳动产品", 数字化/数据化时代 自动"炼金机". 社会角度:金钱与价值创造将在一定程度上 ...

  10. Rust从入门到精通-01-简介

    1.rust 从哪里来 Rust语言在2006年作为 Mozilla 员工 Graydon Hoare 的私人项目出现,而 Mozilla 于 2009 年开始赞助这个项目. 第一个有版本号的 Rus ...