?
Solved

How to clear hyperterminal screen in 8051 assembly programming

Posted on 2004-10-08
2
Medium Priority
?
3,077 Views
Last Modified: 2010-10-05
Hi,

Currently I am doing 8051 assembly project which need me to make some selection on hyperterminal screen. I am facing a problem to clear current screen when I am suppose to display another screen on a 'cleaned' display.
How shall I clear the hyperterminal screen by assembly code?
Please help me.
0
Comment
Question by:jessicalim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Expert Comment

by:Gary Dewrell
ID: 12264846
Hi jessicalim,

Here is a good basic PHP Mysql tutorial to get you started.   http://www.devdreams.com/phptutorials_displayingdatainamysqldatabase.php

God Bless
0
 
LVL 22

Accepted Solution

by:
grg99 earned 500 total points
ID: 12265875
First you have to figure out what screen-clear code Hyperterminal uses.  It's probably the semi-standard ANSI control code, but better to check first.

Here's a few of the most common ANSI control codes.  "ESC" means the ESC character code, decimal 27.

ESC[#;#H - Cursor Position (CUP)
    The first # specifies the line number, the second # specifies the column. The default for both is 1

ESC[#A - Cursor Up (CUU)
    Moves the cursor UP # number of lines

ESC[#B - Cursor Down (CUD)
    Moves the cursor DOWN # number of lines

ESC[#C - Cursor Forward (CUF)
    Moves the cursor RIGHT # number of columns

ESC[#D - Cursor Backward (CUB)
    Moves the cursor LEFT # number of columns

ESC[#;#f - Horizontal & Vertical Position
    (same as ESC[#;#H)

ESC[s - Save Cursor Position (SCP)
    The current cursor position is saved. The cursor position can be restored using (RCP) ESC[u.

ESC[u - Restore cursor position (RCP)
    Restores the cursor position saved with the (SCP) sequence ESC[s.

ESC[2J - Erase Display (ED)
    Clears the screen and moves to the home position

ESC[K - Erase Line (EL)
    Clears the current line from the cursor position

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question