简体   繁体   English

在任何位置输出到控制台

[英]Output at any location into the console

I'm currently making a Node.js application that needs to output a text at any location I want, for example at the top right corner. 我目前正在制作一个Node.js应用程序,该应用程序需要在我想要的任何位置(例如,右上角)输出文本。

I would know if there is a Node.js module to do that, like : 我想知道是否有一个Node.js模块可以做到这一点,例如:

var the_module = require('the_module');
the_module.output(3, 3, "Hello world !");

Do you know one ? 你认识一个吗? Thanks by advance. 预先感谢。

As @JaromandaX and @Vasan answered, the ansi and charm packages can do this well. 正如@JaromandaX和@Vasan回答的那样, ansicharm软件包可以很好地做到这一点。 Thanks for your help ! 谢谢你的帮助 !

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM