473,385 Members | 1,392 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

clearing or capturing the screen

I wish to write a console text editor. Can anyone tell me how to
capture the screen like Vi or Pico does?

Also, I wish to draw "tabs" on the screen, is there a standard way to
draw so that my code is crossplatform and will compile on most
platforms?

Thanks,

-Jason

Feb 4 '06 #1
2 1965
Hi,

I take it that you are developing for *nix systems then I believe you have
to take a look into ncurses. I believe that is a library that let you
position the cursor clear terminal screen etc.

I don not believe vi captures the screen rather (like on windows) it knows
what is on the screen internally and redraws parts (give commands to the
terminal) if those change.

--
Regards, Ron AF Greve

http://moonlit.xs4all.nl

"Slack" <ja***@slack.ie> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I wish to write a console text editor. Can anyone tell me how to
capture the screen like Vi or Pico does?

Also, I wish to draw "tabs" on the screen, is there a standard way to
draw so that my code is crossplatform and will compile on most
platforms?

Thanks,

-Jason

Feb 4 '06 #2
"Slack" <ja***@slack.ie> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
:I wish to write a console text editor. Can anyone tell me how to
: capture the screen like Vi or Pico does?
:
: Also, I wish to draw "tabs" on the screen, is there a standard way to
: draw so that my code is crossplatform and will compile on most
: platforms?

The standard C++ language itself has no support for 'manipulating'
the console window and its inputs/outputs. A platform-specific
solution is therefore required.

However, you can use a library that is available on most platforms.
I think 'ncurses' is included on most unices, and is available
on Windows as well. Try googling for that.
[ Disclaimer: I never used it ]

hth -Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Brainbench MVP for C++ <> http://www.brainbench.com
Feb 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Miki Tebeka | last post by:
Hello All, I'd like to bind <CTRL+L> so that it will clear IDLE's screen (in the interactive prompt). Any pointers/suggetions? Thanks. Miki
0
by: Gary | last post by:
I have a problem with the datagrid not clearing when the datasource changes, a few fields remain on the screen and even when new data would fill those grid squares the old data remains. I wind...
1
by: raghavendra | last post by:
Hi, i am facing problem clearing screen in console application. As, in C++ we have clrscr(); Is? their any similar type of function is avaliable.. Raghavendra...
0
by: joseph.inglis | last post by:
Heres an interesting one and i guess its idea that are needed as opposed to a direct solution (although one would be welcomed of course). I want to render a webpage as an image. At the moment...
2
by: Carsten Klotz | last post by:
Hi, does someone know, if it's possible capturing the content of a panel, when its form has state "minimized"? Details: A panel contains a Webbrowser object (AxSHDocVw.AxWebBrowser). My...
1
by: asdf | last post by:
I just started my first project where i draw lines and strings on the screen. I sucessfully drew what i needed on the screen, then realized that when it updated it just drew over the same area w/o...
2
by: Rune Strand | last post by:
Is it possible by use of pyWin32 or ctypes to make a screen capture of an inactive, or a hidden window if the hwnd/WindowName/ClassName is known? I've seen dedicated screen capture software do...
65
by: Leslie Kis-Adam | last post by:
Hi everyone! Does anyone know, if it is possible to clear the screen in ANSI C? If it is,then how? Any help would be appreciated. Laszlo Kis-Adam <dfighter_AT-NOSPAM_freemail.hu
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.