如何在 SICStus Prolog 中清除屏幕 [英] How to clear screen in SICStus Prolog

查看:58
本文介绍了如何在 SICStus Prolog 中清除屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 SICStus 4.2.0,但无法找到清除控制台内容的方法.甚至有可能吗?

I'm using SICStus 4.2.0 and I was not able to find out how to clear the content of the console. Is it even possible?

推荐答案

write('\33\[2J').

这绝不是 SICStus 特有的.它是 ANSI 转义码,适用于任何符合 ISO 的系统.

This is in no way specific to SICStus. It is the ANSI escape code and works in any ISO conforming system.

这篇关于如何在 SICStus Prolog 中清除屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆