GotoXY实现 [英] GotoXY implementation

查看:212
本文介绍了GotoXY实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题是我之前发布的题为如何解决此过程将字符串写入控制台屏幕缓冲区

This question is a follow-up one to my prior post entitled How to fix this procedure writing a string to the console screen buffer.

我想将光标设置为在写任意字符串之前给定(x,y)位置:

I want to set the cursor to a given (x,y) position prior to writing an arbitrary string:

GotoXY(x,y)
SendLn('The harder they come...'); 

如何可以程序GotoXY(x,y:integer)实现?

推荐答案

快速google显示

SetConsoleCursorPosition

这篇关于GotoXY实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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